/* ==========================================================================
   Kreate Media — site stylesheet
   Tokens mirror the Figma file "Kreate Media — Website Design System".
   No corner radius anywhere. No drop shadows. No serif italics.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  /* colour — dark is the only theme the site ships with */
  --bg-base:        #000000;
  --bg-raised:      #0C0F14;
  --bg-sunken:      #000000;
  --bg-inverse:     #FAF9F6;
  /* Surface blue is a shade below the Figma #2B7BFF so white body copy on it
     clears WCAG AA (4.56:1). #2B7BFF is kept for lines and marks on dark. */
  --bg-accent:      #246FF0;
  --bg-alert:       #D92D20;   /* red used on the problem cards */
  --bg-alert-hover: #C32718;
  --bg-accent-hover:#1E68E6;

  --text-primary:   #FFFFFF;
  --text-secondary: #FFFFFF;
  --text-muted:     #7E8794;   /* lifted from Figma #6E7884 to clear WCAG AA on --bg-base */
  --text-accent:    #5E9BFF;
  --text-on-accent: #FFFFFF;
  --text-inverse:   #0B0A09;

  --line-subtle:    #1C2128;
  --line-strong:    #2F3843;
  --line-accent:    #2B7BFF;
  --line-negative:  #FF5A5A;

  /* spacing */
  --space-4: 4px;  --space-8: 8px;   --space-12: 12px; --space-16: 16px;
  --space-24: 24px; --space-32: 32px; --space-40: 40px; --space-56: 56px;
  --space-72: 72px; --space-96: 96px; --space-128: 128px;

  --nav-h: 96px;
  --gutter: 72px;
  --band: 84px;
  --max-width: 1320px;
  --measure: 900px;

  /* Soft rounding on controls and media only. Panels stay square. */
  --radius: 9px;
  --radius-media: 9px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

@media (max-width: 900px) {
  :root {
    --space-24: 20px; --space-32: 24px; --space-40: 32px; --space-56: 40px;
    --space-72: 48px; --space-96: 56px; --space-128: 72px;
    --nav-h: 96px;
  --gutter: 22px;
    --band: 72px;
  }
}

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Class-level display rules otherwise beat the user agent's [hidden] rule,
   which the filters rely on. */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 3px;
}

::selection { background: var(--bg-accent); color: var(--text-on-accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg-accent); color: var(--text-on-accent);
  padding: 12px 20px; font-weight: 500;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- typography */
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

.t-display-xl { font-size: clamp(2.75rem, 1.2rem + 6.4vw, 5.5rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.035em; }
.t-display-l  { font-size: clamp(2.375rem, 1.2rem + 4.6vw, 4.25rem);  line-height: 1.04; font-weight: 500; letter-spacing: -0.03em; }
.t-section    { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.5rem); line-height: 1.06; font-weight: 500; letter-spacing: -0.028em; }
.t-h1         { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem);      line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; }
.t-h2         { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);      line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; }
.t-h3         { font-size: clamp(1.3125rem, 1rem + 1vw, 1.625rem);    line-height: 1.2;  font-weight: 500; letter-spacing: -0.015em; }
.t-lead       { font-size: clamp(1.0625rem, 1rem + 0.55vw, 1.4375rem); line-height: 1.5; color: var(--text-secondary); }
.t-body       { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); }
.t-small      { font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); }
.t-caps       { font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--text-secondary); }

.t-eyebrow { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--text-accent); }
.t-figure  { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; color: var(--text-primary); }

.measure      { max-width: var(--measure); }
.measure-lede { max-width: 640px; }
.measure-body { max-width: 820px; }

/* ---------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * 0.6); }
.band--raised { background: var(--bg-raised); }
.band--sunken { background: var(--bg-sunken); }

.stack > * + * { margin-top: var(--space-16); }
.stack-24 > * + * { margin-top: var(--space-24); }
.stack-32 > * + * { margin-top: var(--space-32); }
.stack-40 > * + * { margin-top: var(--space-40); }

/* --------------------------------------------------------- highlight word */
.hl { color: var(--text-accent); }
/* On a blue surface the highlight would vanish, so it reverts to white. */
.included .hl, .cta .hl, .panel--accent .hl, 

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 6px;
  font-size: 0.9375rem; font-weight: 500;
  border: 0; background: none; cursor: pointer;
  border-bottom: 2px solid var(--line-accent);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { border-bottom-color: var(--bg-accent-hover); color: var(--text-accent); }
