/* GW Consult site styles. Rules and token reference: website/DESIGN.md.
   Three layers: primitives (raw values), semantic roles, component tokens. Components use roles, never raw values.
   CSP-safe: no inline styles. Motion is feedback, scroll reveals and the brand mark only; all of it stops for reduced motion.
   Portcullis sections (.pc) follow the Portcullis marketing kit at commit 1860e60 with its own scoped tokens. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/plex-sans-regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/plex-sans-medium.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/plex-sans-semibold.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/plex-mono-regular.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800.woff2) format("woff2"); }

/* ============================================================ 1. primitives */
:root {
  --navy-950: #070F1E; --navy-900: #0B1B33; --navy-800: #13284A; --navy-700: #1E3A63;
  --teal-300: #7FE0D6; --teal-400: #2EC4B6; --teal-700: #0E7C72; --teal-50: #E7F7F5;
  --coral-300: #FF9873; --coral-400: #FF7849; --coral-600: #C84A1E;
  --slate-100: #E8EDF4; --slate-200: #D3DCE8; --slate-500: #717F96; --slate-700: #33425A;
  --sand-50: #F7F5F1; --sand-200: #E5DFD5;
  --red-50: #FDECEC; --red-700: #A11D1D;
  --green-50: #E3F4EA; --green-800: #17603A; --amber-50: #FFF1D9; --amber-800: #7A4A00;
  --white: #FFFFFF; --black: #000000;

  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;

  --text-sm: 15px; --text-base: 17px; --text-md: 19px; --text-lg: 21px; --text-xl: 24px;
  --text-2xl: clamp(28px, 2.6vw, 34px); --text-3xl: clamp(32px, 3.8vw, 50px); --text-4xl: clamp(36px, 5.4vw, 76px);
  --leading-tight: 1.04; --leading-snug: 1.25; --leading-body: 1.65;
  --tracking-display: -.035em; --tracking-heading: -.025em;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(7, 15, 30, .06), 0 12px 32px -20px rgba(7, 15, 30, .28);
  --shadow-raised: 0 2px 4px rgba(7, 15, 30, .08), 0 28px 56px -28px rgba(7, 15, 30, .45);
  --duration-fast: 120ms; --duration: 220ms; --duration-slow: 600ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ============================================================ 2. semantic roles */
:root {
  --bg: var(--white); --bg-alt: var(--sand-50); --bg-inverse: var(--navy-950); --surface: var(--white); --surface-inverse: var(--navy-900);
  --text: var(--navy-950); --text-muted: var(--slate-700); --text-inverse: var(--white); --text-inverse-muted: var(--slate-200);
  --border: var(--slate-100); --border-strong: var(--slate-500); --border-alt: var(--sand-200); --border-inverse: rgba(255, 255, 255, .14);
  --brand: var(--teal-700); --brand-inverse: var(--teal-300); --brand-tint: var(--teal-50);
  --accent: var(--coral-400); --accent-hover: var(--coral-300); --on-accent: var(--navy-950);
  --link: var(--navy-900); --link-inverse: var(--white);
  --focus: var(--teal-700); --focus-inverse: var(--teal-300);
  --danger: var(--red-700); --danger-bg: var(--red-50);
  --selection: rgba(46, 196, 182, .3); --tint-inverse: rgba(46, 196, 182, .14); --underline-inverse: rgba(255, 255, 255, .4);
  --ring-focus: 0 0 0 3px rgba(14, 124, 114, .25); --ring-danger: 0 0 0 3px rgba(161, 29, 29, .15);
  --mark-stroke: rgba(127, 224, 214, .28); --mark-bolt: rgba(46, 196, 182, .5);
  --section-y: clamp(var(--space-8), 8vw, var(--space-10));
  --gutter: clamp(20px, 5vw, 72px); --max: 1200px; --measure: 40em;
}

/* ============================================================ 3. component tokens */
:root {
  --btn-height: 48px; --btn-height-lg: 56px; --btn-pad-x: 22px; --btn-radius: var(--radius-sm);
  --card-pad: var(--space-6); --card-radius: var(--radius-lg);
  --field-height: 48px; --field-radius: var(--radius-sm); --field-border: var(--border-strong);
  --header-height: 76px; --icon: 20px; --icon-tile: 44px;
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--space-5)); }
body { margin: 0; font: 400 var(--text-base)/var(--leading-body) var(--font-sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-kerning: normal; }
::selection { background: var(--selection); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, li, dd { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .article-head :focus-visible, .section--inverse :focus-visible, .site-footer :focus-visible, .post-feature:focus-visible { outline-color: var(--focus-inverse); }
[hidden] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-3); top: -80px; z-index: 100; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-3); }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.i { width: var(--icon); height: var(--icon); flex: none; }
.small { font-size: var(--text-sm); } .muted { color: var(--text-muted); } .mt-32 { margin-top: var(--space-6); }

