/* =========================================================
   Business Designer: brand guidelines v2.7 applied to the site
   Navy and gold from the logo. Cinzel headlines, Source Sans 3 body, IBM Plex Mono labels.
   White pages, ivory panels, navy bands, deep-navy footer. 6 px buttons, 10 px cards, pill chips.
   One soft shadow. Fibonacci spacing. Gold marks one thing per layout.
   ========================================================= */

/* Fonts are served from this site (fonts/), one variable woff2 per family and subset: no third-party request, preloadable */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/cinzel-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/cinzel-latin.woff2') format('woff2'); 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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin.woff2') format('woff2'); 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; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/source-sans-3-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/source-sans-3-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #ffffff;              /* pages, documents, cards */
  --ivory: #F7F4EC;              /* panels, icon circles, tags */
  --card: #ffffff;
  --navy: #02213A;               /* Designer Navy: text, primary grounds */
  --deep-navy: #011628;          /* dark surfaces, footer */
  --navy-50: #5B6B7A;            /* secondary text, captions */
  --ink: var(--navy);
  --ink-soft: var(--navy);
  --slate: var(--navy-50);
  --rule: #E3DDCD;               /* chip and card borders */
  --gold: #D4AC3E;               /* Growth Gold: fills, rules, the one highlighted figure. Never text on light */
  --gold-text: #886B22;          /* gold lettering on white, 5.0:1 */
  --gold-light: #EBCB5C;         /* gold lettering on navy, 10.3:1 */
  --steel: #4A7BA6;              /* comparison series */
  --slate-data: #8A98A5;         /* prior year, benchmark */
  --positive: #2E7D4F;           /* favourable variance */
  --negative: #B3261E;           /* adverse variance, errors */
  --error: var(--negative);
  --surface: #ffffff;
  --band: var(--navy);           /* dark sections, contact band */
  --on-band: var(--ivory);
  --shadow: rgba(2, 33, 58, .08);
  --shadow-soft: 0 8px 20px var(--shadow);   /* the only shadow */
  --shadow-lift: var(--shadow-lift); /* the same shadow, deeper, while a card is lifted */

  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --serif: "Cinzel", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "Segoe UI Mono", monospace;

  /* Golden-ratio scale on a 17 px base */
  --t-xs: 0.75rem;    /* 12.75 px labels */
  --t-sm: 0.85rem;    /* 14.5 px tables, captions */
  --t-base: 1rem;     /* 17 px body */
  --t-lg: 1.25rem;    /* 21 px lead */
  --t-xl: 1.3rem;     /* 22 px H3 */
  --t-2xl: 1.65rem;   /* 28 px */
  --t-3xl: 2.06rem;   /* 35 px H2 */
  --t-4xl: 2.6rem;    /* 44 px H1 */
  --t-5xl: 3.3rem;    /* 56 px display */
  --t-ui: 15px;       /* nav, chips, card text */

  /* Fibonacci steps */
  --s-1: 8px;
  --s-2: 13px;
  --s-3: 21px;
  --s-4: 34px;
  --s-6: 55px;
  --s-8: 89px;
  --s-12: 89px;         /* section padding; steps up to 144 px from 1024px */

  --wrap: 1140px;
  --gutter: 24px;
  color-scheme: light; /* light theme only, by the client's decision */
  --radius: 10px;                /* cards */
  --radius-sm: 6px;              /* buttons, inputs */
  --pill: 999px;                 /* chips and tags */
  --hub-radius: 22%;             /* orbit hub and app icon */
  /* Durations: feedback, UI movement, slower state changes, scroll reveals */
  --d-fast: 150ms;
  --d-ui: 200ms;
  --d-slow: 300ms;
  --d-reveal: 450ms;
  /* Layers, lowest to highest */
  --z-menu: 40;
  --z-header: 50;
  --z-float: 60;        /* dropdowns, back-to-top */
  --z-progress: 70;
  --z-skip: 100;
  --z-cursor: 1000;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* movement across the screen: the stage line */
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  overflow-wrap: break-word;                 /* long words break rather than overflow their column */
  -webkit-tap-highlight-color: transparent;  /* controls carry their own :active state */
  -webkit-font-smoothing: antialiased;
}
/* Touch: no double-tap zoom delay on controls; no rubber-banding where a mouse is the primary input */
a, button, summary, input, select, textarea, label { touch-action: manipulation; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 760px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --s-12: 144px; } }

.skip {
  position: absolute; left: var(--s-2); top: -3rem; padding: var(--s-1) var(--s-2);
  background: var(--band); color: var(--on-band); border-radius: var(--radius-sm); z-index: var(--z-skip);
}
.skip:focus { top: var(--s-2); }

/* ---------- Type ---------- */
/* Cinzel carries the Roman capitals of the logo into every headline (eight words or fewer); Source Sans 3 does the reading. */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: 0; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(2rem, 3.6vw, var(--t-4xl)); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.6vw, var(--t-3xl)); }
/* Heading rule: a short Growth Gold line under every page title and section heading; centred where the heading is */
h1::after, h2::after { content: ""; display: block; width: var(--s-6); height: 2px; margin-top: 10px; background: var(--gold); border-radius: 1px; }
.contact h2::after, .industries-grid .section-intro h2::after, .text-center h2::after { margin-inline: auto; }
h3 { font-size: var(--t-xl); line-height: 1.2; }
h4 { font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--s-2); }
p { max-width: 62ch; text-wrap: pretty; }
.lede { font-size: var(--t-lg); font-weight: 300; color: var(--navy-50); line-height: 1.5; }

/* Plex Mono label: uppercase, tracked +12%, in Gold Text */
.eyebrow, .label {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: var(--s-3);
}
.eyebrow { display: inline-flex; align-items: center; padding: 5px 12px 4px; border-radius: var(--pill); background: var(--ivory); line-height: 1.4; }

/* Text link: navy with a gold underline */
.text-link {
  color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .22em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--d-fast) var(--ease), text-decoration-color var(--d-fast) var(--ease);
}
.text-link:hover { color: var(--gold-text); text-decoration-color: var(--gold-text); }

/* ---------- Buttons ---------- */
/* Primary navy with Gold Light text, secondary outline, 6 px radius */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-4); border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), transform 160ms var(--ease);
}
.button-primary { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
/* Trailing arrow in its own circle, flush with the right edge; it leans up and right on hover */
.button-primary, .button-light { padding-right: 9px; gap: 12px; }
.button-primary::after, .button-light::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background-color: rgba(255, 255, 255, .12); background-repeat: no-repeat; background-position: center; background-size: 15px;
  transition: transform var(--d-ui) var(--ease), background-color var(--d-ui) var(--ease);
}
.button-primary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F4EC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.button-light::after { background-color: rgba(2, 33, 58, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302213A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.button-primary:hover::after, .button-light:hover::after { transform: translate(2px, -2px) scale(1.06); background-color: rgba(255, 255, 255, .2); }
.button-light:hover::after { background-color: rgba(2, 33, 58, .16); }
.button-primary:hover { background: var(--deep-navy); border-color: var(--deep-navy); }
.button-quiet { border-color: var(--navy); color: var(--navy); }
.button-quiet:hover { background: var(--ivory); }
.button-light { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); } /* on navy grounds: navy on gold, 7.6:1 */
.button-light:hover { background: var(--gold); border-color: var(--gold); }
.button:active { transform: scale(0.97); transition-duration: .15s, .15s, .15s, 0s; }
/* Disabled: ivory, Navy 50, no arrow motion. Loading: label hidden, a Gold Light ring turns in its place */
.button:disabled, .button[aria-disabled="true"] { background: var(--ivory); color: var(--navy-50); border-color: var(--rule); cursor: not-allowed; transform: none; }
.button:disabled::after, .button[aria-disabled="true"]::after { background-color: rgba(2, 33, 58, .06); transform: none; }
.button.is-loading { position: relative; color: transparent; pointer-events: none; }
.button.is-loading::after { opacity: 0; }
.button.is-loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--gold-light) 30%, transparent); border-top-color: var(--gold-light);
  animation: spin 800ms linear infinite;
}
.button-small { min-height: 42px; padding: 0 var(--s-3); font-size: var(--t-sm); }
.button-small.button-primary { padding-right: 7px; gap: 10px; }
.button-small::after { width: 24px; height: 24px; background-size: 13px; }

/* ---------- Header ---------- */
/* Horizontal logo on the left; from 1024px the navigation runs inline with the Services mega menu, the Proof dropdown
   and the primary CTA. Below that the lockup and the links no longer share a row, so a hamburger opens a panel. */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--paper); border-bottom: 1px solid var(--ivory);
  transition: border-color var(--d-ui) var(--ease), transform 240ms var(--ease-in-out), box-shadow var(--d-ui) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: var(--shadow-soft); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-tucked { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: var(--s-4); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 44px; width: auto; } /* the same height as the menu's call-to-action button; the footer matches */