.btn--solid::after, .btn--inverse::after, .btn--ghost::after {
  content: "\2197"; display: inline-block; margin-left: 10px; font-size: 1em; line-height: 1;
  transition: transform .3s cubic-bezier(.34, 1.3, .64, 1);
}
.btn--solid:hover::after, .btn--inverse:hover::after, .btn--ghost:hover::after { transform: translate(3px, -3px); }
.btn--solid, .btn--inverse, .btn--ghost { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn--solid:hover, .btn--inverse:hover, .btn--ghost:hover { transform: translateY(-2px); }
.btn--ghost {
  padding: 15px 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
}
.btn--ghost:hover { border-color: var(--text-primary); color: var(--text-primary); }
.btn--solid {
  padding: 15px 28px; border-bottom: 0; border-radius: var(--radius-pill);
  background: var(--bg-accent); color: var(--text-on-accent);
}
.btn--solid:hover { background: var(--bg-accent-hover); color: var(--text-on-accent); }
.btn--inverse {
  padding: 15px 28px; border-bottom: 0; border-radius: var(--radius-pill);
  background: var(--bg-inverse); color: var(--text-inverse);
}
.btn--inverse:hover { background: #fff; color: var(--text-inverse); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-24); align-items: center; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.nav--solid { background: #000; }
.nav--hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-32); min-height: var(--nav-h); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.nav__brand svg { width: 26px; height: 26px; }
.nav__brand img { height: 38px; width: auto; }
.nav__brand--footer img { height: 40px; }
.nav__links { display: flex; align-items: center; gap: var(--space-32); list-style: none; padding: 0; margin: 0; }
.nav__links a { font-size: 1rem; color: var(--text-secondary); padding-block: 6px; border-bottom: 1px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text-primary); border-bottom-color: var(--line-accent); }
.nav__toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); padding: 9px 14px; font-size: 0.875rem; cursor: pointer; }

@media (max-width: 1080px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--line-subtle);
    padding: var(--space-16) var(--gutter) var(--space-32);
    /* #170: the panel scrolls rather than running off the screen. */
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-subtle); }
  .nav__cta { display: none; }
  .nav__links.is-open + .nav__cta { display: none; }
  .nav__item > a::after { display: none; }

  /* #170: submenus stay shut until tapped, so every top level item is reachable. */
  .nav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav__item > a { grid-column: 1; }
  .nav__sub-toggle {
    grid-column: 2; display: block; width: 44px; height: 44px;
    background: none; border: 0; border-bottom: 1px solid var(--line-subtle);
    position: relative; cursor: pointer;
  }
  .nav__sub-toggle::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; margin: -6px 0 0 -4px;
    border-right: 1.5px solid var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(45deg); transition: transform .25s var(--ease);
  }
  .nav__sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
  .nav__menu {
    grid-column: 1 / -1; position: static; display: none; min-width: 0;
    padding: 0 0 8px 16px; background: transparent;
  }
  .nav__item.is-open > .nav__menu { display: flex; }
  .nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu { display: none; }
  .nav__item.is-open:hover > .nav__menu, .nav__item.is-open:focus-within > .nav__menu { display: flex; }
  .nav__menu a { padding: 10px 0; border-bottom: 1px solid var(--line-subtle); }

  /* #175: no blue underlines in the mobile menu. */
  .nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--line-subtle); }

  body.nav-open { overflow: hidden; }
}

/* #169: burger mark in place of the word Menu. */
.nav__toggle { border: 0; padding: 10px; }
.nav__burger, .nav__burger::before, .nav__burger::after {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -7px; }
.nav__burger::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger::after { transform: translateY(-7px) rotate(-45deg); }
/* The submenu toggle is a mobile control only; desktop opens on hover. */
@media (min-width: 1081px) { .nav__sub-toggle { display: none; } }

/* nav link roll on hover */
.roll { display: inline-block; overflow: hidden; vertical-align: top; }
.roll__i { display: block; position: relative; transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
.roll__i::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; white-space: nowrap; }
.nav__links a:hover .roll__i, .nav__menu a:hover .roll__i { transform: translateY(-100%); }

/* dropdown */
.nav__item { position: relative; }
.nav__menu {
  position: absolute; left: -20px; top: 100%; min-width: 260px;
  display: none; flex-direction: column; gap: 2px; list-style: none;
  margin: 0; padding: 14px; background: var(--bg-raised);
  border-radius: var(--radius-media);
}
.nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu { display: flex; }
.nav__menu a { display: block; padding: 10px 14px; border: 0; border-radius: var(--radius-media); color: var(--text-secondary); white-space: nowrap; }
.nav__menu a:hover { background: var(--bg-sunken); color: var(--text-primary); }
.nav__item > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; margin-top: calc(-1 * var(--nav-h)); min-height: min(88vh, 860px); display: grid; align-items: start; padding-block: clamp(132px, 11vw, 168px) clamp(72px, 9vw, 120px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg-base) 2%, color-mix(in srgb, var(--bg-base) 45%, transparent) 58%, transparent 100%),
    linear-gradient(0deg, var(--bg-base) 2%, transparent 45%);
}
.hero__media .ph { height: 100%; border: 0; }
.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 960px; }
.hero__copy .t-lead { max-width: 560px; margin-top: var(--space-32); }
.hero__copy .actions { margin-top: var(--space-40); }

/* page headers on subpages */
.pagehead--hero { position: relative; text-align: center; overflow: hidden; }
.pagehead--hero .wrap { position: relative; z-index: 1; }
.pagehead--hero h1, .pagehead--hero .t-lead { margin-inline: auto; }
.pagehead--hero .actions { justify-content: center; }
.pagehead--hero .stats { max-width: 1000px; margin-inline: auto; }
.pagehead__bg { position: absolute; inset: 0; z-index: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.78) 55%, #000 100%);
}
.pagehead { margin-top: calc(-1 * var(--nav-h)); padding-block: clamp(136px, 11vw, 164px) var(--band); }
.pagehead h1 { max-width: 1000px; }
.pagehead .t-lead { max-width: 640px; margin-top: var(--space-32); }
.pagehead .actions { margin-top: var(--space-32); }
.pagehead--split .pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--space-72); align-items: start; }
@media (max-width: 1080px) { .pagehead--split .pagehead__grid { grid-template-columns: 1fr; } }