h2 { font-size: var(--text-3xl); line-height: 1.08; letter-spacing: var(--tracking-heading); max-width: 22ch; }
h3, .h3 { font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: -.01em; }
.display, .page-hero h1, .article-head h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); max-width: 18ch; margin-inline-start: -.04em; /* optical: large type sits visibly right of its box edge */ }
.lead { font-size: var(--text-md); line-height: 1.6; color: var(--text-muted); max-width: var(--measure); }

/* ============================================================ buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--btn-height); padding: 0 var(--btn-pad-x); border: 1px solid transparent; border-radius: var(--btn-radius); font: 600 var(--text-base)/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.btn:has(> .i:last-child) { padding-right: calc(var(--btn-pad-x) - 4px); /* optical: an arrow carries its own space */ }
.btn .i { width: 18px; height: 18px; transition: transform var(--duration) var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn--lg { min-height: var(--btn-height-lg); padding: 0 calc(var(--btn-pad-x) + 4px); font-size: var(--text-md); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--primary { background: var(--navy-900); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); }
.link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-color: var(--border-strong); }
.link:hover { text-decoration-color: currentColor; }
.link .i { width: 18px; height: 18px; transition: transform var(--duration) var(--ease-out); }
.link:hover .i { transform: translateX(3px); }
.link--inverse { color: var(--link-inverse); text-decoration-color: var(--underline-inverse); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }

/* ============================================================ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-inverse); color: var(--text-inverse); border-bottom: 1px solid var(--border-inverse); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: var(--header-height); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); font-size: var(--text-sm); }
.nav a:not(.btn) { padding: var(--space-2) 0; color: var(--text-inverse-muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out); }
.nav a:not(.btn):hover { color: var(--text-inverse); }
.nav a[aria-current] { color: var(--text-inverse); border-bottom-color: var(--teal-400); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-inverse); border-radius: var(--radius-sm); color: var(--text-inverse); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: var(--header-height); display: grid; padding: var(--space-2) var(--gutter) var(--space-6); background: var(--bg-inverse); border-bottom: 1px solid var(--border-inverse); }
.menu-panel a:not(.btn) { padding: var(--space-3) 0; color: var(--text-inverse); font-size: var(--text-lg); font-weight: 500; text-decoration: none; }
.menu-panel .btn { margin-top: var(--space-4); justify-self: start; }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }

/* ============================================================ inverse heroes */
.hero, .page-hero, .article-head { background: var(--bg-inverse); color: var(--text-inverse); }
.hero .lead, .page-hero .lead, .article-head .article-sum, .article-head .meta { color: var(--text-inverse-muted); }
.hero { padding: var(--space-9) 0 var(--space-9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-7) var(--space-8); align-items: start; }
.hero-title { grid-column: 1 / -1; max-width: none; }
@media (min-width: 380px) { .nowrap-md { white-space: nowrap; } }
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }
.proof { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.proof li { display: grid; gap: var(--space-1); align-content: start; }
.proof strong { font-weight: 600; }
.proof span { color: var(--text-inverse-muted); font-size: var(--text-sm); }
.page-hero { padding: var(--space-9) 0 var(--space-8); }
.page-hero-inner { display: grid; gap: var(--space-5); justify-items: start; }
.page-hero h1 { max-width: 20ch; }

/* brand gate mark behind the example cards: drawn in once, then the bolt slides into the gate and back */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-mark { position: absolute; z-index: -1; width: clamp(320px, 30vw, 460px); height: auto; aspect-ratio: 1; right: max(-40px, calc((100vw - var(--max)) / 2 - 140px)); top: var(--space-6); pointer-events: none; }
@media (max-width: 900px) { .hero-mark { display: none; } }
.hero-mark .g-frame { fill: none; stroke: var(--mark-stroke); stroke-width: .6; }
.hero-mark .g-bolt { fill: var(--mark-bolt); transform-box: fill-box; }

/* example reporting cards: content, captioned */
.stack { display: grid; gap: var(--space-4); margin-top: var(--space-7); }
.stack-cards { display: grid; grid-template-columns: 1fr; position: relative; padding: 0 0 var(--space-5) var(--space-9); }
.sc { border-radius: var(--card-radius); padding: var(--space-5); }
.sc--board { position: absolute; left: 0; top: calc(-1 * var(--space-7)); width: 60%; background: var(--navy-800); color: var(--text-inverse); }
.sc--ce { position: relative; background: var(--surface); color: var(--text); box-shadow: var(--shadow-raised); }
.sc-title { font-weight: 600; font-size: var(--text-sm); }
.sc-score { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-3) 0 var(--space-2); }
.sc-score strong { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.sc-score span { color: var(--text-muted); font-size: var(--text-sm); }
.sc-bar { height: 8px; border-radius: var(--radius-pill); background: var(--slate-100); overflow: hidden; }
.sc-bar span { display: block; width: 60%; height: 100%; border-radius: inherit; background: var(--teal-700); }
.sc-rows { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-1); }
.sc-rows li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) 0; font-size: var(--text-sm); }
.sc-rows b { flex: none; padding: 3px var(--space-2); border-radius: 6px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sc-rows .ok { background: var(--green-50); color: var(--green-800); } .sc-rows .todo { background: var(--amber-50); color: var(--amber-800); }
.sc-kpi { display: grid; margin: var(--space-3) 0; }
.sc-kpi strong { font-size: 30px; line-height: 1; font-weight: 600; }
.sc-kpi span { color: var(--text-inverse-muted); font-size: 13px; margin-top: var(--space-1); }
.sc-chart { display: flex; align-items: flex-end; gap: var(--space-3); height: 64px; }
.sc-chart span { flex: 1; border-radius: 4px 4px 0 0; background: var(--navy-700); }
.sc-chart span:nth-child(1) { height: 100%; } .sc-chart span:nth-child(2) { height: 78%; } .sc-chart span:nth-child(3) { height: 56%; }
.sc-chart span:nth-child(4) { height: 44%; background: var(--teal-400); }
.sc-axis { display: flex; gap: var(--space-3); margin-top: var(--space-1); font-size: 12px; color: var(--text-inverse-muted); }
.sc-axis span { flex: 1; text-align: center; }
.stack figcaption { padding-left: var(--space-9); font-size: var(--text-sm); color: var(--text-inverse-muted); }

/* ============================================================ standards strip */
.strip { background: var(--surface-inverse); color: var(--text-inverse); }
.strip-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-7); padding-block: var(--space-5); }
.strip-label { max-width: none; font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; color: var(--text-inverse-muted); }
.strip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-weight: 500; }

/* ============================================================ sections and layout */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--inverse { background: var(--bg-inverse); color: var(--text-inverse); }
.section--inverse .lead { color: var(--text-inverse-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split--top { align-items: start; }
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-5) var(--space-8); align-items: end; margin-bottom: var(--space-7); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-7); }
.stack-lg { display: grid; gap: var(--space-5); justify-items: start; }
.grid { display: grid; gap: var(--space-5); } .grid--2 { grid-template-columns: 1fr 1fr; }
.h2-narrow { margin-bottom: var(--space-7); }

/* ============================================================ cards */
.tile-icon { display: grid; place-items: center; width: var(--icon-tile); height: var(--icon-tile); border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); }
.tile-icon .i { width: 22px; height: 22px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--card-pad); border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--border-alt); color: var(--text); text-decoration: none; transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out); }
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.tile h3 { margin-top: var(--space-2); }
.tile p { color: var(--text-muted); }
.tile-arrow { margin-top: auto; padding-top: var(--space-3); color: var(--brand); }
.tile-arrow .i { transition: transform var(--duration) var(--ease-out); }
.tile:hover .tile-arrow .i { transform: translateX(4px); }
.tile--feature { grid-column: 1 / 3; grid-row: 1 / 3; padding: var(--space-7); background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--text-inverse); }
.tile--feature:hover { border-color: var(--teal-400); }
.tile--feature h3 { font-size: var(--text-3xl); line-height: 1.08; letter-spacing: var(--tracking-heading); }
.tile--feature p { color: var(--text-inverse-muted); font-size: var(--text-md); max-width: 32em; }
.tile--feature .tile-icon { background: var(--tint-inverse); color: var(--brand-inverse); }
.tile--feature .tile-arrow { color: var(--brand-inverse); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ticks li { display: grid; grid-template-columns: var(--icon) 1fr; gap: var(--space-3); align-items: start; }
.ticks .i { margin-top: .2em; color: var(--brand); /* optical: centres the tick on the first line's x-height */ }
.tile--feature .ticks { margin-top: auto; padding-top: var(--space-6); max-width: 30em; }
.tile--feature .tile-arrow { margin-top: 0; }
.tile--feature .ticks .i { color: var(--brand-inverse); }
.ticks--card { padding: var(--card-pad); border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--border-alt); }