.header-tools { display: none; align-items: center; gap: var(--s-2); } /* holds the hamburger; shown below 1024px */
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.button), .nav-trigger {
  text-decoration: none; font-weight: 600; font-size: var(--t-ui); padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.nav a:not(.button):hover, .nav-trigger:hover { background: var(--ivory); color: var(--navy); }
.nav a[aria-current="page"], .nav-trigger.is-current { color: var(--gold-text); background: var(--ivory); } /* the current page is the chosen item */
.nav-cta { margin-left: var(--s-2); min-height: 44px; padding: 0 var(--s-3); font-size: var(--t-ui); }

.menu-toggle {
  display: none; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0;
  font-weight: 600; color: var(--navy); border: 0; border-radius: var(--radius-sm);
}
.menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Three 2 px lines, 6 px apart; the outer two fold into a cross and the middle one fades */
.menu-toggle-icon { position: relative; width: 22px; height: 14px; }
.menu-toggle-icon::before, .menu-toggle-icon::after, .menu-toggle-icon > span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon > span { top: 6px; }
.menu-toggle-icon::after { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span { opacity: 0; transform: scaleX(.4); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-8) 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.hero-copy h1 { font-size: clamp(2.2rem, 3.2vw, 2.75rem); line-height: 1.05; margin-bottom: var(--s-2); max-width: 18ch; } /* sized so the six-word headline holds three lines beside the orbit, not five */
.hero-copy .lede { margin-bottom: var(--s-3); max-width: 48ch; }
.hero-copy .lede + .lede { margin-bottom: var(--s-4); }
.hero-copy .form-note { max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* The service orbit: the monogram hub, a halo and two dashed rings, and the outcomes clients buy as chips.
   Built from the brand kit's spec: 10:9 canvas, hub 22% of the width at 50% x 56.7%, rings at 15 / 28 / 44%.
   Chips stay still and level; only the outer ring turns, once every 120 s. Positions are in container units. */
.orbit { position: relative; width: 100%; max-width: 560px; aspect-ratio: 10 / 9; margin-inline: auto; container-type: inline-size; }
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-rings circle { fill: none; stroke: var(--navy); stroke-opacity: .3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-rings .ring-dashed { stroke-dasharray: 1 1; }
.orbit-rings .ring-outer { transform-box: fill-box; transform-origin: center; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-hub {
  position: absolute; left: 50cqw; top: 56.7cqw; width: 22cqw; height: 22cqw; transform: translate(-50%, -50%);
  border-radius: var(--hub-radius); background: var(--navy); display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--rule), var(--shadow-soft); /* the navy plate sits in an ivory tray */
}
.orbit-hub img { display: block; width: 64%; height: auto; }
.orbit-chips { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.orbit-chips li { display: contents; }
.orb {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--pill); text-decoration: none;
  font-size: var(--t-ui); font-weight: 600; color: var(--navy); white-space: nowrap; transform: translate(-50%, -50%);
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.orb:hover { background: var(--ivory); border-color: var(--navy); }
.orb.is-highlight { border-color: var(--gold); box-shadow: var(--shadow-soft); } /* the chosen chip, like a chosen testimonial */
.orb .icon { width: 20px; height: 20px; }
/* One highlighted chip: the page's main outcome */
.orb.is-highlight { border-color: var(--gold); }
.orb.is-highlight .icon { color: var(--gold-text); --icon-accent: var(--gold-text); }
/* One ringed focus dot on the outer orbit */
.orbit-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--navy); background: #fff;
  transform: translate(-50%, -50%); display: grid; place-items: center;
}
.orbit-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
/* Outer ring (radius 44) */
.o1 { left: 63.6cqw; top: 14.9cqw; }   /* Month-end close, highlighted */
.o2 { left: 91.3cqw; top: 71.7cqw; }   /* Cash forecast */
.o3 { left: 6.4cqw;  top: 62.8cqw; }   /* Automation */
.o4 { left: 24.8cqw; top: 20.7cqw; }   /* Audit readiness */
/* Inner ring (radius 28) */
.o5 { left: 47.6cqw; top: 84.6cqw; }   /* ERP rollout */
.o6 { left: 71.4cqw; top: 38.7cqw; }   /* Board reporting */
.o7 { left: 25.8cqw; top: 42.7cqw; }   /* CFO dashboard */
.o8 { left: 18.9cqw; top: 87.8cqw; }   /* Finance team */
.orbit-dot { left: 81.1cqw; top: 25.6cqw; } /* on the outer ring (r 44 around 50,56.7), 45 degrees up and to the right */
/* Load: rings fade in over 600 ms, then the chips rise 8 px and fade in 60 ms apart */
.orbit-rings, .orbit-hub { animation: fade-in .6s var(--ease) both; }
.orb, .orbit-dot { animation: chip-in .4s var(--ease) both; animation-delay: calc(600ms + var(--i, 0) * 60ms); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes chip-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } }

/* ---------- Clients ---------- */
.clients { padding: var(--s-6) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); }
.clients-intro { color: var(--slate); font-size: var(--t-sm); font-weight: 600; }
.client-list { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-weight: 600; font-size: var(--t-lg); color: var(--navy-50); }
.client-list li { display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap; opacity: .75; transition: opacity var(--d-ui) var(--ease), color var(--d-ui) var(--ease); }
.client-list li:hover { opacity: 1; color: var(--navy); }
.client-mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ivory); color: var(--navy); flex: none;
  display: grid; place-items: center; font-family: var(--serif); font-size: 0.8rem; line-height: 1; font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding: var(--s-12) 0; }
.section-rule { background: var(--ivory); }
.section-rule .text-link, .section-rule .article-meta { color: var(--gold-text); }
.section-intro { max-width: 720px; margin-bottom: var(--s-6); }
.section-intro h2 { margin-bottom: var(--s-2); }
.section-intro p { color: var(--slate); }
.section-intro-row { display: flex; align-items: baseline; justify-content: space-between; max-width: none; gap: var(--s-3); }

/* Dark band: navy with white cards, as in the reference */
.section-ink { background: var(--band); color: var(--on-band); }
.section-ink .section-intro h2 { color: var(--on-band); }
.section-ink .section-intro p { color: color-mix(in srgb, var(--on-band) 72%, transparent); }

/* Card primitive used across the site */
.service, .team > li, .quote-on-ink, .faq details, .article-list > li, .stages-vertical > li, .case-figures dl, .case-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--d-ui) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
/* Gold border on hover everywhere; the 4 px lift only where a real pointer hovers, so a tap never leaves a card raised */
.service:hover, .team > li:hover, .article-list > li:has(a):hover, .case-card:hover { border-color: var(--gold); } /* a draft article card (no link) stays flat */
@media (hover: hover) and (pointer: fine) {
  .service:hover, .team > li:hover, .article-list > li:has(a):hover, .case-card:hover,
  html.js-reveal .service.reveal.in-view:hover, html.js-reveal .team > li.reveal.in-view:hover, html.js-reveal .article-list > li:has(a).reveal.in-view:hover, html.js-reveal .case-card.reveal.in-view:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lift);
  }
}
/* The same lift on every other card: KPI cards, quote cards, case figures, service-page stage cards, FAQ rows */
.stat-row > div, .quote, .case-figures dl, .stages-vertical > li, .faq details {
  transition: border-color var(--d-ui) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.stat-row > div:hover, .quote:hover, .case-figures dl:hover, .stages-vertical > li:hover, .faq details:hover { border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .stat-row > div:hover, .quote:hover, .case-figures dl:hover, .stages-vertical > li:hover, .faq details:hover,
  html.js-reveal .stat-row > div.reveal.in-view:hover, html.js-reveal .quote.reveal.in-view:hover, html.js-reveal .faq details.reveal.in-view:hover, html.js-reveal .stages-vertical > li.reveal.in-view:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lift);
  }
  /* Smaller tiles rise 2 px */
  .nav .submenu a.mega-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
  .quote-pick:hover { transform: translateY(-2px); }
}

/* Icons: 24 px grid, 1.5 px rounded stroke, navy. Service icons sit in an Ivory circle. */
.icon {
  flex: none; width: 24px; height: 24px; color: var(--navy); --icon-accent: var(--gold);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: color var(--d-ui) var(--ease);
}
/* On navy grounds the set is ivory with a Gold Light accent */
.section-ink .icon, .contact .icon, .site-footer .icon { color: var(--ivory); --icon-accent: var(--gold-light); }
.tile, .service dt .icon {
  width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--ivory);
}

/* Services: pillar cards */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service-list > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count: the last card takes the full row */
.service { padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.service dt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); font-size: var(--t-lg); font-weight: 600; line-height: 1.3; }
.service dt a { text-decoration: none; }
.service dt a:hover { color: var(--gold-text); }
.service dd { display: grid; gap: var(--s-2); }
.service p { color: var(--slate); font-size: var(--t-ui); }
.service .dash-list { font-size: var(--t-sm); }

/* Situations: white cards on the dark band */
/* Signals: a numbered ledger on the navy band. Cinzel numerals in Gold Light, ivory statements, hairline rows. No cards. */
.signals-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-8); align-items: start; }
.signals-grid .section-intro { margin-bottom: 0; }
.signals { display: grid; }
.signals > li {
  display: grid; grid-template-columns: 80px 1fr; column-gap: var(--s-3); align-items: start;
  padding: var(--s-4) 0; border-top: 1px solid color-mix(in srgb, var(--ivory) 20%, transparent);
}
.signals > li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ivory) 20%, transparent); }
.signal-n { font-family: var(--serif); font-weight: 700; font-size: var(--t-3xl); line-height: 1; color: var(--gold-light); padding-top: 2px; }
.signals h3 { color: var(--ivory); font-size: var(--t-xl); margin-bottom: var(--s-1); }
.signals p { color: color-mix(in srgb, var(--ivory) 72%, transparent); font-size: var(--t-base); max-width: 52ch; }
.signals .text-link { margin-top: var(--s-1); color: var(--gold-light); text-decoration-color: color-mix(in srgb, var(--gold-light) 50%, transparent); font-size: var(--t-ui); }
.signals .text-link:hover { color: var(--ivory); text-decoration-color: var(--ivory); }