/* tag row used on sector pages */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-32); list-style: none; padding: 0; }
.tags li { border: 1px solid var(--line-strong); padding: 7px 14px; font-size: 0.8125rem; color: var(--text-secondary); }

/* -------------------------------------------------- stat row (Clayo style) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-16); }
.stats > div {
  display: grid; align-content: center; gap: 10px; min-height: 196px;
  padding: var(--space-32) var(--space-24); text-align: center; background: var(--bg-raised);
  border-radius: var(--radius); transition: background-color .25s var(--ease);
}
.stats > div:hover { background: var(--bg-accent); }
.stats > div:hover .t-figure, .stats > div:hover dt { color: var(--text-on-accent); }
.stats dt { font-size: 0.9375rem; color: var(--text-primary); line-height: 1.35; }
.stats__lead { color: var(--text-secondary); }
.t-figure--wordy { font-size: clamp(1.375rem, 0.9rem + 1.3vw, 1.875rem); line-height: 1.15; }
.stats dd { margin: 0; }
.stats .t-figure { display: block; }
.panel--accent .t-figure, .cta .t-figure { color: var(--text-on-accent); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-32) 0; }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------- client logos */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-40); }
.logos--platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-40); }
@media (max-width: 760px) { .logos--platforms { grid-template-columns: repeat(2, 1fr); } }
.logos--platforms .logos__item { height: 72px; }
.logos--platforms .logos__item img { height: 40px; width: auto; max-width: 200px; }

/* sliding client logo band */
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(60px, 10vw, 180px); z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-base), transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(72px, 10vw, 160px); width: max-content; animation: marquee 56s linear infinite; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.logos__item {
  height: 64px; display: grid; place-items: center; flex: 0 0 auto;
  color: var(--text-primary); font-size: 0.8125rem; letter-spacing: 0.04em;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
  filter: grayscale(1); opacity: .7;
}
.logos__item:hover { filter: grayscale(0); opacity: 1; }

/* ------------------------------------------------- results / impact panel */
.panel { background: transparent; padding: 0; }
.panel--base { background: transparent; }
.panel--accent { background: var(--bg-accent); color: var(--text-on-accent); }
.panel--accent .t-body, .panel--accent .t-small, .panel--accent .t-lead { color: var(--text-on-accent); }