/* ============================================================ how we work */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
.step { display: grid; gap: var(--space-2); align-content: start; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-3); border-radius: 50%; background: var(--teal-400); color: var(--navy-950); font-weight: 600; }
.step p { color: var(--text-inverse-muted); }

/* ============================================================ insights */
.insights-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-4); }
.post-side { display: grid; gap: var(--space-4); }
.post-feature, .post-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--card-pad); border-radius: var(--card-radius); text-decoration: none; transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out); }
.post-feature { justify-content: flex-end; padding: var(--space-7); background: var(--surface-inverse); color: var(--text-inverse); }
.post-feature:hover { background: var(--navy-800); }
.post-feature h3 { font-size: var(--text-3xl); line-height: 1.08; letter-spacing: var(--tracking-heading); max-width: 18ch; }
.post-feature .post-sum, .post-feature .meta { color: var(--text-inverse-muted); }
.post-feature .post-cat { color: var(--brand-inverse); }
.post-card { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.section--alt .post-card { border-color: var(--border-alt); }
.post-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.post-card .post-sum { color: var(--text-muted); }
.post-card .meta { margin-top: auto; }
.post-cat { font-size: var(--text-sm); font-weight: 600; color: var(--brand); }
.meta { font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================ call to action and footer */
.cta-band { padding: var(--section-y) 0; background: var(--bg-alt); border-top: 1px solid var(--border-alt); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6) var(--space-8); }
.cta-copy { display: grid; gap: var(--space-3); }
.cta-band h2 { max-width: 24ch; }
.site-footer { padding: var(--space-9) 0 var(--space-6); background: var(--bg-inverse); color: var(--text-inverse-muted); }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-7); }
.footer-brand { display: grid; gap: var(--space-4); justify-items: start; max-width: 320px; }
.footer-brand img { height: 40px; width: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.site-footer h2 { margin-bottom: var(--space-4); font-size: var(--text-sm); letter-spacing: 0; color: var(--text-inverse); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--text-inverse-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text-inverse); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-top: var(--space-9); font-size: 14px; }

/* ============================================================ services page */
.jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.jump a { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--border-inverse); color: var(--text-inverse); text-decoration: none; font-size: var(--text-sm); transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out); }
.jump a:hover { border-color: var(--teal-400); background: var(--tint-inverse); }
.svc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-8); align-items: start; }
.svc-intro { display: grid; gap: var(--space-4); justify-items: start; }
.svc-intro h2 { margin-top: var(--space-2); }
.good { margin-top: var(--space-2); color: var(--text-muted); }
.good strong { color: var(--text); }
.svc-card { position: sticky; top: calc(var(--header-height) + var(--space-5)); display: grid; gap: var(--space-5); justify-items: start; padding: var(--space-6); border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--border-alt); }
.section:not(.section--alt) .svc-card { background: var(--bg-alt); }