/* Engagement steps: the four-step method as a numbered sequence on a dashed connector.
   The line draws in as the section arrives and the numerals light in turn; the current step is filled navy with a gold ring.
   Without the reveal script (or under reduced motion) the finished state shows. */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); position: relative; padding-top: var(--s-1); }
.stages::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--s-1) + 32px);
  border-top: 1.5px dashed color-mix(in srgb, var(--navy) 35%, transparent); transform-origin: left;
}
/* Icon tile: 64 px white plate in an ivory ring, the brand icon inside, a navy numeral badge at the corner */
.stage-mark {
  position: relative; width: 64px; height: 64px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: var(--s-2); z-index: 1;
  background: var(--card); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--rule), var(--shadow-soft);
  transition: background-color var(--d-slow) var(--ease), box-shadow var(--d-slow) var(--ease), transform var(--d-slow) var(--ease);
}
.stage-mark .icon { width: 28px; height: 28px; transition: color var(--d-slow) var(--ease); }
.stage-mark .stage-number {
  position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-light); border: 2px solid var(--paper); margin: 0;
  font-family: var(--serif); font-weight: 700; font-size: 12px; box-shadow: none;
}
.stages > li { text-align: center; display: grid; justify-items: center; gap: var(--s-1); align-content: start; position: relative; }
.stages > li:nth-child(1) { --k: 0; } .stages > li:nth-child(2) { --k: 1; } .stages > li:nth-child(3) { --k: 2; }
.stages > li:nth-child(4) { --k: 3; } .stages > li:nth-child(5) { --k: 4; }
.stage-number {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--paper); border: 1.5px solid var(--navy); color: var(--navy);
  font-family: var(--serif); font-weight: 700; font-size: var(--t-lg); margin-bottom: var(--s-2);
  transition: background-color var(--d-slow) var(--ease), color var(--d-slow) var(--ease), box-shadow var(--d-slow) var(--ease), opacity var(--d-slow) var(--ease);
}
/* Dormant until the section is in view: a flat ivory tile with a quiet icon; the line is undrawn */
html.js-reveal .stages::before { transform: scaleX(0); transition: transform 700ms var(--ease-in-out) 100ms; }
html.js-reveal .stages.in-view::before { transform: scaleX(1); }
html.js-reveal .stages .stage-mark { background: var(--ivory); box-shadow: 0 0 0 0 var(--ivory), 0 0 0 0 var(--rule); transition-delay: calc(150ms + var(--k, 0) * 150ms); }
html.js-reveal .stages .stage-mark .icon { color: var(--navy-50); --icon-accent: var(--navy-50); transition-delay: calc(150ms + var(--k, 0) * 150ms); }
html.js-reveal .stages.in-view .stage-mark { background: var(--card); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--rule), var(--shadow-soft); transform: translateY(-2px); }
html.js-reveal .stages.in-view .stage-mark .icon { color: var(--navy); --icon-accent: var(--gold); }
.stages h3 { font-size: var(--t-xl); }
.stages p { color: var(--navy-50); font-size: var(--t-sm); line-height: 1.5; max-width: 22ch; }

/* Principles: cards on lavender */
/* Pull quote: gold rule above, Source Sans 3 Light, source in Plex Mono */
.pull-quote { max-width: 50ch; margin: 0 0 var(--s-6); } /* no line of its own: the heading rule above is the section's */
#principles .section-intro { margin-bottom: var(--s-3); }
.pull-quote p { font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--navy); max-width: none; }
.pull-quote footer { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-top: var(--s-2); }
/* Commitments: an editorial strip of four columns with hairline tops; no cards, no icons */
.commitments { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.commitments-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-6); } /* six failure modes on a service page */
.commitments-cards { grid-template-columns: 1fr 1fr; gap: var(--s-3); } /* the same strip as white cards */
.commitments-cards.commitments-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.commitments-cards > li { padding: var(--s-4); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: border-color var(--d-ui) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease); }
.commitments-cards > li:hover { border-color: var(--gold); }
.commitments > li { padding-top: var(--s-3); border-top: 1px solid color-mix(in srgb, var(--navy) 25%, transparent); }
.commitments h3 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.commitments p { color: var(--navy-50); font-size: var(--t-ui); line-height: 1.55; }
/* Principles: four statements set plainly in two columns; the lavender section is the container */

/* Ledger table inside a card */
.ledger-scroll { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; margin: 8px; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { padding: var(--s-2) var(--s-3); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger thead th { background: var(--ivory); font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ledger td.num { font-size: var(--t-lg); }
.ledger tbody tr td:nth-child(3) { color: var(--positive); } /* favourable variance */
.ledger tbody tr:hover td { background: var(--ivory); }

/* Quote card: a gold rule above, Source Sans 3 Light, the source in Plex Mono */
.quote {
  display: grid; gap: var(--s-3); position: relative; align-content: start;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-4);
}
.quote::before { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; }
.quote p { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 300; line-height: 1.5; max-width: 40ch; color: var(--navy); }
.quote footer { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-50); }

/* Home testimonial: one quote set large on the left; on the right the people who said them, which doubles as the selector */
.quote-feature { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-6) var(--s-8); align-items: center; }
.quote-stage { display: grid; position: relative; padding-top: var(--s-2); min-height: 200px; } /* no rule of its own: the heading above carries the gold line */
.quote-big {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
}
.quote-big.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.quote-big p { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 300; line-height: 1.4; color: var(--navy); max-width: 30ch; text-wrap: pretty; }
.quote-picks { display: grid; gap: var(--s-1); }
.quote-pick {
  display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: var(--s-2); text-align: left;
  min-height: 72px; padding: var(--s-2) var(--s-3); border-radius: var(--radius); border: 1px solid transparent;
  background: transparent; color: var(--navy-50); font: inherit; cursor: pointer;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-ui) var(--ease);
}
.quote-pick:hover { background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--navy); }
.quote-pick.is-active { background: var(--card); border-color: var(--gold); box-shadow: var(--shadow-soft); color: var(--navy); }
.quote-pick-tile { width: 48px; height: 48px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; transition: background-color var(--d-fast) var(--ease); }
.quote-pick-tile .icon { width: 24px; height: 24px; color: var(--navy-50); --icon-accent: var(--navy-50); transition: color var(--d-fast) var(--ease); }
.quote-pick:hover .quote-pick-tile .icon { color: var(--navy); --icon-accent: var(--gold); }
.quote-pick.is-active .quote-pick-tile { background: var(--navy); }
.quote-pick.is-active .quote-pick-tile .icon { color: var(--gold-light); --icon-accent: var(--gold-light); }
.quote-pick-text { display: grid; gap: 2px; font-size: var(--t-sm); }
.quote-pick-text strong { font-size: var(--t-base); font-weight: 600; color: inherit; }
.quote-pick.is-active .quote-pick-text span { color: var(--navy-50); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Industries: twelve pills travel one ring around a centred statement, the same motion as the hero orbit.
   The wrap is the size container, so the radius (cqw) follows its content width. */
.industries-grid { position: relative; display: grid; place-items: center; aspect-ratio: 10 / 8.6; min-height: 640px; container-type: inline-size; } /* the height follows the width so the orbit (74cqw across, chips at 37cqw) always stays inside the section */
.industries-grid::before, .industries-grid::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--navy) 30%, transparent); pointer-events: none;
}
.industries-grid::before { width: 54cqw; height: 54cqw; }
.industries-grid::after { width: 74cqw; height: 74cqw; }
.industries-grid .section-intro { margin: 0; text-align: center; max-width: 36cqw; position: relative; z-index: 1; } /* fits inside the inner ring (radius 27cqw) with the link below the copy */
.industries-grid .section-intro p { font-size: var(--t-ui); }
.industry-list { position: absolute; inset: 0; }
.industries-link { margin-top: var(--s-3); } /* sits under the intro copy, inside the cloud's centre */
.industry-list li {
  position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ivory); border-radius: var(--pill);
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap;
  --r: 37cqw; --a: 0deg; --t: 120s;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  animation: orbit var(--t) linear infinite;
}
.industry-list li:nth-child(1) { --a: -90deg; }  .industry-list li:nth-child(2) { --a: -60deg; }  .industry-list li:nth-child(3) { --a: -30deg; }
.industry-list li:nth-child(4) { --a: 0deg; }    .industry-list li:nth-child(5) { --a: 30deg; }   .industry-list li:nth-child(6) { --a: 60deg; }
.industry-list li:nth-child(7) { --a: 90deg; }   .industry-list li:nth-child(8) { --a: 120deg; }  .industry-list li:nth-child(9) { --a: 150deg; }
.industry-list li:nth-child(10) { --a: 180deg; } .industry-list li:nth-child(11) { --a: 210deg; } .industry-list li:nth-child(12) { --a: 240deg; }
/* Pausing on hover only where a real pointer hovers; a touch tap would leave the cloud stuck */
@media (hover: hover) and (pointer: fine) {
  .industries-grid:hover .industry-list li { animation-play-state: paused; }
}
/* The two long-running loops (orbit ring, industries cloud) share one pause control; the choice persists */
.motion-toggle {
  position: absolute; right: 0; bottom: 0; z-index: 1; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--pill); background: var(--paper); color: var(--navy-50);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.motion-toggle:hover { color: var(--navy); border-color: var(--navy); }