.lede-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-40); flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); padding: 9px 16px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.badge .stars { color: #F5C451; letter-spacing: 2px; }

/* ------------------------------------------------------ services accordion */
.accordion { border-top: 0; }
.accordion__item { border-bottom: 1px solid var(--line-subtle); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 28px;
  align-items: center; gap: var(--space-32);
  width: 100%; text-align: left; background: none; border: 0;
  padding-block: var(--space-32); cursor: pointer;
  transition: opacity .2s var(--ease);
}
.accordion__row:hover { opacity: .78; }
.accordion__plus::before, .accordion__plus::after { transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.accordion__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.accordion__note { color: var(--text-secondary); font-size: 1rem; }
.accordion__plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.accordion__plus::before, .accordion__plus::after {
  content: ""; position: absolute; background: var(--text-accent); transition: transform .25s var(--ease);
}
.accordion__plus::before { left: 0; right: 0; top: 10px; height: 2px; }
.accordion__plus::after  { top: 0; bottom: 0; left: 10px; width: 2px; }
.accordion__row[aria-expanded="true"] .accordion__plus::after { transform: scaleY(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .55s cubic-bezier(.4, 0, .2, 1), opacity .4s var(--ease); }
.accordion__panel > * { overflow: hidden; }
.accordion__panel[data-open] { grid-template-rows: 1fr; opacity: 1; padding-bottom: var(--space-40); }
.accordion__panel-inner { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--space-40); align-items: start; }
@media (max-width: 900px) {
  .accordion__row { grid-template-columns: minmax(0,1fr) 28px; }
  .accordion__note { display: none; }
  .accordion__panel-inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ benefit cards */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.benefit {
  background: var(--bg-sunken); padding: 36px 32px;
  border: 0; border-radius: var(--radius-media);
  transition: transform .3s var(--ease);
}
.benefit:hover { transform: scale(1.03); }

.benefit .icon--badge { background: var(--bg-alert); color: #fff; }

.benefit h3 { margin-top: var(--space-16); }
.benefit p { margin-top: var(--space-12); color: var(--text-secondary); font-size: 0.9375rem; }
@media (max-width: 1080px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .benefits { grid-template-columns: 1fr; } }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.icon--badge {
  width: 48px; height: 48px; background: var(--bg-accent); color: var(--text-on-accent);
  display: grid; place-items: center;
}
.icon--badge svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ audience grid */
.audience__lede { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--space-72); align-items: start; }
.audience__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; margin-top: var(--band); }
.audience__item h3 { margin-top: var(--space-16); }
.audience__item p { margin-top: 10px; color: var(--text-secondary); font-size: 0.9375rem; }
@media (max-width: 1080px) { .audience__lede { grid-template-columns: 1fr; } .audience__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .audience__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- included panel */
.included { background: var(--bg-accent); color: var(--text-on-accent); padding: var(--space-56) var(--space-40); }
.included h2, .included p { color: var(--text-on-accent); }
.included__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--space-56); margin-top: var(--space-40); }
.included li { display: flex; gap: 12px; align-items: flex-start; padding-block: 9px; font-size: 0.9375rem; }
.included ul { list-style: none; padding: 0; margin: 0; }
.included .tick { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 860px) { .included__cols { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- step boxes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  background: var(--bg-sunken); border: 0; border-radius: var(--radius-media);
  padding: 36px 32px;
  transition: background .2s var(--ease);
}
.step:hover { background: var(--bg-raised); }
.step:hover p { color: var(--text-primary); }
.step__num { font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--text-accent); font-weight: 500; }
.step h3 { margin-top: var(--space-12); }
.step p { margin-top: var(--space-12); color: var(--text-secondary); font-size: 0.9375rem; transition: color .2s var(--ease); }
@media (max-width: 900px) { .steps, .steps--4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips--center { justify-content: center; }
.chip {
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  color: var(--text-secondary); padding: 11px 22px; font-size: 0.9375rem; font-weight: 400;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--text-primary); color: var(--text-primary); }
.chip[aria-pressed="true"] { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }

/* ------------------------------------------------------------- case cards */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-72) var(--space-40); }
.cases--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case { display: block; }
.case__img, .case__meta, .case__label, .case__title, .case__meta .t-caps, .featured__media, .post__media, .featured > span { display: block; }
.case__img { position: relative; aspect-ratio: 16 / 11; background: var(--bg-raised); border-radius: var(--radius-media); overflow: hidden; }
.case__img .ph { height: 100%; border: 0; }
.case__label { position: absolute; left: 24px; right: 24px; bottom: 22px; font-weight: 500; font-size: 1.0625rem; line-height: 1.3; opacity: 0; transition: opacity .25s var(--ease); }
.case:hover .case__label { opacity: 1; }
.case__meta { margin-top: var(--space-24); }
.case__meta .t-caps { color: var(--text-primary); font-size: 0.8125rem; letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
.case__title { margin-top: 10px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.case__meta p { margin-top: 10px; font-size: 0.9375rem; color: var(--text-primary); }
.case:hover .case__title { color: var(--text-accent); }
@media (max-width: 760px)  { .cases, .cases--2 { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- rails */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: var(--space-24); overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(280px, 34vw, 460px); scroll-snap-align: start; }
.rail { cursor: grab; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }
.rail-nav { display: flex; gap: 10px; margin-top: var(--space-32); }
.rail-nav[hidden] { display: none; }
.chips--centre { display: flex; justify-content: center; margin-top: var(--space-56); }
.chips--centre .chips { justify-content: center; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.rail-nav button {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-pill);
  background: none; border: 1px solid var(--line-strong); cursor: pointer;
}
.rail-nav button { color: var(--text-accent); border-color: var(--line-strong); }
.rail-nav button:hover { border-color: var(--line-accent); background: var(--bg-accent); color: var(--text-on-accent); }

/* case cards inside a rail keep their card width */
.rail--cases > * { flex: 0 0 clamp(300px, 46vw, 620px); }

/* ---------------------------------------------------------- project showcase */
.showcase { margin: 0; }
.showcase .ph { aspect-ratio: 16 / 9; }
.showcase .media { aspect-ratio: auto; height: auto; max-height: 760px; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; border-radius: var(--radius); }


/* ------------------------------------------------------------ testimonials */
.reviews { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--space-72); align-items: start; }
@media (max-width: 1080px) { .reviews { grid-template-columns: 1fr; } }
.review-wall { position: relative; max-height: 560px; overflow: hidden; }
.review-wall__track { display: flex; flex-direction: column; gap: var(--space-24); }
.review-wall::before, .review-wall::after {
  content: ""; position: absolute; left: 0; right: 0; height: 90px; z-index: 2; pointer-events: none;
}
.review-wall::before { top: 0; background: linear-gradient(var(--bg-base), transparent); }
.review-wall::after { bottom: 0; background: linear-gradient(transparent, var(--bg-base)); }
.review { background: var(--bg-raised); border: 0; border-radius: var(--radius-media); padding: 32px; }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.review__stars { color: #F5C451; letter-spacing: 2px; font-size: 0.875rem; }
.review__avatar { width: 48px; height: 48px; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--line-strong); overflow: hidden; flex: 0 0 auto; }
.review blockquote { margin-top: var(--space-16); font-size: 1rem; line-height: 1.6; }
.review cite { display: block; margin-top: var(--space-16); font-style: normal; font-size: 0.875rem; color: var(--text-primary); }

/* ------------------------------------------------------------- split CTA */
.cta { color: var(--text-on-accent); }
.cta__box { background: var(--bg-accent); padding: var(--space-56); border-radius: var(--radius); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-32); align-items: center; }
.cta h2 { color: var(--text-on-accent); font-size: clamp(1.5rem, 0.9rem + 1.7vw, 2.125rem); }

.cta h2 .cycle { display: block; white-space: nowrap; }
.cta__eyebrow { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-accent); opacity: .8; margin-bottom: var(--space-16); }
.cta__sub { margin-top: var(--space-24); color: var(--text-on-accent); }
.cta .actions { margin-top: var(--space-72); }
.cta__media { aspect-ratio: 4 / 3; background: #0A0C10; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1080px) { .cta__grid { grid-template-columns: 1fr; } .cta__media { aspect-ratio: 16 / 10; } }

/* ------------------------------------------------------------------ media */
.media { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-media); }