/* ============================================================ about */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.value { display: grid; gap: var(--space-2); align-content: start; padding: var(--card-pad); border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--border-alt); }
.value p { color: var(--text-muted); }
.facts-band { padding: var(--space-7) 0; background: var(--surface-inverse); color: var(--text-inverse); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.facts dt { font-size: var(--text-sm); color: var(--text-inverse-muted); }
.facts dd { margin-top: var(--space-1); font-weight: 500; }

/* ============================================================ solutions: sourcing */
.band-slim { padding: var(--space-5) 0; background: var(--surface-inverse); color: var(--text-inverse); }

/* ============================================================ articles */
.article-head { padding: var(--space-9) 0 var(--space-8); }
.article-head-inner { display: grid; gap: var(--space-4); justify-items: start; }
.article-head h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: 22ch; }
.crumbs { font-size: var(--text-sm); color: var(--text-inverse-muted); }
.crumbs a { color: var(--text-inverse); }
.article-sum { font-size: var(--text-md); max-width: var(--measure); }
.section--article { padding-top: var(--space-8); }
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { margin-top: var(--space-7); font-size: var(--text-2xl); line-height: 1.2; max-width: none; }
.prose h2 + * { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose ol { font-variant-numeric: tabular-nums; }
.prose a { color: var(--brand); }
.prose strong { font-weight: 600; }
.prose blockquote { padding-left: var(--space-5); border-left: 3px solid var(--teal-400); font-size: var(--text-lg); }
.prose code { font: .9em var(--font-mono); padding: 1px 6px; border-radius: 6px; background: var(--slate-100); }
.prose pre { padding: var(--space-5); border-radius: var(--radius-md); background: var(--navy-950); color: var(--slate-100); overflow-x: auto; font-size: var(--text-sm); line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; }
.details { display: grid; gap: var(--space-3); }
.details > div { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-4); }
.details dt { color: var(--text-muted); }
.author { margin-top: var(--space-8); color: var(--text-muted); }
.author strong { color: var(--text); }