.motion-toggle[aria-pressed="true"] { color: var(--navy); }
html.motion-paused .orbit-rings .ring-outer, html.motion-paused .industry-list li { animation-play-state: paused; }

/* Articles: image cards */
.article-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.article-list > li { overflow: hidden; }
.article-list a, .article-link { display: grid; grid-template-columns: 1fr; gap: var(--s-1); padding: 0 0 var(--s-3); text-decoration: none; }
/* Articles not yet written show as drafts: no link, a mono tag before the topic */
.article-draft { color: var(--navy-50); }
.article-draft::after { content: " \00b7"; }
.article-thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 0; border-radius: 0; margin-bottom: var(--s-1); }
.article-meta { font-family: var(--mono); color: var(--gold-text); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; padding: 0 var(--s-3); }
.article-title { font-size: var(--t-base); font-weight: 600; line-height: 1.35; padding: 0 var(--s-3); }
.article-list a:hover .article-title { color: var(--gold-text); }
.article-list time { color: var(--slate); font-size: var(--t-sm); padding: 0 var(--s-3); }
.article-list-full { grid-template-columns: repeat(3, 1fr); }
.article-body { display: grid; gap: var(--s-1); padding: 0 var(--s-3); }
.article-body .article-title { padding: 0; }
.article-excerpt { color: var(--slate); font-size: var(--t-sm); }
.article-list li[hidden] { display: none; }
.empty-note { color: var(--slate); padding: var(--s-4) 0; }

/* FAQ: cards on lavender */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-8); align-items: start; }
.faq-grid .section-intro { margin-bottom: 0; }
.faq { display: grid; gap: var(--s-2); }
.faq details { padding: 0 var(--s-3); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0; font-weight: 600; font-size: var(--t-base);
}
.faq summary::-webkit-details-marker { display: none; }
/* A plus sign; the open row shows a Gold Text minus */
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ivory);
  color: var(--navy); font-weight: 400; font-size: var(--t-xl); line-height: 1;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
/* Open row: the gold edge and the soft shadow, and the sign's tile turns navy with the minus in Gold Light, like a chosen testimonial */
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow-soft); }
.faq details[open] summary::after { content: "−"; background: var(--navy); color: var(--gold-light); }
.faq details p { color: var(--slate); padding-bottom: var(--s-3); font-size: var(--t-ui); }

/* Contact band: navy, with the orbit field in one corner */
.contact { position: relative; overflow: hidden; background: var(--navy); color: var(--ivory); padding: var(--s-8) 0; text-align: center; }
.contact::before {
  content: ""; position: absolute; right: 0; top: 0; width: 288px; height: 288px; pointer-events: none;
  background: url("../images/brand/orbit-field-navy.svg") 0 0 / 144px 144px repeat;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 30%, transparent 72%); mask-image: radial-gradient(circle at 100% 0%, #000 30%, transparent 72%);
}
.contact > .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); justify-items: center; }
.contact h2 { max-width: 22ch; margin: 0 auto var(--s-3); color: var(--ivory); }
.contact p { color: color-mix(in srgb, var(--ivory) 80%, transparent); margin-inline: auto; }
.contact-actions { display: grid; gap: var(--s-2); justify-items: center; }
.contact-email { color: var(--ivory); text-underline-offset: .2em; text-decoration-color: var(--gold-light); }

/* Footer: Deep Navy, the reversed horizontal logo, a gold rule above the sign-off */
.site-footer { background: var(--deep-navy); color: var(--ivory); padding: var(--s-8) 0 var(--s-4); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-brand img { display: block; height: 44px; width: auto; }
.footer-brand p { color: color-mix(in srgb, var(--ivory) 70%, transparent); margin-top: var(--s-3); font-size: var(--t-sm); max-width: 36ch; }
.site-footer h3 {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6;
  color: var(--gold-light); margin-bottom: var(--s-2);
}
.footer-contact { font-style: normal; }
.site-footer nav a, .footer-contact a { display: block; text-decoration: none; padding: 0.3rem 0; font-size: var(--t-sm); color: color-mix(in srgb, var(--ivory) 85%, transparent); transition: color var(--d-fast) var(--ease); }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); padding-top: var(--s-3);
  border-top: 1px solid var(--gold);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--ivory) 65%, transparent);
}
.footer-bottom a { color: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-legal { display: flex; gap: var(--s-3); }
.footer-bottom .icon { width: 16px; height: 16px; stroke: currentColor; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after, .menu-toggle-icon::before, .menu-toggle-icon::after, .menu-toggle-icon > span { transition: none; }
  .quote-big { transform: none; transition: opacity 220ms var(--ease), visibility 0s linear 220ms; }
  .orbit-rings, .orbit-hub, .orb, .orbit-dot, .orbit-rings .ring-outer, .industry-list li { animation: none; }
  .motion-toggle { display: none; } /* nothing is moving */
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .orbit { max-width: 480px; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stages::before { display: none; }
  .commitments { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .faq-grid .section-intro { margin-bottom: var(--s-2); }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .article-list-full { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; } /* brand on its own row, then services, company and contact side by side */
  .footer-brand { grid-column: 1 / -1; }
  .quote-feature { grid-template-columns: 1fr; gap: var(--s-4); align-items: start; }
  .industries-grid { min-height: 0; aspect-ratio: auto; place-items: stretch; container-type: normal; }
  .industries-grid::before, .industries-grid::after { display: none; }
  .industries-grid .section-intro { text-align: center; margin: 0 auto var(--s-4); max-width: 60ch; }
  .industry-list { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); }
  .industry-list li { position: static; transform: none; animation: none; }
  .industries-grid .motion-toggle { display: none; } /* the cloud is a static list here */
}

@media (max-width: 760px) {
  .section, .hero, .contact { padding: var(--s-6) 0; }
  .nav { height: calc(100dvh - 76px); }
  .service-list { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .stages::before { display: none; }
  .signals-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .signals-grid .section-intro { margin-bottom: var(--s-2); }
  .signals > li { grid-template-columns: 56px 1fr; padding: var(--s-3) 0; }
  .signal-n { font-size: var(--t-2xl); }
  .commitments { grid-template-columns: 1fr; gap: var(--s-3); }
  /* The outcomes table restacks: one card per row, Before and After side by side with their labels */
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody { display: block; }
  .ledger tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px var(--s-3); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); }
  .ledger tbody tr:last-child { border-bottom: 0; }
  .ledger tbody tr:hover td { background: transparent; }
  .ledger td { display: block; padding: 0; border: 0; }
  .ledger td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .ledger td:last-child { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--slate); }
  .ledger td.num { text-align: left; white-space: normal; }
  .ledger td.num::before { content: attr(data-label); display: block; font-size: var(--t-sm); font-weight: 600; color: var(--slate); }
  .article-list, .article-list-full { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .orbit { max-width: 360px; }
  .orb { font-size: 13px; padding: 5px 11px 5px 8px; gap: 6px; }
  .orb .icon { width: 16px; height: 16px; }
  .o4, .o6, .o7, .o8 { display: none; } /* four chips on mobile, as the kit specifies */
  .o2 { left: 86cqw; }
  .o3 { left: 17cqw; }  /* keeps the Automation chip inside the phone viewport */
  .quote { padding: var(--s-4); }
  /* Testimonial on phones: the quote in a white card with its attribution shown; the three people as a row of tiles */
  .quote-stage { min-height: 0; padding: var(--s-4) var(--s-3) var(--s-3); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px var(--rule), var(--shadow-soft); margin: 8px; }
  .quote-stage::before { left: var(--s-3); top: var(--s-3); width: 40px; }
  .quote-big { display: grid; gap: var(--s-2); }
  .quote-big p { font-size: 1.25rem; line-height: 1.4; max-width: none; }
  .quote-big footer { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-50); }
  .quote-picks { grid-template-columns: repeat(3, 1fr); gap: var(--s-1); }
  .quote-pick { grid-template-columns: 1fr; justify-items: center; row-gap: 6px; min-height: 0; padding: var(--s-2) var(--s-1); text-align: center; }
  .quote-pick-tile { width: 44px; height: 44px; }
  .quote-pick-text { font-size: 12px; }
  .quote-pick-text strong { font-size: 12.8px; line-height: 1.2; }
  .quote-pick-text span { display: none; }
}

@media (max-width: 480px) {
  .stages { grid-template-columns: 1fr; gap: var(--s-2); }
  .stages > li { grid-template-columns: 48px 1fr; column-gap: var(--s-3); row-gap: 2px; text-align: left; justify-items: start; }
  .stages .stage-mark { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .stage-mark .icon { width: 22px; height: 22px; }
  .stage-mark .stage-number { width: 20px; height: 20px; font-size: 12px; top: -7px; right: -7px; }
  .stages p { max-width: none; }
  .actions .button { width: 100%; }
}

/* =========================================================
   Inner pages, menus, forms
   ========================================================= */

.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.text-center { text-align: center; }
.placeholder-tag {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: var(--pill);
  background: var(--ivory); color: var(--gold-text); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.contact-note { font-size: var(--t-sm); color: color-mix(in srgb, var(--on-band) 75%, transparent); }
.form-note { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--slate); }
.figure-note { font-size: var(--t-sm); color: var(--slate); }
.mt-4 { margin-top: var(--s-4); }
.on-ink { color: color-mix(in srgb, var(--on-band) 65%, transparent); }

/* ---------- Navigation menus ---------- */
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: var(--s-1); }
.nav-trigger::after {
  content: ""; width: 6px; height: 6px; margin-bottom: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--d-fast) var(--ease);
}
.has-menu.is-open > .nav-trigger::after { transform: rotate(225deg); margin-bottom: -2px; }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; z-index: var(--z-float);
  display: none; padding: var(--s-1); background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-menu:hover > .submenu, .has-menu.is-open > .submenu {
  display: block; opacity: 1; transform: none;
  transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  @starting-style { opacity: 0; transform: translateY(4px); }
}
.nav .submenu a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 400; font-size: var(--t-ui);
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.nav .submenu a:hover { background: var(--ivory); color: var(--gold-text); }
.nav .submenu a[aria-current="page"] { background: var(--ivory); color: var(--gold-text); }