.pagehead__media { aspect-ratio: 11 / 14; }
.audience__media { aspect-ratio: 11 / 8; }
.accordion__media { aspect-ratio: 4 / 3; }
.featured__media .media, .post__media .media, .case__img .media { height: 100%; }
.logos__item img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .media { position: absolute; inset: 0; }

/* ------------------------------------------------------------- placeholder */
.ph {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, #131820, #0A0D12);
  border: 0; border-radius: var(--radius-media);
  color: var(--text-muted); font-size: 0.8125rem; letter-spacing: 0.02em;
  padding: var(--space-24); min-height: 120px; height: 100%;
}
.ph--sunken { background: var(--bg-sunken); }
.ph--plain { border: 0; }
.ph--bare { border: 0; background: transparent; }

/* ---------------------------------------------------------- image strip */
.strip { overflow: hidden; }
.strip__inner { display: grid; grid-template-columns: 560px 440px 560px; gap: 24px; width: 1608px; margin-inline: auto; margin-left: calc(50% - 804px); }
.strip__inner > * { aspect-ratio: 560 / 430; }
@media (max-width: 1080px) {
  .strip__inner { width: auto; margin-left: 0; grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ---------------------------------------------------- sector problem rows */
.prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-72); align-items: center; }
.prow + .prow { margin-top: var(--band); }
.prow:nth-child(even) .prow__copy { order: 2; }
.prow__num { font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--text-accent); font-weight: 500; }
.prow__copy h3 { margin-top: var(--space-12); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.prow__copy p { margin-top: var(--space-16); color: var(--text-secondary); max-width: 46ch; }
.prow__media { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .prow { grid-template-columns: 1fr; gap: var(--space-32); } .prow:nth-child(even) .prow__copy { order: 0; } }

/* -------------------------------------------------------- service cards */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-card {
  background: var(--bg-raised); border: 0; border-radius: var(--radius-media);
  padding: 36px 32px; display: flex; flex-direction: column; gap: var(--space-12);
  transition: background .2s var(--ease);
}
.svc-card:hover { background: var(--bg-sunken); }
.svc-card p { color: var(--text-secondary); font-size: 0.9375rem; flex: 1; }
.svc-card .btn { align-self: flex-start; margin-top: var(--space-16); }
@media (max-width: 1080px) { .svc-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { .svc-cards { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- case study bits */
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-32); border-block: 1px solid var(--line-subtle); padding-block: var(--space-32); }
.meta-grid dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); font-weight: 500; }
.meta-grid dd { margin: 8px 0 0; font-size: 0.9375rem; }
@media (max-width: 860px) { .meta-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.numbered { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-56); }
.numbered li { display: flex; gap: var(--space-16); padding-block: var(--space-16); border-bottom: 1px solid var(--line-subtle); font-size: 0.9375rem; }
.numbered ul { list-style: none; margin: 0; padding: 0; }
.numbered .n { color: var(--text-accent); font-weight: 500; flex: 0 0 auto; }
@media (max-width: 860px) { .numbered { grid-template-columns: 1fr; } }

.impact { text-align: center; }
.impact p { margin-inline: auto; max-width: 70ch; margin-top: var(--space-16); color: var(--text-secondary); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.gallery > * { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.pullquote { border-left: 2px solid var(--line-accent); padding-left: var(--space-32); max-width: 44ch; }
.pullquote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.35; font-weight: 500; }
.pullquote cite { display: block; margin-top: var(--space-24); font-style: normal; font-size: 0.875rem; color: var(--text-primary); }

/* ---------------------------------------------------------------- forms */
.contact-grid { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: var(--space-72); align-items: start; }
@media (max-width: 1080px) { .contact-grid { grid-template-columns: 1fr; } }
.details > div + div { margin-top: var(--space-32); }
.details dt { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); font-weight: 500; }
.details dd { margin: 6px 0 0; font-size: 1.125rem; color: var(--text-primary); }
.details a { border-bottom: 1px solid var(--line-strong); }
.details a:hover { border-bottom-color: var(--line-accent); color: var(--text-accent); }

.form { background: var(--bg-raised); padding: var(--space-40); }
.form > * + * { margin-top: var(--space-24); }
.field label { display: block; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; margin-top: 8px; font-family: inherit; line-height: 1.5;
  background: var(--bg-sunken); border: 1px solid var(--line-subtle);
  color: var(--text-primary); padding: 14px 16px; font-size: 1rem; border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-accent); }
.field textarea { min-height: 128px; resize: vertical; }
.form__note { font-size: 0.8125rem; color: var(--text-primary); }

.embed { min-height: 620px; width: 100%; height: auto; }
@media (max-width: 720px) { .embed { min-height: 520px; } }