/* ============================================================ contact form */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-6); align-items: start; }
.form-card { display: grid; gap: var(--space-5); padding: var(--space-6); border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--border-alt); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-weight: 500; }
.optional { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: var(--field-height); padding: var(--space-3) 14px; border: 1px solid var(--field-border); border-radius: var(--field-radius); background: var(--surface); color: var(--text); font: 400 var(--text-base)/1.4 var(--font-sans); transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out); }
.field textarea { min-height: 168px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-700); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring-focus); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: var(--ring-danger); }
.field-error { color: var(--danger); font-size: var(--text-sm); font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice--error { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-weight: 500; }
.turnstile-wrap { display: grid; gap: var(--space-2); min-height: 65px; align-content: start; }
.ts-status { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.ts-status .spinner { display: inline-block; width: 14px; height: 14px; }
/* Turnstile draws inside a closed shadow root; its hidden response input in the light DOM is the sign it has rendered */
.turnstile-wrap:has(input[name="cf-turnstile-response"]) .ts-status:not(.is-error) { display: none; }
.ts-status.is-error { color: var(--danger); }
.ts-status.is-error .spinner { display: none; }
.form-foot { display: grid; gap: var(--space-3); justify-items: start; }
button.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
button.btn[aria-busy="true"] .spinner { display: inline-block; }
.next-steps { position: sticky; top: calc(var(--header-height) + var(--space-5)); display: grid; gap: var(--space-5); padding: var(--space-6); border-radius: var(--card-radius); background: var(--surface-inverse); color: var(--text-inverse); }
.next-steps ol { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-3); color: var(--text-inverse-muted); font-variant-numeric: tabular-nums; }
.next-steps strong { color: var(--text-inverse); font-weight: 600; }
.next-steps .callout { padding: var(--space-4); border-radius: var(--radius-md); background: var(--tint-inverse); }
.next-steps .callout p { margin-top: var(--space-1); color: var(--text-inverse-muted); }
.sent-tick { width: 56px; height: 56px; fill: none; stroke: var(--teal-400); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; order: -1; }

/* ============================================================ Portcullis kit sections */
.pc {
  --pc-ink: var(--black); --pc-iron: #1B1A18; --pc-paper: var(--white); --pc-stone: #F5F5F4; --pc-rule: #DBDAD6; --pc-muted: #5C5851;
  --pc-gold750: #8F6800; --pc-goldtint: #FFF9EB; --pc-blocked: #B3261E; --pc-allowed: #1B6B2D; --pc-recorded: #155E8C;
  padding: var(--section-y) 0; background: var(--pc-paper); color: var(--pc-ink); font: 400 18px/1.65 Poppins, Arial, sans-serif;
}
.pc ::selection { background: var(--pc-goldtint); }
.pc :focus-visible { outline-color: var(--pc-gold750); }
.pc-stone { background: var(--pc-stone); }
.pc-top { padding-top: 0; }
.pc .gate { display: block; width: 100%; height: clamp(220px, 36vw, 520px); margin-bottom: var(--space-7); fill: var(--pc-ink); }
.pc .gate .threshold { fill: var(--pc-gold750); }
.pc-hero { display: grid; justify-items: start; }
.pc-lockup { height: 46px; width: auto; }
.pc-eyebrow { position: relative; margin-top: var(--space-6); padding-top: var(--space-4); font-weight: 600; font-size: var(--text-sm); }
.pc-eyebrow::before { content: ""; position: absolute; left: 0; top: 0; width: 84px; height: 3px; background: var(--pc-gold750); }
.pc-eyebrow::after { content: ""; position: absolute; left: 81px; top: -3px; width: 3px; height: 9px; background: var(--pc-gold750); }
.pc-head .pc-eyebrow { margin-top: 0; margin-bottom: var(--space-5); }
.pc-display { margin-top: var(--space-4); font-weight: 800; font-size: clamp(44px, 7.4vw, 108px); line-height: .96; letter-spacing: -.045em; max-width: none; margin-inline-start: -.05em; }
.pc-display--sm { margin-top: 0; font-size: clamp(40px, 5.6vw, 84px); }
.pc h2:not(.pc-display) { font-weight: 700; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -.032em; max-width: 20ch; }
.pc h3 { font: 600 20px/1.3 Poppins, Arial, sans-serif; letter-spacing: -.01em; }
.pc-lead { max-width: 38em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }
.pc-head { margin-bottom: var(--space-7); }
.pc-head .pc-lead { margin-top: var(--space-5); }
.pc-hero-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-5) var(--space-8); align-items: end; width: 100%; margin-top: var(--space-6); }
.pc-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.pc-hero-row .pc-ctas { justify-content: flex-end; margin-top: 0; }
.pc-btn { display: inline-flex; align-items: center; min-height: var(--btn-height); padding: 0 var(--btn-pad-x); border-radius: 4px; background: var(--pc-ink); color: var(--white); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color var(--duration) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.pc-btn:hover { background: var(--pc-iron); }
.pc-btn:active { transform: scale(.98); }
.pc-btn--ghost { background: transparent; color: var(--pc-ink); box-shadow: inset 0 0 0 2px var(--pc-ink); }
.pc-btn--ghost:hover { background: var(--pc-goldtint); }
.pc-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.pc-stone .pc-options { margin-top: 0; }
.pc-opt { display: grid; gap: var(--space-3); align-content: start; justify-items: start; padding: var(--space-6); background: var(--pc-paper); border: 1px solid var(--pc-rule); }
.pc-opt img { width: 72px; height: 72px; margin-bottom: var(--space-2); }
.pc-opt p { font-size: 17px; }
.pc-opt--us { background: var(--pc-ink); color: var(--white); border-color: var(--pc-ink); }
.pc-tag { display: inline-flex; align-items: center; gap: var(--space-2); padding: 2px 12px 2px 10px; border: 2px solid currentColor; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.6; }
.pc-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pc-tag--blocked { color: var(--pc-blocked); } .pc-tag--allowed { color: var(--pc-allowed); } .pc-tag--recorded { color: var(--pc-recorded); } .pc-tag--white { color: var(--white); }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
.pc-stat { display: grid; gap: var(--space-3); align-content: start; }
.pc-stat .n { font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.04em; }
.pc-stat .n::after { content: ""; display: block; width: 64px; height: 4px; margin-top: var(--space-5); background: var(--pc-gold750); }
.pc-stat p { font-size: 16px; color: var(--pc-muted); }
.pc-msgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.pc-msg h3 { margin-bottom: var(--space-3); }
.pc-msg ul { display: grid; gap: var(--space-2); margin: 0; padding-left: 18px; font-size: 16px; color: var(--pc-muted); }
.pc-msg li::marker { color: var(--pc-gold750); }
.pc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); margin-top: var(--space-8); }
.pc-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.pc-note { margin-top: var(--space-5); font-size: 15px; color: var(--pc-muted); }
.pc-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); }
.pc-step { display: grid; gap: var(--space-2); align-content: start; justify-items: start; padding-top: var(--space-4); border-top: 3px solid var(--pc-ink); }
.pc-step:last-child { border-top-color: var(--pc-gold750); }
.pc-step .t { font-weight: 600; font-size: 26px; line-height: 1.2; }
.pc-step p { font-size: 16px; color: var(--pc-muted); }
.pc-table-wrap { overflow-x: auto; }
.pc-profiles { width: 100%; border-collapse: collapse; font-size: 17px; }
.pc-profiles th { padding: var(--space-3) var(--space-4); background: var(--pc-ink); color: var(--white); font-size: 15px; font-weight: 600; text-align: left; }
.pc-profiles td { padding: var(--space-4); border-bottom: 1px solid var(--pc-rule); vertical-align: top; }
.pc-profiles td:first-child { font-weight: 600; white-space: nowrap; }
.pc-profiles td:last-child { color: var(--pc-muted); }
.pc-blackband { padding: var(--space-8) 0; background: var(--pc-ink); color: var(--white); font-family: Poppins, Arial, sans-serif; }
.pc-blackband p { max-width: 24ch; font-weight: 700; font-size: clamp(26px, 3vw, 42px); line-height: 1.2; letter-spacing: -.025em; }
.pc-try-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: end; }
.pc-try-grid .pc-lead { margin-top: var(--space-5); }
.pc-try-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.pc-try-steps li { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); }
.pc-try-steps .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pc-ink); color: var(--white); font-weight: 600; font-size: 15px; }
.pc-try-steps b { font-weight: 600; }
.pc-tm { margin-top: var(--space-8); font-size: 13px; line-height: 1.6; color: var(--pc-muted); }