/* ---------- Mega menu ---------- */
.nav-item.has-mega { position: static; }
.submenu.mega {
  /* the same left and right edges as .wrap: the gutter, or the centred column on wide screens */
  left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  top: calc(100% - 8px); min-width: 0; padding: 0; border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.submenu.mega::before { top: -20px; height: 20px; left: 0; right: 0; }
.mega-inner { display: grid; grid-template-columns: minmax(250px, 3fr) 9fr; gap: var(--s-6); padding: var(--s-4) var(--s-4); }
.submenu.mega .mega-inner { width: auto; margin: 0; }
/* Intro panel on ivory */
.mega-side {
  display: grid; gap: var(--s-2); align-content: start; justify-items: start;
  padding: var(--s-4); background: var(--ivory); border-radius: var(--radius);
}
.mega-title { font-family: var(--serif); font-size: var(--t-xl); font-weight: 500; }
.mega-text { color: var(--navy-50); font-size: var(--t-sm); max-width: 28ch; line-height: 1.55; }
.mega-side .button { margin-top: var(--s-2); }
/* Eight service tiles: icon in an ivory circle above the name; gold border only on hover */
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.nav .submenu a.mega-item {
  display: grid; grid-template-columns: 1fr; align-content: start; row-gap: 4px;
  padding: var(--s-3); border-radius: var(--radius); font-weight: 400; border: 1px solid transparent;
  transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.nav .submenu a.mega-item:hover { background: transparent; border-color: var(--gold); color: inherit; }
.mega-item .icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: var(--s-1); border-radius: 50%;
  background: var(--ivory); stroke: var(--navy);
}
.mega-name { font-weight: 600; font-size: var(--t-ui); color: var(--navy); line-height: 1.3; }
.mega-desc { font-size: var(--t-sm); color: var(--navy-50); line-height: 1.45; }
.nav .submenu a.mega-item[aria-current="page"] { background: var(--ivory); }
.nav .submenu a.mega-item[aria-current="page"] .mega-name { color: var(--gold-text); }
.nav .submenu .mega-side a.text-link { display: inline-flex; padding: 0; font-weight: 600; border-radius: 0; }
.nav .submenu .mega-side a.text-link:hover { background: transparent; }
.nav .submenu .mega-side a.button { display: inline-flex; font-weight: 600; color: var(--gold-light); }
.nav .submenu .mega-side a.button:hover { background: var(--deep-navy); color: var(--gold-light); }

/* Phones and tablets: a hamburger opens a panel under the header; the groups become accordions */
@media (max-width: 1023.98px) {
  .header-tools { display: flex; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 76px); display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s-2) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule);
    box-shadow: var(--shadow-soft); overflow-y: auto; overscroll-behavior: contain; z-index: var(--z-menu);
  }
  .nav.is-open { display: flex; opacity: 1; transition: opacity 180ms var(--ease); @starting-style { opacity: 0; } }
  /* Links rise in 40 ms apart once the panel is open */
  .nav.is-open > * { opacity: 1; transform: none; transition: opacity 240ms var(--ease), transform 240ms var(--ease); transition-delay: calc(var(--n, 0) * 40ms); @starting-style { opacity: 0; transform: translateY(12px); } }
  .nav > :nth-child(2) { --n: 1; } .nav > :nth-child(3) { --n: 2; } .nav > :nth-child(4) { --n: 3; } .nav > :nth-child(5) { --n: 4; } .nav > :nth-child(6) { --n: 5; }
  .nav a:not(.button) { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); font-size: var(--t-lg); border-radius: 0; }
  .nav a:not(.button):hover { background: transparent; color: var(--gold-text); }
  .nav-cta { margin: var(--s-3) 0 0; justify-content: center; }
  .nav-item { display: block; border-bottom: 1px solid var(--rule); }
  .nav-trigger { width: 100%; justify-content: space-between; font-size: var(--t-lg); padding: var(--s-2) 0; min-height: 48px; border-radius: 0; }
  .nav-trigger:hover { background: transparent; }
  .nav-trigger::after { width: 7px; height: 7px; margin-right: 4px; }
  .submenu { position: static; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 0 0 var(--s-2) var(--s-2); }
  .submenu::before { display: none; }
  .has-menu:hover > .submenu, .has-menu:focus-within > .submenu { display: none; }
  .has-menu.is-open > .submenu { display: block; }
  .nav .submenu a { padding: var(--s-1) 0; font-size: var(--t-base); border-radius: 0; }
  .nav .submenu a:hover, .nav .submenu a[aria-current="page"] { background: transparent; }
  .submenu.mega { border: 0; box-shadow: none; }
  .mega-inner { display: block; width: auto; margin: 0; padding: 0; }
  .mega-side { display: none; }
  .mega-grid { display: block; }
  .nav .submenu a.mega-item { display: flex; align-items: center; gap: var(--s-2); padding: 12px 0; min-height: 44px; border-radius: 0; border: 0; }
  .mega-item .icon { width: 20px; height: 20px; padding: 0; margin: 0; background: transparent; border-radius: 0; }
  .mega-desc { display: none; }
  .mega-name { font-weight: 400; }
}

/* ---------- Inner page hero: ivory, with the orbit field in the top-right corner ---------- */
.page-hero { position: relative; overflow: hidden; padding: var(--s-8) 0; background: var(--ivory); }
.page-hero::before {
  content: ""; position: absolute; right: 0; top: 0; width: 288px; height: 288px; pointer-events: none;
  background: url("../images/brand/orbit-field-light.svg") 0 0 / 144px 144px repeat;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 30%, transparent 72%); mask-image: radial-gradient(circle at 100% 0%, #000 30%, transparent 72%);
}
.page-hero > .wrap { position: relative; }
.page-hero h1 { max-width: 22ch; margin-bottom: var(--s-3); }
.page-hero .lede { margin-bottom: var(--s-4); }
.page-hero .actions { margin-top: var(--s-2); }
.crumb { font-size: var(--t-sm); font-weight: 600; color: var(--navy-50); margin-bottom: var(--s-3); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--gold-text); }

/* ---------- Two-column content ---------- */
.two-col { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-8); align-items: start; }
.two-col .section-intro { margin-bottom: 0; }
.side-note h2 { margin-bottom: var(--s-2); }
.side-note p { color: var(--slate); }
.prose p { color: var(--slate); margin-bottom: var(--s-2); }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin: var(--s-4) 0 var(--s-1); }
.prose h3:first-child { margin-top: 0; }
.section-ink .prose p, .section-ink p { color: color-mix(in srgb, var(--on-band) 78%, transparent); }
/* Text inside white cards on the band stays dark */
.section-ink .team p, .section-ink .quote-on-ink p, .section-ink .stages-vertical p { color: var(--slate); }
.section-ink .quote-on-ink p { color: var(--ink); }
.section-ink .team h3, .section-ink .stages-vertical h3 { color: var(--ink); }

/* ---------- Dash lists -> check lists ---------- */
.dash-list { display: grid; gap: var(--s-1); color: var(--slate); }
.dash-list li { position: relative; padding-left: 28px; }
.dash-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy);
}
.dash-list li::after {
  content: ""; position: absolute; left: 5px; top: calc(.3em + 4px); width: 8px; height: 5px;
  border-left: 1.5px solid var(--gold-light); border-bottom: 1.5px solid var(--gold-light); transform: rotate(-45deg);
}
.dash-list-lg { gap: var(--s-2); font-size: var(--t-lg); line-height: 1.5; }
.dash-list-lg li { padding-left: 36px; }
.dash-list-lg li::before { width: 24px; height: 24px; top: .2em; }
.dash-list-lg li::after { left: 7px; top: calc(.2em + 6px); width: 10px; height: 6px; }
.section-ink .dash-list li::before { background: var(--ivory); }
.section-ink .dash-list li::after { border-color: var(--navy); }
.section-ink .dash-list { color: color-mix(in srgb, var(--on-band) 88%, transparent); }

/* Service list variants */
.service-list-single { grid-template-columns: 1fr; }
.service-list-single .service { grid-template-columns: 1fr 2fr; gap: var(--s-4); align-items: start; }
.service-list-single .service dt { grid-column: 1; }
.service-list-single .service dd { grid-column: 2; }