/* ------------------------------------------------------------- resources */
.featured { display: grid; color: inherit; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-56); align-items: center; }
.featured__media { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-40) var(--space-32); }
.post__media { aspect-ratio: 16 / 10; }
.post h3 { margin-top: var(--space-16); font-size: 1.125rem; line-height: 1.3; }
.post p { margin-top: 10px; color: var(--text-secondary); font-size: 0.9375rem; }
.post .t-caps { font-size: 0.75rem; color: var(--text-primary); }
.post__date { margin-top: var(--space-16); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); }
.post:hover .ph { border-color: var(--line-accent); }
.post:hover h3 { color: var(--text-accent); }
.post .post__date { color: var(--text-primary); }
@media (max-width: 1080px) { .posts { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { .posts { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- article */
.prose { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: var(--space-24); }
.prose p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin-top: var(--space-56); color: var(--text-primary); }
.prose h3 { margin-top: var(--space-40); color: var(--text-primary); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { display: flex; gap: 14px; padding-block: 8px; color: var(--text-secondary); font-size: 1.0625rem; }
.prose ul li::before { content: "—"; color: var(--text-accent); flex: 0 0 auto; }
.prose figure .ph { aspect-ratio: 16 / 9; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-24); margin-top: var(--space-32); }
.article-hero { aspect-ratio: 21 / 9; }
.author { display: flex; gap: var(--space-24); align-items: center; border-block: 1px solid var(--line-subtle); padding-block: var(--space-32); max-width: 720px; margin-inline: auto; }
.author__avatar { width: 64px; height: 64px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line-strong); flex: 0 0 auto; }
.author p { color: var(--text-secondary); font-size: 0.9375rem; margin-top: 6px; }

/* ------------------------------------------------- auto-scrolling reviews */
.rmarquee { position: relative; overflow: hidden; }
.rmarquee::before, .rmarquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 6vw, 120px); z-index: 2; pointer-events: none; }
.rmarquee::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.rmarquee::after { right: 0; background: linear-gradient(270deg, var(--bg-base), transparent); }
.rmarquee__track { display: flex; width: max-content; animation: marquee 200s linear infinite; }
.rmarquee__run { display: flex; gap: var(--space-24); padding-right: var(--space-24); }
.rmarquee__run > * { flex: 0 0 clamp(300px, 30vw, 420px); }
@media (prefers-reduced-motion: reduce) { .rmarquee__track { animation: none; } }

.pagehead__actions { margin-top: clamp(32px, 5vw, 72px); }