/* ============================================================ responsive */
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--feature { grid-column: 1 / -1; grid-row: auto; }
  .pc-stats, .pc-msgs { grid-template-columns: 1fr 1fr; }
  .pc-timeline { grid-template-columns: 1fr; }
  .pc-step { grid-template-columns: 88px 1fr; column-gap: var(--space-4); }
  .pc-step > *:not(.t) { grid-column: 2; }
  .pc-step .t { grid-row: span 3; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .split-head, .svc-grid, .contact-grid, .insights-grid, .pc-hero-row, .pc-pair, .pc-try-grid { grid-template-columns: 1fr; }
  .pc-hero-row .pc-ctas { justify-content: flex-start; }
  .hero { padding: var(--space-8) 0; }
  .proof, .steps, .values, .pc-options { grid-template-columns: 1fr; }
  .proof { gap: var(--space-4); }
  .svc-card, .next-steps { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { --text-base: 16.5px; }
  .bento, .form-pair, .pc-stats, .pc-msgs, .grid--2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .stack-cards { padding-left: var(--space-6); }
  .stack figcaption { padding-left: var(--space-6); }
  .sc--board { width: 72%; }
  .tile--feature, .post-feature { padding: var(--space-6); }
  .details > div { grid-template-columns: 1fr; gap: 0; }
  .pc-profiles thead { display: none; }
  .pc-profiles tr { display: grid; padding: var(--space-4) 0; border-bottom: 1px solid var(--pc-rule); }
  .pc-profiles td { padding: 2px 0; border: 0; }
}

/* ============================================================ motion: feedback, reveals and the brand mark; none for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-mark .g-frame { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-out) .2s forwards; }
  .hero-mark .g-bolt { animation: bolt 9s var(--ease-out) 2.2s infinite both; }
  .sc--ce { animation: rise var(--duration-slow) var(--ease-out) .15s both; }
  .sc--board { animation: rise var(--duration-slow) var(--ease-out) both; }
  .pc-top .gate .gate-all { animation: pc-drop 1.1s var(--ease-out) both; }
  .pc-top .gate .bar-raised { animation: pc-lift .9s var(--ease-out) 1.2s both; }
  .pc-top .gate .threshold { animation: pc-fade .6s ease 1.9s both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 60%; }
  }
  .menu[open] .menu-panel { animation: drop-in var(--duration) var(--ease-out); }
  .notice--error:not([hidden]), .field-error:not([hidden]) { animation: drop-in var(--duration) var(--ease-out); }
  .spinner { animation: spin .8s linear infinite; }
  .sent-tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw var(--duration-slow) var(--ease-out) .1s forwards; }
  .sent-tick path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw 400ms var(--ease-out) .55s forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .i, .link .i, .tile, .tile-arrow .i, .post-card, .post-feature, .pc-btn { transition: none; }
  .btn:active, .pc-btn:active { transform: none; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
@keyframes bolt { 0%, 18% { transform: translateX(-40px); opacity: .5; } 34%, 74% { transform: none; opacity: 1; } 90%, 100% { transform: translateX(-40px); opacity: .5; } }
@keyframes pc-drop { from { transform: translateY(-62%); } }
@keyframes pc-lift { from { transform: translateY(80px); } }
@keyframes pc-fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