/* Stage variants: vertical cards (service pages, on the dark band) */
.stages-vertical { grid-template-columns: 1fr; gap: var(--s-2); padding-top: 0; }
.stages-vertical::before { display: none; }
.stages-vertical > li { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: var(--s-3); row-gap: 2px; text-align: left; justify-items: start; padding: var(--s-3); color: var(--ink); }
.stages-vertical .stage-number { grid-row: span 2; margin: 0; }
.stages-vertical h3 { font-size: var(--t-base); }
.stages-vertical p { font-size: var(--t-sm); max-width: none; }
.section-ink .stages-vertical p { color: var(--slate); }
.stages-compact { gap: var(--s-2); }
.stages-compact > li { grid-template-columns: 36px 1fr; grid-template-rows: auto; align-items: center; background: transparent; border: 0; box-shadow: none; padding: 0; text-align: left; justify-items: start; }
.stages-compact .stage-number { width: 36px; height: 36px; font-size: var(--t-base); grid-row: auto; }
.stages-compact p { font-size: var(--t-base); max-width: none; }

/* ---------- Stats ---------- */
/* One headline figure above a proof table: label in Plex Mono, the figure in Cinzel, the "after" in Gold Text */
.figure-lead { display: grid; gap: var(--s-1); margin-bottom: var(--s-4); }
.figure-lead strong { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 4vw, var(--t-5xl)); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.figure-lead em { font-style: normal; color: var(--gold-text); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stat-row-3 { grid-template-columns: repeat(3, 1fr); }
.stat-row > div { display: grid; align-content: end; gap: var(--s-1); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-4); box-shadow: var(--shadow-soft); }
.stat-row dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 400; }
.stat-row dd { font-family: var(--serif); font-size: var(--t-3xl); font-weight: 700; line-height: 1.1; letter-spacing: .02em; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- Team (on the dark band) ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.team > li { padding: var(--s-3); color: var(--ink); }
.team-portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--s-2); }
.team h3 { font-size: var(--t-base); margin-bottom: 2px; }
.team-role { font-size: var(--t-sm); margin-bottom: var(--s-1); color: var(--gold-text); font-weight: 600; }
.team p { font-size: var(--t-sm); color: var(--slate); }

/* ---------- Case studies ---------- */
.case-head { margin-bottom: var(--s-6); }
.case-meta { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--s-2); }
.case-head h2 { max-width: 24ch; }
.case .two-col { grid-template-columns: 8fr 4fr; }
.case-figures dl { display: grid; gap: var(--s-2); padding: var(--s-3); position: sticky; top: calc(76px + var(--s-3)); }
.case-figures dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.case-figures dd { font-family: var(--serif); font-size: var(--t-2xl); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.case-figures > dl > div { padding-bottom: var(--s-2); border-bottom: 1px solid var(--rule); }
.case-figures > dl > div:last-child { border-bottom: 0; padding-bottom: 0; }

/* Quotes in a grid (dark band) */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.quote-on-ink { color: var(--ink); padding: var(--s-4); background: var(--card); }
.quote-on-ink p { font-size: var(--t-lg); max-width: none; font-weight: 300; }

/* Ledger on the dark band: lives inside its card */
.ledger-on-ink { color: var(--ink); }

/* ---------- Insights filters ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-4); }
.filter {
  min-height: 44px; padding: 0 var(--s-3); border: 1px solid transparent; border-radius: var(--pill); background: var(--ivory); color: var(--navy);
  font-size: var(--t-sm); font-weight: 600; transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.filter:hover { border-color: var(--rule); background: color-mix(in srgb, var(--card) 60%, var(--ivory)); }
.filter.is-active { background: var(--card); color: var(--navy); border-color: var(--gold); box-shadow: var(--shadow-soft); }

/* ---------- Contact page ---------- */
.contact-page-grid { display: grid; grid-template-columns: 7fr 4fr; gap: var(--s-8); align-items: start; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-4); box-shadow: var(--shadow-soft); margin: 8px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1); min-width: 0; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-base); color: var(--navy); background: var(--surface);
  width: 100%; min-width: 0; /* a select never widens the form to fit its longest option */
  min-height: 48px; padding: var(--s-1) var(--s-2); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--navy-50); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-light); }
.field input[aria-invalid="true"] { border-color: var(--negative); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--ivory); color: var(--navy-50); cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* the spam trap, off-screen for people, present for bots */
.form-error, .field-error { color: var(--negative); font-size: var(--t-sm); font-weight: 600; }
.form-success { color: var(--positive); font-weight: 600; }
.form .button { justify-self: start; }
.contact-aside h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.contact-aside h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.contact-details { display: grid; gap: var(--s-2); }
.contact-details > div { display: grid; gap: 2px; padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.contact-details dt { display: flex; align-items: center; gap: var(--s-1); font-size: var(--t-sm); color: var(--slate); font-weight: 600; }
.contact-details dd { line-height: 1.5; font-weight: 600; }
.contact-details a { text-underline-offset: .2em; color: var(--ink); }

/* ---------- Custom cursor (kept at the client's request) ---------- */
@property --dot-scale { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --ring-scale { syntax: "<number>"; inherits: true; initial-value: 1; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor label { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
  .cursor { position: fixed; inset: 0; pointer-events: none; z-index: var(--z-cursor); --dot-scale: 1; --ring-scale: 1; }
  .cursor-dot, .cursor-ring { position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
  .cursor-dot { width: 8px; height: 8px; background: var(--navy); transition: --dot-scale var(--d-ui) var(--ease), opacity var(--d-ui) var(--ease); }
  .cursor-ring {
    width: 36px; height: 36px; border: 1px solid var(--navy);
    transition: --ring-scale var(--d-ui) var(--ease), background-color var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease), opacity var(--d-ui) var(--ease);
  }
  .cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring { opacity: 0; }
  .cursor.is-hover { --dot-scale: .5; --ring-scale: 1.56; }
  .cursor.is-hover .cursor-ring { background: color-mix(in srgb, var(--gold) 22%, transparent); }
  .cursor.is-down { --ring-scale: .78; }
  .cursor.is-text .cursor-dot, .cursor.is-text .cursor-ring { opacity: 0; }
  .cursor.on-ink .cursor-dot { background: var(--on-band); }
  .cursor.on-ink .cursor-ring { border-color: var(--on-band); }
}
@media (prefers-reduced-motion: reduce) { .cursor-dot, .cursor-ring { transition: none; } }

/* Bezel tray: a 1 px rule, a 6 px tray in the section's other paper, a second hairline, then the one soft shadow */
.bezel { border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 0 0 7px var(--ivory), 0 0 0 8px var(--rule), var(--shadow-soft); }
.section-rule .bezel, .section-ink .bezel, .contact .bezel { box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px var(--rule), var(--shadow-soft); }
.section-ink .bezel, .contact .bezel { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ivory) 10%, transparent), 0 0 0 8px color-mix(in srgb, var(--ivory) 25%, transparent), var(--shadow-soft); }

/* ---------- Dynamic behaviour ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--gold); z-index: var(--z-progress); pointer-events: none; }

.to-top {
  position: fixed; right: calc(var(--s-3) + env(safe-area-inset-right)); bottom: calc(var(--s-3) + env(safe-area-inset-bottom)); z-index: var(--z-float);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-light); box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--d-ui) var(--ease), transform var(--d-ui) var(--ease), visibility 0s linear var(--d-ui), background-color var(--d-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--deep-navy); }
.to-top .icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }


.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-slow) var(--ease); }
.faq-body > div { overflow: hidden; }
.faq-body.is-open { grid-template-rows: 1fr; }

body.page-in { animation: page-in 180ms var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: border-color var(--d-ui) var(--ease); }
  .submenu, .nav.is-open, .nav.is-open > *, .button::after { transition: none; }
  .site-header.is-tucked { transform: none; }
  .faq-body { transition: none; }
  body.page-in { animation: none; }
  .to-top { transition: none; }
  .icon { transition: none; }
}

/* ---------- Images ---------- */
.media { margin: 0; }
.media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.page-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; }
.media-hero img { aspect-ratio: 4 / 3; object-fit: cover; }
.media-case { margin-bottom: var(--s-6); }
.media-case img { aspect-ratio: 16 / 9; object-fit: cover; }
.span-all { grid-column: 1 / -1; margin-top: var(--s-4); }
.span-all img { aspect-ratio: 3 / 2; object-fit: cover; }
.media-map { margin-top: var(--s-4); }
.media-map img { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: none; border: 1px solid var(--rule); }

/* ---------- Scroll animation ---------- */
html.js-reveal .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms);
}
html.js-reveal .reveal.in-view { opacity: 1; transform: none; }
html.js-reveal .media img, html.js-reveal .team-portrait { will-change: transform; }

/* ---------- Responsive for inner pages ---------- */
@media (max-width: 1024px) {
  .two-col, .case .two-col, .contact-page-grid, .page-hero-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .media-hero { max-width: 560px; }
  .case-figures dl { position: static; grid-template-columns: repeat(2, 1fr); }
  .case-figures > dl > div { border-bottom: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; gap: var(--s-3); }
}

@media (max-width: 760px) {
  .page-hero { padding: var(--s-6) 0; }
  .service-list-single .service { grid-template-columns: 1fr; }
  .service-list-single .service dd, .service-list-single .service dt { grid-column: auto; }
  .stat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); }
  .stat-row dd { font-size: var(--t-2xl); }
  .stat-row dt { white-space: normal; }
  .team { grid-template-columns: 1fr; }
  .team-portrait { max-width: 200px; }
  .form { padding: var(--s-3); }
}