/* ------------------------------------------------------- contact page head */
.contact-head { padding-bottom: var(--band); }
.contact-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.contact-head .details { margin-top: var(--space-56); }
.contact-head .actions { margin-top: var(--space-40); }
@media (max-width: 980px) { .contact-head__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ social icons */
.social { display: flex; gap: 14px; align-items: center; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: var(--bg-raised); color: var(--text-primary); transition: background .2s var(--ease), color .2s var(--ease); }
.social a:hover { background: var(--bg-accent); color: #fff; }
.social__icon { width: 20px; height: 20px; object-fit: contain; }
.social--footer { margin-top: var(--space-24); }
.social--footer a { width: 38px; height: 38px; }

/* ----------------------------------------------------------- impact band */
.impact-band {
  position: relative; overflow: hidden;
  padding-block: clamp(72px, 9vw, 140px) clamp(96px, 12vw, 180px);
  text-align: center;
}
/* The blue wash rises out of the bottom edge into the gallery below. */
.impact-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  background: linear-gradient(to top, rgba(36, 111, 240, 0) 0%, rgba(36, 111, 240, .5) 14%, rgba(36, 111, 240, .13) 56%, transparent 100%);
  pointer-events: none;
}
.impact-band > .wrap { position: relative; z-index: 1; }
.impact-band__title {
  font-size: clamp(3rem, 1rem + 8.4vw, 8rem); line-height: 1; font-weight: 500;
  letter-spacing: -0.04em;
}
.impact-band__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 72px);
}
.impact-band__figure { font-size: clamp(1.5rem, 0.9rem + 2vw, 2.75rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; }
.impact-band__figure .t-figure { font-size: inherit; display: inline; }
.impact-band__body { margin-top: var(--space-24); font-size: 1rem; line-height: 1.65; max-width: 44ch; margin-inline: auto; color: var(--text-primary); }
@media (max-width: 760px) { .impact-band__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- testimonial band */
.testimonial {
  background: var(--bg-accent); color: var(--text-on-accent);
  text-align: center; padding-block: clamp(72px, 9vw, 128px);
}
.testimonial .wrap { max-width: 1100px; }
.testimonial__logo {
  display: grid; place-items: center; width: 136px; height: 136px;
  margin: 0 auto var(--space-32); border-radius: 999px; background: #fff;
}
.testimonial__logo img { width: 68px; height: 68px; object-fit: contain; }
.testimonial__who { font-size: 1.0625rem; line-height: 1.6; color: var(--text-on-accent); }
.testimonial__who span { display: block; }
.testimonial blockquote { margin-top: var(--space-56); }
.testimonial blockquote p {
  font-size: clamp(1.375rem, 0.85rem + 1.9vw, 2.25rem); line-height: 1.5;
  font-weight: 400; letter-spacing: -0.01em; color: var(--text-on-accent);
}
@media (max-width: 760px) { .testimonial__logo { width: 104px; height: 104px; } .testimonial__logo img { width: 52px; height: 52px; } }

/* ----------------------------------------------------------- feature image */
.feature-img { padding-block: var(--band); }
.feature-img .media, .feature-img .ph { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }

/* ------------------------------------------------------- sliding statement */
.tmarquee { overflow: hidden; padding-block: clamp(40px, 5vw, 72px); }
.tmarquee a { display: block; border: 0; color: var(--text-primary); }
.tmarquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.tmarquee__run { display: flex; align-items: center; }
.tmarquee__run > span { white-space: nowrap; }
.tmarquee__run > span:not(.tmarquee__dot) {
  font-size: clamp(2.5rem, 1rem + 6vw, 5.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
}
.tmarquee__dot { margin-inline: clamp(24px, 3vw, 48px); font-size: clamp(0.75rem, 0.5rem + 0.6vw, 1rem); color: var(--text-accent); }


@media (prefers-reduced-motion: reduce) { .tmarquee__track { animation: none; } }

/* ------------------------------------------------- large deliverables list */
.deliver-head { text-align: center; }
.deliver { list-style: none; margin: var(--space-56) 0 0; padding: 0; border-top: 1px solid var(--line-subtle); }
.deliver__row {
  display: block; padding-block: clamp(16px, 1.8vw, 26px);
  border-bottom: 1px solid var(--line-subtle);
  transition: color .25s var(--ease);
}
/* Numbers removed, so the text now starts at the left edge of the wrap and
   sits clearly below the section heading rather than matching it. */
.deliver__text { font-size: clamp(1.125rem, 0.8rem + 1.2vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.deliver__row > * { transition: transform .3s var(--ease); }
.deliver__row:hover > * { transform: translateX(10px); }

/* ---------------------------------------------------------- wordmark band */
.brandband { padding-block: clamp(64px, 8vw, 120px); overflow: hidden; }
.brandband img { width: min(100%, 980px); height: auto; margin-inline: auto; display: block; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 0; padding-block: var(--space-40) var(--space-40); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-40); }
.footer h2 { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: var(--space-16) 0 0; }
.footer li + li { margin-top: 10px; }
.footer a { font-size: 0.9375rem; color: var(--text-primary); }
.footer a:hover { color: var(--text-accent); }
.footer h2 { color: var(--text-primary); }
.footer__brand p { margin-top: var(--space-16); color: var(--text-primary); font-size: 0.9375rem; max-width: 36ch; }
.footer__base { display: flex; flex-wrap: wrap; gap: var(--space-24); justify-content: space-between; margin-top: var(--space-56); padding-top: var(--space-24); border-top: 0; font-size: 0.8125rem; color: var(--text-muted); }
.footer__base a { font-size: 0.8125rem; color: var(--text-muted); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line-subtle); }
.faq__item { border-bottom: 1px solid var(--line-subtle); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding-block: var(--space-24); font-size: 1.0625rem; font-weight: 500;
}
.faq__q:hover { color: var(--text-accent); }
.faq__a { display: none; padding-bottom: var(--space-24); color: var(--text-secondary); max-width: 66ch; }
.faq__a[data-open] { display: block; }

/* ------------------------------------------------------------------- 404 */
.center-screen { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   BugSmash round 4 (#142, #143, #146, #147, #157, #158, #161-163)
   ===================================================================== */

/* Standalone line elements, no badge box, stroke weight close to the logo.
   #158 contact steps, #161 service cards, #162 audience, #163 benefits. */
.icon--line { display: block; color: #fff; }
.icon--line svg { width: 40px; height: 40px; stroke-width: 1.9; }
.svc-card .icon--line { margin-bottom: var(--space-20); }
.step .icon--line { margin-bottom: var(--space-16); }

/* #162 audience items: drop the blue box, keep the symbol in white. */
.audience__item .icon--badge {
  background: none; width: auto; height: auto; color: #fff;
  display: flex; justify-content: flex-start; place-items: initial;
}
.audience__item .icon--badge svg { width: 40px; height: 40px; stroke-width: 1.9; }

/* #163 benefit cards: no red box, red symbol, slightly bigger. */
.benefit .icon--badge {
  background: none; width: auto; height: auto; color: var(--bg-alert);
  display: flex; justify-content: flex-start; place-items: initial;
}
.benefit .icon--badge svg { width: 44px; height: 44px; stroke-width: 1.9; }

/* #143 + #147 CTA headings read as the call to action on every page. */
.cta h2 { font-size: clamp(2rem, 1.1rem + 2.4vw, 3rem); line-height: 1.08; }

/* #146 case images lift slightly on hover. */
.case__img .media { transition: transform .45s var(--ease); }
.case:hover .case__img .media { transform: scale(1.04); }

/* #142 client logo, top left of the case image. */
.case__mark {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  width: auto; height: 26px; max-width: 132px;
  object-fit: contain; object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
  pointer-events: none;
}

/* #157 contact form corner radius. */
.form { border-radius: var(--radius); }

/* =====================================================================
   Mobile pass, BugSmash #165-178
   ===================================================================== */
@media (max-width: 760px) {
  /* #165 + #177: the stat tiles were touching. */
  .stats { gap: var(--space-12); }

  /* #166 + #176: less air between sections so the page reads faster. */
  :root { --band: 48px; }
  .band { padding-block: var(--band); }
  .band--tight { padding-block: var(--space-32); }

  /* #172: the feature image sits flush, no band above or below. */
  .feature-img { padding-block: 0; }

  /* #167 + #171: the Book a Call button drops below the problem cards. */
  .panel { display: flex; flex-direction: column; }
  .lede-row { display: contents; }
  .lede-row > div { order: 1; }
  .lede-row > .btn { order: 3; justify-self: start; margin-top: var(--space-24); }
  .panel .benefits { order: 2; margin-top: var(--space-32); }

  /* #168: homepage enquiry form comes before the contact details. */
  .contact-grid { display: flex; flex-direction: column; }
  .contact-grid .details { order: 2; }
  .contact-grid .form { order: 1; }

  /* #178: contact page runs heading, buttons, form, then the details. */
  .contact-head__grid > div { display: contents; }
  .contact-head__grid .t-display-l { order: 1; }
  .contact-head__grid .t-lead { order: 2; }
  .contact-head__grid .actions { order: 3; }
  .contact-head__grid .form { order: 4; margin-top: var(--space-32); }
  .contact-head__grid .details { order: 5; margin-top: var(--space-32); }
}

/* Touch targets. Everything tappable clears 44px on a phone. */
@media (max-width: 760px) {
  .btn:not(.nav__cta) { min-height: 44px; display: inline-flex; align-items: center; }
  .nav__toggle { min-width: 44px; min-height: 44px; justify-content: center; }
  .footer a, .details a, .social a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__col a { padding-block: 4px; }
  .chip { min-height: 40px; }
}


/* =====================================================================
   Mobile nav, restated last so it beats the desktop dropdown rules above.
   ===================================================================== */
@media (max-width: 1080px) {
  .nav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav__item > a { grid-column: 1; }
  .nav__sub-toggle { grid-column: 2; display: block; }
  .nav__menu {
    grid-column: 1 / -1;
    position: static; inset: auto; min-width: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 0 0 8px 16px; margin: 0; background: transparent; border-radius: 0;
  }
  .nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu { display: none; }
  .nav__item.is-open > .nav__menu { display: flex; }
  .nav__menu a { padding: 12px 0; border-bottom: 1px solid var(--line-subtle); white-space: normal; }
  .nav__menu a:hover { background: none; }
  .nav__cta { display: none; }
  /* The toggle button carries the chevron, so drop the one on the link. */
  .nav__item > a::after { display: none; }
  /* One divider across the whole row, not two that do not meet. */
  .nav__item > a, .nav__sub-toggle { border-bottom: 1px solid var(--line-subtle); }
  .nav__item.is-open > a, .nav__item.is-open > .nav__sub-toggle { border-bottom-color: transparent; }
}

/* Imported article bodies: sizes for the heading levels the old posts use,
   plus links and ordered lists that the sample article never needed. */
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 1.9rem); line-height: 1.2; font-weight: 500; }
.prose h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.45rem); line-height: 1.25; font-weight: 500; }
.prose h4 { margin-top: var(--space-32); font-size: 1.125rem; line-height: 1.3; font-weight: 500; color: var(--text-primary); }
.prose ol { padding-left: 1.25em; }
.prose ol li { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; padding-block: 6px; }
.prose a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--text-primary); }
.prose strong { color: var(--text-primary); font-weight: 500; }
.prose li > strong:first-child { display: inline; }

/* In-article jump links land below the fixed nav, not behind it. */
.prose h2[id], .prose h3[id], .prose h4[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ------------------------------------------------------------- cookie bar */
.cookiebar {
  position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter); bottom: 20px;
  max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-24); flex-wrap: wrap;
  background: var(--bg-raised); border: 1px solid var(--line-subtle);
  border-radius: var(--radius); padding: 18px 22px;
}
.cookiebar[hidden] { display: none; }
.cookiebar p { flex: 1 1 280px; margin: 0; font-size: 0.9375rem; color: var(--text-secondary); }
.cookiebar__actions { display: flex; gap: 10px; }
.cookiebar .btn { padding: 9px 18px; font-size: 0.875rem; min-height: 40px; }
.cookiebar > a { font-size: 0.8125rem; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.cookiebar > a:hover { color: var(--text-primary); }
@media (max-width: 760px) {
  .cookiebar { left: 12px; right: 12px; bottom: 12px; padding: 16px; gap: var(--space-16); }
  .cookiebar__actions { width: 100%; }
  .cookiebar__actions .btn { flex: 1; justify-content: center; }
}

.form__error { margin-top: var(--space-12); color: var(--bg-alert); font-size: 0.9375rem; }
.form__error[hidden] { display: none; }
.cookiebar .btn::after { display: none; }

/* ---------------------------------------------------- author page (E-A-T) */
/* The byline avatar now carries a real photograph rather than a grey disc. */
.author__avatar { overflow: hidden; display: block; padding: 0; }
.author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

.authorpage { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-56); align-items: start; max-width: 1040px; }
.authorpage__media img { width: 100%; height: auto; border-radius: 9px; display: block; }
.authorpage .prose { max-width: none; }

@media (max-width: 860px) {
  .authorpage { grid-template-columns: 1fr; gap: var(--space-32); }
  .authorpage__media { max-width: 320px; }
}

/* The open/close rule only ever matched .accordion__row, so FAQ items kept
   showing a plus while open. FAQ questions use .faq__q. */
.faq__q[aria-expanded="true"] .accordion__plus::after { transform: scaleY(0); }

/* ------------------------------------------------- FAQs, centred, page end */
.faq-block .measure-body { text-align: center; margin-inline: auto; }
/* The questions themselves stay left aligned inside the centred column:
   centred paragraph text in an accordion is hard to read. */
.faq-block .faq { max-width: 820px; margin-inline: auto; }