/* ---------- Sub-service signature sections: one block kind per kind of work (tools/subservices_features.py) ---------- */
.feat h3 { font-size: var(--t-lg); margin-bottom: var(--s-1); }
.feat p { color: var(--slate); }
.feat-score { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.feat-score li { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 5fr); gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); }
.feat-score li:last-child { border-bottom: 0; }
.feat-area { font-weight: 600; }
.feat-dots { display: inline-flex; gap: 6px; }
.feat-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--navy); background: transparent; }
.feat-dots i.on { background: var(--navy); }
.feat-note { color: var(--slate); font-size: var(--t-sm); }
.feat-legend { display: flex; justify-content: space-between; margin-top: var(--s-2); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.feat-compare { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.feat-head { padding: var(--s-2) var(--s-3); background: var(--ivory); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.feat-cell { padding: var(--s-2) var(--s-3); border-top: 1px solid var(--rule); color: var(--slate); font-size: var(--t-sm); }
.feat-cell.feat-first { color: var(--navy); font-weight: 600; font-size: var(--t-base); }
.feat-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); position: relative; }
.feat-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1px dashed var(--navy); opacity: .4; }
.feat-timeline li { position: relative; padding-top: var(--s-4); }
.feat-timeline li::before { content: ""; position: absolute; top: 5px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--navy); }
.feat-when { display: block; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--s-1); }
.feat-timeline p { font-size: var(--t-sm); }
.feat-calendar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.feat-calendar > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: var(--s-3); }
.feat-calendar h3 { font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); padding-bottom: var(--s-1); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-2); }
.feat-calendar ul { list-style: none; margin: 0; padding: 0; }
.feat-calendar li { padding: 6px 0 6px 18px; position: relative; font-size: var(--t-sm); color: var(--navy); }
.feat-calendar li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.feat-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.feat-metrics > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: var(--s-3); }
.feat-metrics > div.is-lead { grid-column: span 2; border-color: var(--gold); }
.feat-metrics dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.feat-metrics dd { font-family: var(--serif); font-size: var(--t-2xl); color: var(--navy); margin: var(--s-1) 0; }
.feat-metrics .is-lead dd { font-size: var(--t-3xl); }
.feat-metrics p { font-size: var(--t-sm); }
.feat-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); counter-reset: step; }
.feat-flow li { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 44px var(--s-3) var(--s-3); counter-increment: step; } /* room for the step number above the title */
.feat-flow li::before { content: counter(step, decimal-leading-zero); position: absolute; top: var(--s-2); left: var(--s-3); font-family: var(--serif); color: var(--gold-text); font-size: var(--t-base); }
.feat-flow p { font-size: var(--t-sm); }
.feat-exception { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--band); color: var(--on-band); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.feat-exception h3 { color: var(--on-band); }
.feat-exception p { color: color-mix(in srgb, var(--on-band) 78%, transparent); font-size: var(--t-sm); }
@media (max-width: 1024px) {
  .feat-timeline, .feat-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat-timeline::before { display: none; }
  .feat-calendar, .feat-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .feat-score li { grid-template-columns: minmax(0, 1fr) auto; }
  .feat-score .feat-note { grid-column: 1 / -1; }
  .feat-compare { grid-template-columns: minmax(0, 1fr); }
  .feat-compare .feat-head { display: none; }
  .feat-cell { border-top: 0; padding-top: 0; }
  .feat-cell.feat-first { border-top: 1px solid var(--rule); padding-top: var(--s-2); margin-top: var(--s-1); }
  .feat-cell:not(.feat-first)::before { content: attr(data-col) ": "; font-weight: 600; color: var(--navy); }
  .feat-timeline, .feat-flow, .feat-calendar, .feat-metrics { grid-template-columns: minmax(0, 1fr); }
  .feat-metrics > div.is-lead { grid-column: auto; }
  .feat-metrics .is-lead dd { font-size: var(--t-2xl); } /* the lead figure stays on one line on a phone */
}

/* ---------- Service signature sections and proof strips (tools/services_features.py) ---------- */
.sfeat h3 { font-size: var(--t-lg); margin-bottom: var(--s-1); }
.sfeat p { color: var(--slate); }
.sf-label, .sf-if, .sf-level, .sf-axis, .sf-year-head, .sf-ladder dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.sf-pathway { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.sf-pathway li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); }
.sf-pathway p { font-size: var(--t-sm); flex: 1; }
.sf-pathway .text-link { align-self: flex-start; margin-top: var(--s-1); }
.sf-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.sf-stack li { display: grid; grid-template-columns: 56px minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-3); align-items: start; padding: var(--s-3); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.sf-stack li:nth-child(2) { background: var(--ivory); }
.sf-stack li:nth-child(3) { background: color-mix(in srgb, var(--navy) 10%, var(--paper)); }
.sf-stack li:nth-child(4) { background: var(--band); border-color: var(--band); }
.sf-stack li:nth-child(4) h3, .sf-stack li:nth-child(4) p { color: var(--on-band); }
.sf-stack li:nth-child(4) .sf-tier { color: var(--gold-light); }
.sf-tier { font-family: var(--serif); font-size: var(--t-2xl); line-height: 1; color: var(--gold-text); }
.sf-gives { font-size: var(--t-sm); padding-left: var(--s-2); border-left: 2px solid var(--gold); }
.sf-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.sf-axis { grid-column: 1 / -1; }
.sf-axis-x { text-align: right; }
.sf-quad { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: var(--s-3); }
.sf-quad.is-lead { border-color: var(--gold); background: var(--ivory); }
.sf-quad-note { display: block; font-size: var(--t-sm); color: var(--slate); margin-bottom: var(--s-2); }
.sf-quad ul { margin: 0; padding-left: 18px; font-size: var(--t-sm); color: var(--navy); }
.sf-quad li { padding: 2px 0; }
.sf-year { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: var(--s-2) var(--s-3); }
.sf-year-row { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(12, minmax(0, 1fr)); align-items: center; gap: 4px; padding: 10px 0; border-top: 1px solid var(--rule); }
.sf-year-head { border-top: 0; text-align: center; }
.sf-year-label { font-weight: 600; font-size: var(--t-sm); color: var(--navy); }
.sf-year-row i { display: block; width: 10px; height: 10px; margin: 0 auto; border-radius: 50%; background: var(--rule); }
.sf-year-row i.on { background: var(--gold); box-shadow: 0 0 0 1px var(--navy); }
.sf-year-sum { display: none; }
.sf-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.sf-ladder li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: var(--s-3); }
.sf-ladder li:nth-child(1) { margin-top: 56px; }
.sf-ladder li:nth-child(2) { margin-top: 28px; }
.sf-ladder li:nth-child(3) { border-color: var(--gold); }
.sf-ladder p { font-size: var(--t-sm); }
.sf-ladder dl { margin: var(--s-2) 0 0; display: grid; gap: 8px; }
.sf-ladder dd { margin: 2px 0 0; font-size: var(--t-sm); color: var(--navy); }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); align-items: center; }
.proof-label { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-2); }
.proof h2 { color: var(--on-band); margin-bottom: var(--s-2); }
.proof p { color: color-mix(in srgb, var(--on-band) 78%, transparent); margin-bottom: var(--s-3); }
.proof .text-link { color: var(--gold-light); text-decoration-color: var(--gold-light); }
.proof-figures { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.proof-figures > div { border-left: 2px solid var(--gold); padding-left: var(--s-2); }
.proof-figures dt { font-size: var(--t-sm); color: color-mix(in srgb, var(--on-band) 78%, transparent); }
.proof-figures dd { margin: 4px 0 0; font-family: var(--serif); font-size: var(--t-2xl); color: var(--paper); }
.proof-note { font-size: var(--t-xs); color: color-mix(in srgb, var(--on-band) 60%, transparent); margin: var(--s-2) 0 0; }
@media (max-width: 1024px) {
  .sf-pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
}
@media (max-width: 760px) {
  .sf-pathway, .sf-matrix, .sf-ladder, .proof-figures { grid-template-columns: minmax(0, 1fr); }
  .sf-stack li { grid-template-columns: 40px minmax(0, 1fr); }
  .sf-gives { grid-column: 2; }
  .sf-ladder li:nth-child(1), .sf-ladder li:nth-child(2) { margin-top: 0; }
  .sf-year-head, .sf-year-row i { display: none; }
  .sf-year-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sf-year-sum { display: block; font-size: var(--t-sm); color: var(--slate); }
}

/* ---------- Touch targets ---------- */
/* Inline links keep their line box; padding on an inline element only enlarges the tap area */
@media (pointer: coarse) {
  .site-footer nav a, .footer-contact a, .footer-legal a, .contact-details a { padding-block: 11px; }
  .service dt a, .text-link, .crumb a, .article-link, .mega-side a.text-link { padding-block: 8px; }
  .orb { min-height: 40px; }
  .quote-pick, .filter, .motion-toggle { min-height: 44px; }
  .faq summary { min-height: 48px; }
}
/* Phones: KPI cards become one ledger row each, label left and figure right (after the 760px rules so it wins) */
@media (max-width: 480px) {
  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .stat-row > div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: var(--s-2) var(--s-3); gap: var(--s-2); }
  .stat-row dd { font-size: var(--t-xl); }
}
/* Phones: the orbit-field corner pattern shrinks to one tile so it never sits behind a heading */
@media (max-width: 760px) {
  .page-hero::before, .contact::before { width: 144px; height: 144px; }
}
/* Narrow phones (320 to 400px): the lockup drops to 200px so logo, gutters and the hamburger fit in one row */
/* Narrow phones: case-study figure cards shrink with the column instead of widening it */
@media (max-width: 480px) {
  .case-figures { grid-template-columns: minmax(0, 1fr); }
  .case-figures dl { grid-template-columns: minmax(0, 1fr); }
  .case-figures > dl > div { padding-bottom: var(--s-2); border-bottom: 1px solid var(--rule); }
  .case-figures > dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .case-figures dd { font-size: var(--t-xl); }
  .case-figures dt, .stat-row dt { overflow-wrap: normal; } /* labels wrap between words, never inside one */
  .case-figures dd { white-space: normal; }
}

/* ---------- Selection language ----------
   From the testimonial picks: hover lifts 2 px on a soft tint; the chosen or open item is a white card with a Growth Gold edge
   and the soft shadow, its icon tile navy with the icon in Gold Light. Lifts only where a real pointer hovers. */
@media (hover: hover) and (pointer: fine) {
  .filter:hover, .motion-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
  .orb:hover { transform: translate(-50%, calc(-50% - 2px)); box-shadow: var(--shadow-soft); }
  .stages > li:hover .stage-mark { transform: translateY(-2px); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--gold), var(--shadow-lift); }
  .nav .submenu a:hover, .footer-legal a:hover { transform: translateY(-1px); }
}
.filter { transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease); }
.motion-toggle { transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease); }
.nav .submenu a, .footer-legal a { transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-ui) var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .filter:hover, .motion-toggle:hover, .stages > li:hover .stage-mark, .nav .submenu a:hover, .footer-legal a:hover { transform: none; }
  .orb:hover { transform: translate(-50%, -50%); }
}

/* ---------- Borrowed motion (plan 017): drawn underline, marquee, case rail; smooth wheel scroll lives in main.js ---------- */
/* Hand-drawn gold underline on the hero's key phrases: a stroke as a background image whose width draws in, one phrase after another */
.hl {
  background: none; color: var(--navy); font-weight: 500; padding-bottom: .08em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5C20 3 40 6.5 60 4.5S90 2.5 99 5' fill='none' stroke='%23D4AC3E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .4em;
}
html.js-reveal .hl { background-size: 0% .4em; animation: hl-draw 600ms var(--ease) calc(600ms + var(--i, 0) * 240ms) forwards; }
@keyframes hl-draw { to { background-size: 100% .4em; } }

/* Client marquee: the list twice on one track; the track slides one list length and loops. Pauses on hover and with the motion toggle. */
.clients .marquee { flex-basis: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--s-6); width: max-content; animation: marquee 48s linear infinite; }
.marquee .client-list { flex-wrap: nowrap; gap: var(--s-6); }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-6) / 2)); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
html.motion-paused .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; }
  .marquee .client-list[aria-hidden] { display: none; }
  .marquee .client-list { flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
  .clients .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Case rail: three cards across, native horizontal scroll with snap, swipe on touch, arrows and dots on desktop */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-col, calc((100% - 2 * var(--s-3)) / 3)); grid-template-columns: none; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px; margin: -8px; scroll-padding: 8px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.quote-rail { --rail-col: 100%; }
.case-card { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-4); }
.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.case-card h3 { font-size: var(--t-xl); line-height: 1.25; }
.case-card h3 a { color: inherit; text-decoration: none; }
.case-card h3 a:hover { color: var(--gold-text); }
.case-card > p { color: var(--navy-50); font-size: var(--t-ui); line-height: 1.55; }
.case-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--rule); }
.case-mini dt { font-size: var(--t-xs); color: var(--slate); line-height: 1.3; }
.case-mini dd { font-family: var(--serif); font-weight: 700; font-size: var(--t-base); color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 4px; }
.case-card .text-link { align-self: end; font-size: var(--t-ui); }
.rail-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
.rail-dots { display: flex; gap: 8px; }
.rail-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--rule); transition: background-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease); }
.rail-dots button.is-active { background: var(--gold); transform: scale(1.3); }
.rail-nav { display: flex; gap: var(--s-1); }
.rail-nav button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule); background: var(--card); color: var(--navy);
  transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-ui) var(--ease), opacity var(--d-fast) var(--ease);
}
.rail-nav button:hover:not(:disabled) { border-color: var(--gold); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .rail-nav button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-soft); } }
@media (max-width: 1024px) { .rail { --rail-col: calc((100% - var(--s-3)) / 2); } .quote-rail { --rail-col: 100%; } }
@media (max-width: 720px) { .rail { --rail-col: 100%; } .rail-nav { display: none; } .case-mini { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .rail-nav button:hover:not(:disabled) { transform: none; } .rail-dots button { transition: none; } }

/* ---------- Reference-site section patterns (plan 018) ---------- */
/* Symptoms: white cards on ivory, a small mono numeral, the service to start with */
.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.symptoms > li {
  display: grid; gap: var(--s-1); align-content: start; padding: var(--s-4);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  transition: border-color var(--d-ui) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.symptoms > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.symptoms > li:hover { border-color: var(--gold); }
.symptoms .signal-n { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; color: var(--gold-text); padding: 0; }
.symptoms h3 { font-size: var(--t-xl); }
.symptoms p { color: var(--navy-50); font-size: var(--t-ui); line-height: 1.55; max-width: 60ch; }
.symptoms .text-link { margin-top: var(--s-1); font-size: var(--t-ui); justify-self: start; }
@media (hover: hover) and (pointer: fine) {
  .symptoms > li:hover, html.js-reveal .symptoms > li.reveal.in-view:hover,
  .commitments-cards > li:hover, html.js-reveal .commitments-cards > li.reveal.in-view:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

/* Checklist: outcome statements with the figure in bold, two columns */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-6); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-2); align-items: start; padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); color: var(--navy-50); line-height: 1.5; }
.checklist .icon { color: var(--gold-text); --icon-accent: var(--gold-text); margin-top: 2px; }
.checklist strong { color: var(--navy); font-weight: 600; }

/* Quote cards on the navy band, one per view */
.quote-card { position: relative; display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); color: var(--ink); }
.quote-card::before { content: "\201C"; position: absolute; right: var(--s-3); top: 0; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--gold); opacity: .45; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.4; color: var(--navy); max-width: 44ch; text-wrap: pretty; }
.quote-card footer { font-size: var(--t-sm); color: var(--slate); margin-top: var(--s-1); }
.section-ink .rail-dots button { background: color-mix(in srgb, var(--ivory) 30%, transparent); }
.section-ink .rail-dots button.is-active { background: var(--gold-light); }
.section-ink .rail-nav button { background: transparent; color: var(--ivory); border-color: color-mix(in srgb, var(--ivory) 35%, transparent); }
.section-ink .rail-nav button:hover:not(:disabled) { border-color: var(--gold-light); }
.section-ink .placeholder-tag { background: color-mix(in srgb, var(--ivory) 15%, transparent); color: var(--ivory); }

/* Case-studies hub: search and two selects, a live count, three lines per entry */
.case-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-2); align-items: end; margin-bottom: var(--s-3); }
.case-filters label { display: grid; gap: 6px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.case-filters input, .case-filters select {
  font: inherit; font-size: var(--t-ui); color: var(--navy); min-height: 44px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.case-filters input:focus, .case-filters select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-light); }
.results-count { font-size: var(--t-sm); color: var(--slate); margin-bottom: var(--s-3); }
.service[hidden] { display: none; }
.case-lines { display: grid; gap: 6px; margin-bottom: var(--s-2); }
.case-lines li { display: grid; grid-template-columns: 7ch 1fr; gap: var(--s-1); font-size: var(--t-ui); line-height: 1.5; color: var(--navy-50); }
.case-lines b { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 400; padding-top: 4px; }
.service .case-mini { margin-bottom: var(--s-2); }

/* Service pages: the diagnostic output callout */
.diag-output { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); display: grid; gap: 6px; color: var(--navy); background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: var(--radius); }

/* Industries: one block per sector, three columns inside */
.sector { display: grid; grid-template-columns: 3fr 9fr; gap: var(--s-4); padding: var(--s-6) 0; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.sector:last-of-type { border-bottom: 1px solid var(--rule); }
.sector h2 { font-size: var(--t-2xl); }
.sector-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-4); }
.sector h3 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 400; margin-bottom: var(--s-1); }
.sector p, .sector li { color: var(--navy-50); font-size: var(--t-ui); line-height: 1.55; }
.sector ul { display: grid; gap: 6px; }
.sector .text-link { font-size: var(--t-ui); }

/* About: motto under the hero, the wider team as chips on the navy band */
.motto { font-family: var(--serif); font-size: var(--t-xl); color: var(--gold-text); margin-top: var(--s-3); }
.team-wider { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-4); }
.team-wider li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--pill); background: color-mix(in srgb, var(--ivory) 12%, transparent); color: var(--ivory); font-size: var(--t-sm); }
.team-wider .client-mark { width: 28px; height: 28px; }
.team-wider span:last-child { color: color-mix(in srgb, var(--ivory) 65%, transparent); }

@media (max-width: 1024px) {
  .sector { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-4) 0; }
  .case-filters { grid-template-columns: 1fr 1fr; }
  .case-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .symptoms, .checklist, .case-filters { grid-template-columns: 1fr; }
  .symptoms > li:last-child:nth-child(odd) { grid-column: auto; }
  .sector-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .case-lines li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .symptoms > li:hover, .commitments-cards > li:hover { transform: none; } }
.service-list-detailed .case-meta { font-family: inherit; font-size: var(--t-sm); letter-spacing: 0; text-transform: none; color: var(--slate); } /* sector, services and source read as a sentence, not a label */
