/* ==========================================================================
   Pepper Marketing — global stylesheet
   Single source of truth for design tokens + shared components.
   Brand: Lato, teal/yellow/orange accents, dark-immersive + light surfaces.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Dark surfaces */
  --ink:            #0a0d12;   /* darkest page base (home) */
  --panel:          #10131A;   /* default dark page/section base */
  --panel-2:        #181C22;   /* alternate dark section */
  --card-dark:      #10131A;   /* inset dark card on panel-2 */
  --footer-bg:      #07090d;
  --hairline:       #20252c;   /* dark hairline */
  --hairline-2:     #2a2f36;   /* dark hairline (lighter) */
  --teal-edge:      #2a4d4c;   /* teal-tinted border on dark */

  /* Light surfaces */
  --surface:        #F4F5F4;
  --white:          #ffffff;
  --hairline-light: #E3E5E4;
  --hairline-light-2:#e6e7e6;

  /* Brand accents */
  --teal:           #009F9A;
  --teal-bright:    #19b3ac;
  --teal-hover:     #00b3ad;
  --yellow:         #E0D947;
  --yellow-soft:    #cdc63f;
  --yellow-ink:     #b5ab1f;   /* darker yellow for text on light */
  --orange:         #F04F24;
  --orange-soft:    #f2733c;
  --orange-2:       #F2933C;

  /* Text on dark */
  --text:           #F4F5F4;
  --text-2:         #C7CBD0;
  --muted:          #A9AEB4;
  --faint:          #7c828a;
  --footer-text:    #9aa1a8;

  /* Text on light */
  --ink-heading:    #14171C;
  --body-light:     #4a5159;
  --muted-light:    #6b7178;

  /* Shape & layout */
  --r-card:   18px;
  --r-card-lg:20px;
  --r-pill:   999px;
  --maxw:     1400px;
  --pad-x:    56px;
  --pad-y:    100px;

  /* Shadows */
  --shadow-card:  0 30px 70px -36px rgba(0,0,0,.6);
  --glow-teal:    0 18px 40px -26px rgba(0,159,154,.32);
  --glow-yellow:  0 18px 40px -26px rgba(224,217,71,.26);
  --glow-orange:  0 18px 40px -26px rgba(240,79,36,.26);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato','Helvetica Neue',Arial,sans-serif;
  background: var(--panel);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.theme-ink { background: var(--ink); }   /* home uses the darkest base */

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

/* ---- Layout helpers ----------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
/* Side padding scales with the screen: 56px is a desktop luxury that ate
   ~30% of a phone's width. Everything reading --pad-x inherits these. */
@media (max-width: 900px) { :root { --pad-x: 32px; } }
@media (max-width: 700px) { :root { --pad-x: 20px; }
  /* Pills stop refusing to wrap: long CTA labels were bleeding off-card. */
  .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.3; }
  /* Bordered feature panels carry desktop padding inline — halve it on phones. */
  .yb-cards[style*="padding:52px 56px"] { padding: 32px 22px !important; }
}
.container--wide { max-width: 1560px; }

.section { position: relative; overflow: hidden; padding-block: var(--pad-y); }
.section--dark    { background: var(--panel); }
.section--panel   { background: var(--panel-2); border-top: 1px solid var(--hairline-2); }
.section--light   { background: var(--surface); color: var(--ink-heading); }
.section--white   { background: var(--white); color: var(--ink-heading); border-top: 1px solid var(--hairline-light-2); }
.section--top-hairline { border-top: 1px solid var(--hairline); }

/* Decorative dot field (masked particle grid) */
.dotfield {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #F4F5F4 1.1px, transparent 1.5px);
  background-size: 15px 15px; opacity: .32;
  -webkit-mask-image: radial-gradient(75% 110% at 88% 18%, #000 0%, transparent 58%);
  mask-image: radial-gradient(75% 110% at 88% 18%, #000 0%, transparent 58%);
}
.dotfield--light {
  background-image: radial-gradient(circle, #0a0d12 1.4px, transparent 1.8px);
  background-size: 15px 15px; opacity: .06;
}
.glow-teal-radial {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0,159,154,.2), transparent 64%);
  filter: blur(16px);
}

/* ---- Typography --------------------------------------------------------- *
 * HEADINGS: Plus Jakarta Sans.  BODY: Lato (set on <body>).
 * PJS tops out at 800, so the 900s scattered through the site clamp to 800 —
 * no need to hunt them down. It also sets slightly wider than Lato, hence the
 * marginally tighter tracking on the display sizes below.                     */
h1, h2, h3, h4,
.h1, .h2, .h2--cta, .h3, .h3--lg,
.statement,
.article-title, .spotlight__title, .edit-row__title,
.off-row__title, .res-row__title, .acc-row__name,
.bac-sub, .card h3, .wwd-row h3, .rail-card h3 {
  font-family: 'Plus Jakarta Sans', 'Lato', Arial, sans-serif;
}
/* Uppercase micro-labels: same face, but tracking must stay POSITIVE —
   the tight display tracking would make these unreadable. */
.eyebrow, .marquee-label, .cat-tag, .bac-tag,
.rail-card__head, .site-footer__heading, .wwd-label, .acc-row__num {
  font-family: 'Plus Jakarta Sans', 'Lato', Arial, sans-serif;
}

.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-bright);
}
.eyebrow--teal   { color: var(--teal); }
.eyebrow--muted  { color: var(--faint); font-weight: 700; letter-spacing: .16em; }

.h1 {
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 900;
  letter-spacing: -.038em; line-height: 1.04; text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3vw, 42px); font-weight: 900;
  letter-spacing: -.033em; line-height: 1.05; text-wrap: balance;
}
.h2--cta { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; }
.h3 { font-size: 26px; font-weight: 900; letter-spacing: -.028em; line-height: 1.14; }
.h3--lg { font-size: clamp(26px, 2.2vw, 30px); }

.lead { font-size: 20px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.body--light { color: var(--body-light); }
/* large intro / pull statement paragraph */
.statement { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.4; font-weight: 700; letter-spacing: -.015em; text-wrap: pretty; }
.measure { max-width: 640px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Plus Jakarta Sans', 'Lato', Arial, sans-serif;
  font-weight: 700; font-size: 16px; line-height: 1;
  border-radius: var(--r-pill); padding: 15px 30px;
  white-space: nowrap; cursor: pointer; border: none;
  transition: transform .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
/* Shared hover: lift + soft teal glow */
.btn--teal:hover, .btn--sweep:hover, .btn--ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(0,159,154,.45);
}
.btn--teal  { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-hover); }
.btn--white { background: #fff; color: var(--panel-2); box-shadow: 0 14px 36px -14px rgba(0,0,0,.5); }
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -18px rgba(0,0,0,.55); }
.btn--ghost { background: transparent; border: 1.5px solid var(--teal); color: var(--teal-bright); }
.btn--ghost:hover { background: var(--teal); color: #fff; }

/* "Sweep" pill — solid teal, lifts with a teal glow on hover (arrow nudges) */
.btn--sweep { color: #fff; background: var(--teal); }
.btn--sweep:hover { background: var(--teal-hover); }
.btn--sweep .sweep-shaft, .btn--sweep .sweep-head { transition: transform .35s ease; transform-box: fill-box; }
.btn--sweep .sweep-shaft { transform-origin: left center; }
.btn--sweep .sweep-head  { transform-origin: center; }
.btn--sweep:hover .sweep-shaft { transform: scaleX(1.4); }
.btn--sweep:hover .sweep-head  { transform: translateX(6px); }


/* "Learn more →" arrow link */
.learn { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; letter-spacing: -.01em; }
.learn .ar { display: inline-block; transition: transform .28s var(--ease); }
.learn:hover .ar { transform: translateX(7px); }

/* ==========================================================================
   Header / nav (injected by site.js — markup identical on every page)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  /* Logo and nav line up with the content column; below --maxw this is just --pad-x. */
  padding: 18px max(var(--pad-x), calc((100% - var(--maxw)) / 2 + var(--pad-x)));
  background: rgba(10,13,18,0); border-bottom: 1px solid rgba(42,47,54,0);
  transition: transform .45s var(--ease), opacity .35s var(--ease),
              background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10,13,18,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: rgba(42,47,54,1);
}
.site-header.is-hidden { transform: translateY(-115%); opacity: 0; }
/* white vector — no filter needed */
.site-header__logo img { height: 50px; width: auto; }
.site-nav {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-pill);
  padding: 9px 9px 9px 26px;
  overflow: hidden; /* nothing shows outside the pill while it grows */
  transition: border-radius .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease),
              padding .25s var(--ease), margin .25s var(--ease), box-shadow .25s var(--ease);
}
.site-nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 700; color: var(--text-2); white-space: nowrap; padding-right: 16px; }

/* Top-level links: animated teal underline-wipe on hover */
.site-nav__links > a,
.site-nav__links .nav-parent {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-2); padding-bottom: 4px; cursor: pointer;
  background-image: linear-gradient(var(--teal-bright), var(--teal-bright));
  background-repeat: no-repeat; background-position: left 100%; background-size: 0% 2px;
  transition: background-size .3s var(--ease), color .2s;
}
.site-nav__links > a:hover,
.site-nav__links .nav-parent:hover,
.nav-item:focus-within .nav-parent { background-size: 100% 2px; color: #fff; }
.site-nav__links a[aria-current="page"] { color: #fff; }
.nav-parent .chev { transition: transform .25s var(--ease); }
.nav-item:hover .nav-parent .chev,
.nav-item:focus-within .nav-parent .chev { transform: rotate(180deg); }

/* Second-tier menu — drops as a full-width drawer extending from the pill */
.nav-item { position: static; display: inline-flex; align-items: center; }
/* The menu links live inside the pill's expanded lower half — they carry no
   box of their own, so there is no second panel to sit out of alignment. */
.dd {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 60;
  padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
/* Menu links wait for the pill to finish growing, then fade in — without the
   delay they ride the moving bottom edge and visibly clip through the nav row. */
.nav-item:hover .dd,
.nav-item:focus-within .dd { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: .18s; }
/* invisible bridge over the gap below the parent link so the menu stays open
   while the cursor travels down into it */
.nav-parent::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 28px; }
/* While a menu is open the pill itself expands downward to contain it: one
   continuous rounded box, so the menu can never sit out of alignment with
   the pill (the old two-box drawer showed its seams at the corners). */
@media (min-width: 881px) {
  .site-nav:has(.nav-item:hover),
  .site-nav:has(.nav-item:focus-within) {
    background: rgba(10,13,18,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-radius: 30px;
    /* the negative margin cancels the padding growth, so the pill's layout
       footprint never changes — the menu hangs below as an overlay and the
       logo/header stay put */
    padding-bottom: 64px;
    margin-bottom: -55px;
    box-shadow: 0 26px 50px -26px rgba(0,0,0,.85);
  }
}
.dd a, .dd .dd-soon {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 700;
  color: var(--text-2); white-space: nowrap;
}
.dd a { transition: background .2s, color .2s; }
.dd a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dd .dd-soon { color: var(--faint); font-weight: 400; cursor: default; }
.dd .dd-soon em {
  font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 999px;
}
.site-nav__cta { flex: none; }
.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 880px) {
  .site-header { padding: 14px 22px; }
  .site-nav {
    position: absolute; top: 100%; right: 22px; left: 22px; margin-top: 10px;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 16px; border-radius: 18px;
    background: rgba(10,13,18,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--hairline-2);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; align-items: stretch; gap: 4px; padding: 0; font-size: 17px; }
  .site-nav__links a { padding: 12px 10px; border-radius: 10px; }
  /* Dropdowns: stack inline & expanded on mobile */
  .site-nav__links > a, .site-nav__links .nav-parent { background-image: none; }
  .nav-item { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-parent { display: flex; justify-content: space-between; }
  .nav-parent::after { display: none; }
  .dd {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    flex-direction: column; flex-wrap: nowrap;
    margin: 0; padding: 0 0 8px 12px; border: none; border-radius: 0; box-shadow: none;
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .dd a, .dd .dd-soon { font-size: 15px; }
  .site-nav__cta { width: 100%; justify-content: center; margin-top: 6px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 46px; height: 46px; padding: 12px; cursor: pointer;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
}

/* ==========================================================================
   Footer (injected by site.js — identical on every page)
   ========================================================================== */
/* Light footer so content boxes pop against it. Logo asset is the light
   (dark-page) variant, so it's forced dark here — swap in a real dark
   logo file when one exists.                                            */
.site-footer {
  background: var(--white); border-top: 1px solid var(--hairline-light);
  display: block; padding: 0 var(--pad-x);
}
.site-footer__grid {
  max-width: calc(var(--maxw) - 2 * var(--pad-x)); margin: 0 auto; padding: 56px 0 44px;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
/* Full-colour logo on the light footer — the black (brightness(0)) treatment
   is not approved brand usage. The asset is already the colour version. */
/* full-colour vector — sharp at any size, no filter */
.site-footer__logo img { height: 56px; width: auto; }

/* Sitemap columns */
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.site-footer__col a, .site-footer__soon { padding-block: 6px; }
.site-footer__heading {
  font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 21px; /* 16px + the 11px gap the links used to have, less their 6px padding */
}
.site-footer__col a { font-size: 14.5px; color: var(--body-light); transition: color .2s; }
.site-footer__col a:hover { color: var(--ink-heading); }
.site-footer__soon { font-size: 14.5px; color: #9aa09a; display: inline-flex; align-items: center; gap: 8px; }
.site-footer__soon em {
  font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-light); background: rgba(20,23,28,.07); padding: 2px 7px; border-radius: var(--r-pill);
}

/* Legal bar */
.site-footer__bar {
  max-width: calc(var(--maxw) - 2 * var(--pad-x)); margin: 0 auto; padding: 20px 0 24px;
  border-top: 1px solid var(--hairline-light);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer__legal { font-size: 13px; color: var(--muted-light); }
.site-footer__legal a { color: var(--body-light); transition: color .2s; }
.site-footer__legal a:hover { color: var(--ink-heading); }

@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; gap: 30px; } }

/* ==========================================================================
   Cards (What We Do / Who We Help / pillars / audiences)
   ========================================================================== */
.card {
  display: flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 34px 32px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); }
.card--light { background: var(--white); border-color: #E8E4DA; color: var(--ink-heading); }

/* Accent is held as a variable and only expressed on interaction — no static
   coloured top bar. The card reads neutral at rest; colour is the reward for
   engaging with it, not decoration applied up front. */
.card--y { --ca: 224,217,71; }
.card--t { --ca: 25,179,172; }
.card--o { --ca: 240,79,36; }
.card:hover {
  border-color: rgba(var(--ca, 25,179,172), .55);
  box-shadow: 0 22px 46px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(var(--ca, 25,179,172), .10);
}
/* Light cards sit on paper, so the lift needs a softer, warmer shadow */
.card--light:hover {
  border-color: rgba(var(--ca, 25,179,172), .5);
  box-shadow: 0 20px 42px -28px rgba(20,23,28,.42), 0 0 0 1px rgba(var(--ca, 25,179,172), .12);
}

/* number removed — icon is the only child now, so just align it left */
.card__head { display: flex; align-items: flex-start; margin-bottom: 26px; }
.card__icon { width: 54px; height: 54px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.card h3 { margin-bottom: 14px; color: inherit; }
.card p { flex: 1; margin-bottom: 28px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Logo marquee (partials/marquee.njk, logos from _data/settings.json)
   ========================================================================== */
.marquee-wrap {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee { display: flex; width: max-content; gap: 72px; align-items: center; color: #737a82; animation: marquee 38s linear infinite; }
.marquee__item { flex: none; display: flex; align-items: center; gap: 12px; }
.marquee__item img { display: block; height: 36px; width: auto; }
.marquee-label { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); margin-bottom: 34px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Animations / decorative
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot-bounce { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }
.spin-slow { animation: spin 280s linear infinite; }
.spin-med  { animation: spin 72s linear infinite; }

/* Scroll reveal — the .reveal class is added by site.js (never hides without JS) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   Accordion / detail-panel pattern (Your Brand pillars, About reasons)
   ========================================================================== */
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.acc-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.acc-row {
  display: flex; align-items: center; gap: 16px; min-height: 66px;
  padding: 14px 18px; border-radius: 12px; cursor: pointer; text-align: left; width: 100%;
  background: linear-gradient(180deg,#171a20,#121419);
  border: 1px solid #23282f; border-left: 3px solid var(--hairline-2);
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.acc-row__num  { font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; color: #4a5159; transition: color .25s; }
.acc-row__name { flex: 1; font-weight: 900; letter-spacing: -.01em; font-size: 18px; color: var(--faint); transition: color .25s, font-size .25s; }
.acc-row__dot  { width: 8px; height: 8px; border-radius: 50%; flex: none; opacity: 0; transition: opacity .25s; }
.acc-row.is-active { background: linear-gradient(180deg,#1d2127,#15181d); box-shadow: 0 14px 34px -16px rgba(0,0,0,.8); transform: translateY(-1px); }
.acc-row.is-active .acc-row__name { color: #fff; font-size: 22px; }
.acc-row.is-active .acc-row__dot  { opacity: 1; }
.acc-row__num { color: #4a5159; }
.acc-row.is-active .acc-row__num { color: var(--rac, var(--teal)); }

.acc-panel {
  position: relative; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 46px 48px; min-height: 520px;
}
.acc-panel__pane { display: none; position: relative; z-index: 2; }
.acc-panel__pane.is-active { display: block; }

/* ==========================================================================
   Misc shared bits
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--hairline); padding-top: 26px; }
.stat__num { font-size: 32px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.stat__label { font-size: 12px; color: var(--faint); margin-top: 7px; line-height: 1.3; }

.note { font-size: 13px; font-style: italic; color: #5d646c; }

/* Resource cards */
.res-card { background: #fff; border: 1px solid var(--hairline-light); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; min-height: 300px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.res-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,159,154,.4); }
.res-card__media { height: 170px; overflow: hidden; position: relative; }
.res-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; filter: grayscale(1) contrast(1.05) brightness(.98); }
.res-card:hover .res-card__media img { transform: scale(1.06); filter: grayscale(0) contrast(1) brightness(1); }
.res-card__body { padding: 26px 28px; display: flex; flex-direction: column; flex: 1; }
.res-card__body h3 { font-size: 20px; font-weight: 900; letter-spacing: -.01em; color: #1A1D21; line-height: 1.25; margin-bottom: 10px; text-wrap: balance; }
.res-card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--teal); }
.res-card .res-arrow { transition: transform .25s; }
.res-card:hover .res-arrow { transform: translateX(5px); }
/* Single related article: image left, copy right. A lone card in the auto-fit grid
   would otherwise stretch to a full-width banner with an empty body. Applied by
   partials/related-resources.njk only when exactly one article is published. */
.res-card--feature { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 0; }
.res-card--feature .res-card__media { height: 100%; min-height: 300px; }
.res-card--feature .res-card__body { padding: 42px 46px; justify-content: center; }
.res-card--feature .res-card__body h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 14px; }
.res-card--feature .res-card__dek { font-size: 17px; line-height: 1.65; color: var(--body-light); max-width: 560px; margin-bottom: 24px; text-wrap: pretty; }
.res-card--feature .res-card__cta { margin-top: 0; }
.res-card--feature .cat-tag--brand { color: var(--yellow-ink); } /* yellow reads on dark; ink-yellow on the white card */
@media (max-width: 760px) {
  .res-card--feature { grid-template-columns: 1fr; }
  .res-card--feature .res-card__media { min-height: 0; height: 190px; }
  .res-card--feature .res-card__body { padding: 26px 28px; }
}

/* Pepper dot motif sizing helper */
.pepper-mark { height: 22px; width: auto; }

/* Testimonial carousel dots */
.tdot { width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: #d0d2d0; transition: width .25s, background .25s; }
.tdot.is-active { width: 26px; background: var(--teal); }
/* Every slide shares one grid cell, so the box is always as tall as the
   longest quote and the dots/arrows never move. Inactive slides stay in
   layout (visibility, not display) to hold that height. */
.tcarousel__slides { display: grid; }
.tcarousel__slides > [data-slide] { grid-area: 1 / 1; margin: 0; opacity: 1; transform: none;
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0s; }
/* Slow cross-fade with a gentle slide: waiting quotes sit just to the right,
   the outgoing one (.is-leaving, set by site.js) eases off to the left.
   visibility flips only after the fade so it never blinks out. */
.tcarousel__slides > [data-slide][hidden] { display: block; visibility: hidden; opacity: 0; transform: translateX(32px);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.22,.61,.36,1), visibility 0s linear 1.4s; }
.tcarousel__slides > [data-slide][hidden].is-leaving { transform: translateX(-32px); }
@media (prefers-reduced-motion: reduce) {
  .tcarousel__slides > [data-slide], .tcarousel__slides > [data-slide][hidden] { transition: none; transform: none; }
}
[data-slide][hidden] { display: none; }

/* Before / After comparison */
.tag { font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

/* CTA band */
.cta-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Stat grid on dark */
.stat__num--y { color: var(--yellow); }
.stat__num--t { color: var(--teal); }
.stat__num--o { color: var(--orange); }

/* ==========================================================================
   "Who We Help" audience-page template
   Shared by late-stage-tech-startups / mid-market-tech-companies /
   tech-vendors. Each page sets only its accent tokens (--ac, --ac-dim) in its
   own <style> block; everything structural lives here.
   ========================================================================== */

/* ---- The GTM gap: heading + artwork beside a running narrative ---------- */
/* The heading column is NOT sticky. With the car added it is nearly as tall
   as the narrative, so sticky bought ~60px of travel while detaching the
   headline and floating it below the body copy it should align with. */
.gap-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
/* NOTE: .gap-para is declared after --lead, so it wins on font-size/colour for
   elements carrying both. Kept in the approved design's order — swap the two
   rules to make the lead paragraph render larger, as its name implies. */
.gap-para--lead { font-size: 21px; line-height: 1.6; color: var(--text); }
.gap-para { font-size: 18px; line-height: 1.7; color: var(--text-2); margin: 0 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--hairline-2); text-wrap: pretty; }
.gap-pull { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5; font-weight: 900; letter-spacing: -.015em; color: var(--text); margin: 0; padding-left: 26px; border-left: 3px solid var(--ac); text-wrap: pretty; }
@media (max-width: 900px) { .gap-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- How we help: alternating artwork / copy rows ---------------------- */
.off-rows { display: flex; flex-direction: column; gap: 66px; margin-top: 56px; }
.off-row { display: grid; grid-template-columns: 30% 1fr; gap: 56px; align-items: center; }
.off-row:nth-child(even) { grid-template-columns: 1fr 30%; }
.off-row:nth-child(even) .pplate { order: 2; }
.off-row__title { font-size: clamp(26px, 2.3vw, 33px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; color: var(--ink-heading); margin: 0 0 16px; text-wrap: balance; }
.off-row__body { font-size: 17.5px; line-height: 1.7; color: #3F454C; margin: 0; text-wrap: pretty; }
@media (max-width: 1000px) {
  .off-row, .off-row:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .off-row:nth-child(even) .pplate { order: 0; }
  .pplate { max-width: 440px; }
}

/* ---- Animated line-art plates ------------------------------------------ *
 * Each plate is an inline SVG whose parts carry a role class (.el, .draw,
 * .flow ...) plus an --i stagger index. Animation is gated on .is-playing,
 * added by site.js when the plate scrolls into view, so the artwork sits
 * fully drawn if scripts never run.                                        */
.pplate { position: relative; aspect-ratio: 4 / 3; --plate-bg: #22272E; }
.pplate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pplate svg .scrim, .pplate svg .flow, .pplate svg .pkt { opacity: 0; }
.pplate.is-playing svg .el,
.pplate.is-playing svg .fade,
.pplate.is-playing svg .dash { animation: p-fade .5s ease-out both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .dot,
.pplate.is-playing svg .hero { transform-box: fill-box; transform-origin: center; animation: p-pop .5s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .zoom { transform-box: fill-box; transform-origin: center; animation: p-zoom .6s cubic-bezier(.2,.8,.25,1) both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .draw,
.pplate.is-playing svg .patch { stroke-dasharray: 1; animation: p-draw .55s ease-out both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .grow { stroke-dasharray: 120; animation: p-grow .6s ease-out both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .walk { animation: p-walk 1.1s ease-in-out both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .lift,
.pplate.is-playing svg .slide { transform-box: fill-box; animation: p-lift 1.1s cubic-bezier(.3,.9,.25,1) both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .drop { transform-box: fill-box; animation: p-drop 1s cubic-bezier(.4,.9,.3,1) both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .cue { animation: p-cue 1.6s ease-in-out both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate.is-playing svg .reall { transform-box: fill-box; transform-origin: bottom; animation: p-reall .9s cubic-bezier(.3,.9,.25,1) both; animation-delay: calc(var(--i, 0) * var(--stg, 45ms)); }
.pplate svg .scrim { fill: var(--plate-bg, #F4F5F4); }
.pplate.is-playing svg .scrim { animation: p-scrim .7s ease-out both; }
/* Two animation-delay values on the element itself: one for the "in" pass, one for the "out". */
.pplate.is-playing svg .elout { animation: p-fade .5s ease-out both, p-out .5s ease-in forwards; }
.pplate.is-playing svg .inout { transform-box: fill-box; transform-origin: center; animation: p-pop .45s cubic-bezier(.2,1.5,.4,1) both, p-out .45s ease-in forwards; }
.pplate.is-playing svg .fadeinout { animation: p-fade .45s ease-out both, p-out .45s ease-in forwards; }
.pplate.is-playing svg .flow {
  fill: none; stroke: #F4F5F4; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: .18 .82; stroke-dashoffset: 1;
  animation: p-flow 1.1s ease-in-out both, p-flowfade 1.1s linear both;
}
.pplate.is-playing svg .flow.in { animation-direction: reverse, normal; }
.pplate.is-playing svg .pkt { offset-distance: 0%; animation: p-pkt 1.1s ease-in-out 2.9s both, p-flowfade 1.1s linear 2.9s both; }
/* Outbound signal arcs: repeat for as long as the plate is playing, so the
   "work going out while we build" reads even if you catch the build late. */
.pplate svg .sig { opacity: 0; }
.pplate.is-playing svg .sig { animation: p-sig 2.4s ease-out infinite; }
@keyframes p-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: var(--o, 1); transform: none; } }
@keyframes p-out { from { opacity: var(--o, 1); } to { opacity: 0; } }
@keyframes p-pop { from { opacity: 0; transform: scale(.2); } to { opacity: var(--o, 1); transform: scale(1); } }
@keyframes p-zoom { from { opacity: 0; transform: scale(var(--s, 1.2)); } to { opacity: var(--o, 1); transform: scale(1); } }
@keyframes p-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes p-grow { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes p-walk { 0% { opacity: 0; transform: translateX(var(--dx, 0)); } 18% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes p-lift { 0% { opacity: 0; transform: translateY(var(--dy, 0)); } 18% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes p-drop { 0% { opacity: 0; transform: none; } 22% { opacity: 1; } 100% { opacity: 1; transform: translateY(var(--dy, 0)); } }
@keyframes p-cue { 0% { opacity: 0; transform: translateY(-4px); } 25% { opacity: .9; transform: none; } 70% { opacity: .9; } 100% { opacity: 0; } }
@keyframes p-reall { from { transform: scaleY(var(--sy, 1)); } to { transform: scaleY(1); } }
@keyframes p-scrim { from { opacity: 0; } to { opacity: 1; } }
@keyframes p-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }
@keyframes p-flowfade { 0% { opacity: 0; } 15% { opacity: .9; } 80% { opacity: .9; } 100% { opacity: 0; } }
@keyframes p-pkt { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes p-sig { 0% { opacity: 0; } 12% { opacity: .95; } 55% { opacity: .95; } 100% { opacity: 0; } }

/* ---- Related resources list ------------------------------------------- */
.res-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 24px; padding: 28px 4px; border-top: 1px solid #d3d6cf; text-decoration: none; transition: background .25s ease, padding .25s ease; }
.res-row:last-of-type { border-bottom: 1px solid #d3d6cf; }
.res-row__num { font-size: 13px; font-weight: 900; letter-spacing: .16em; color: var(--ac-dim); font-variant-numeric: tabular-nums; }
.res-row__title { font-size: clamp(19px, 1.7vw, 23px); font-weight: 900; letter-spacing: -.02em; line-height: 1.3; color: var(--ink-heading); text-wrap: pretty; }
.res-row__cta { font-size: 14px; font-weight: 900; color: var(--ac-dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.res-row__arrow { transition: transform .25s ease; display: inline-block; }
.res-row:hover .res-row__arrow { transform: translateX(5px); }
.res-row:hover .res-row__title { color: var(--ac-dim); }
@media (max-width: 760px) { .res-row { grid-template-columns: 1fr; gap: 12px; } }

/* ---- Audience-page overrides of shared components ---------------------- *
 * Scoped to the audience pages so the rest of the site is unaffected.      */
[data-page="who"] .eyebrow { display: inline-block; letter-spacing: .2em; font-size: 15px; }
/* Scoped to main: the injected header/footer sit outside it, so broad anchor
   rules must never reach nav or footer links. */
[data-page="who"] main a:not(.btn) { color: var(--teal-bright); }
[data-page="who"] main a:not(.btn):hover { color: var(--teal-hover); }

/* ---- Long-form prose (legal pages + articles) --------------------------- *
 * Single text hierarchy for long-form reading on a light section.          */
.legal-hero { padding-block: 150px 70px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.02em; color: #181C22; margin: 54px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: #181C22; margin: 34px 0 12px; }
.prose h3 span { color: var(--teal); margin-right: 10px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: #5a616b; }
@media (min-width: 900px) { .prose p, .prose li { font-size: 19px; } }
.prose p { margin-bottom: 16px; }
.prose ol, .prose ul { padding-left: 26px; margin-bottom: 16px; }
.prose li { margin-bottom: 10px; }
.prose ol ol { margin-top: 10px; }
.prose a { color: var(--teal); font-weight: 700; }
.prose .legal-updated { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin-bottom: 30px; }
.prose-table { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--hairline-light); border-radius: 12px; background: #fff; }
.prose-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.prose-table th, .prose-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--hairline-light); font-size: 15.5px; line-height: 1.55; color: #5a616b; }
.prose-table th { font-family: 'Plus Jakarta Sans', 'Lato', Arial, sans-serif; font-weight: 800; color: #181C22; background: var(--surface); }
.prose-table tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) { .legal-hero { padding-block: 120px 54px; } }

/* ---- Resources hub ------------------------------------------------------ */
/* Slim banner: quiet, half the height of standard page heroes */
.banner-slim { padding-block: 148px 54px; }
.banner-slim__row { position: relative; z-index: 2; }
.banner-slim__dek { max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--muted); margin-top: 18px; }
/* Banner image: bleeds in from the right, fading to nothing toward the text.
   Mask fades the left edge; the overlay re-tints with the section dark so
   type stays legible whatever the photo does.                              */
.banner-slim__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; pointer-events: none; z-index: 1; }
.banner-slim__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 52%); }
.banner-slim__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,19,26,.82) 0%, rgba(16,19,26,.35) 16%, rgba(16,19,26,0) 30%), /* keeps the transparent nav legible over bright photos */
              linear-gradient(90deg, var(--panel) 0%, rgba(16,19,26,.5) 34%, rgba(16,19,26,.12) 62%, rgba(16,19,26,.28) 100%),
              linear-gradient(0deg, var(--panel) 0%, transparent 34%); }
@media (max-width: 860px) {
  .banner-slim { padding-block: 120px 44px; }
  .banner-slim__media { width: 100%; opacity: .32; } /* photo sits under the copy on phones: bright images washed out the meta line at .5 */
}

/* Category tag — coloured per service pillar */
.cat-tag { display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.cat-tag--brand { color: var(--yellow); }
.cat-tag--infra { color: var(--orange-soft); }
.cat-tag--gtm   { color: var(--teal-bright); }
.section--light .cat-tag--brand { color: var(--yellow-ink); }
.section--light .cat-tag--infra { color: var(--orange); }
.section--light .cat-tag--gtm   { color: var(--teal); }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--faint); }
.meta-row .cat-tag, .meta-row > span { white-space: nowrap; }
.meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.section--light .meta-row { color: var(--muted-light); }

/* Spotlight — featured article, sits in the dark band under the banner */
.spotlight { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.spotlight__media { position: relative; border-radius: var(--r-card-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.spotlight__media img { width: 100%; height: 350px; object-fit: cover; transition: transform .7s var(--ease); }
.spotlight:hover .spotlight__media img { transform: scale(1.04); }
.spotlight__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; color: var(--text); text-wrap: balance; }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; gap: 28px; } .spotlight__media img { height: 240px; } }

/* Filter chips */

/* Editorial stack — one article per row, alternating media side.
   Row modifiers: --rev (image right), --text (typographic, no image).
   Category accent via --rc custom prop set by .edit-row--{cat}.          */
.edit-row { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; padding: 46px 0; border-top: 1px solid #d3d6cf; transition: padding .35s var(--ease); }
.edit-stack .edit-row:last-child { border-bottom: 1px solid #d3d6cf; }
.edit-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rc, var(--teal)); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.edit-row:hover { padding-left: 26px; }
.edit-row:hover::before { transform: scaleY(1); }
.edit-row--brand { --rc: var(--yellow-soft); }
.edit-row--infra { --rc: var(--orange); }
.edit-row--gtm   { --rc: var(--teal); }
.edit-row--rev { grid-template-columns: 1.1fr .9fr; }
.edit-row--rev .edit-row__media { order: 2; }
.edit-row--text { display: block; }
.edit-row__media { border-radius: var(--r-card); overflow: hidden; }
.edit-row__media img { width: 100%; height: 250px; object-fit: cover; transition: transform .7s var(--ease); }
.edit-row:hover .edit-row__media img { transform: scale(1.05); }
.edit-row__title { font-size: clamp(23px, 2.3vw, 31px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; color: var(--ink-heading); margin: 14px 0 12px; text-wrap: balance; transition: color .25s; }
.edit-row--text .edit-row__title { font-size: clamp(26px, 2.9vw, 40px); max-width: 900px; }
.edit-row:hover .edit-row__title { color: var(--rc, var(--teal)); }
.edit-row--brand:hover .edit-row__title { color: var(--yellow-ink); }
.edit-row__dek { font-size: 17px; line-height: 1.65; color: var(--body-light); max-width: 560px; margin-bottom: 18px; text-wrap: pretty; }
.edit-row__cta { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 900; color: var(--ink-heading); }
.edit-row__cta .ar { transition: transform .25s ease; }
.edit-row:hover .edit-row__cta .ar { transform: translateX(5px); }
.edit-row.is-hidden { display: none; }
@media (max-width: 860px) {
  .edit-row, .edit-row--rev { grid-template-columns: 1fr; gap: 22px; padding-block: 34px; }
  .edit-row--rev .edit-row__media { order: 0; }
  .edit-row__media img { height: 200px; }
  .edit-row:hover { padding-left: 0; }
}

/* ---- Article pages ------------------------------------------------------ */
.article-head { padding-block: 150px 56px; }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--faint); margin-bottom: 26px; transition: color .2s; }
.article-back:hover { color: var(--teal-bright); }
.article-title { font-size: clamp(30px, 3.4vw, 48px); font-weight: 900; letter-spacing: -.025em; line-height: 1.08; color: var(--text); max-width: 900px; text-wrap: balance; margin: 16px 0 18px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 68px; align-items: start; }
.article-rail { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.rail-card { background: var(--white); border: 1px solid var(--hairline-light); border-radius: var(--r-card); padding: 22px 24px; }
.rail-card__head { font-size: 11.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 14px; }
.toc a { display: block; font-size: 14px; line-height: 1.45; color: var(--muted-light); border-left: 2px solid var(--hairline-light); padding: 6px 0 6px 14px; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink-heading); }
.toc a.is-on { color: var(--teal); border-color: var(--teal); font-weight: 700; }
.share-row { display: flex; gap: 10px; }
.share-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--body-light); background: transparent; border: 1px solid #c9cdc9; border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.share-btn:hover { color: var(--ink-heading); border-color: var(--ink-heading); }
.share-btn svg { flex: none; }
.rail-cta { background: var(--panel-2); border: 1px solid var(--teal-edge); }
.rail-cta p { font-size: 15.5px; line-height: 1.55; color: var(--text-2); margin-bottom: 16px; }
.prose blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--teal); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; font-weight: 700; letter-spacing: -.01em; color: #181C22; text-wrap: pretty; }
.prose figure { margin: 30px 0; }
.prose figure img { border-radius: var(--r-card); }
.prose figcaption { font-size: 13px; color: var(--muted-light); margin-top: 10px; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; gap: 44px; }
  .article-rail { position: static; }
}

/* ---- Shared CTA card (promoted from home so all pages can use it) ------- */
.cta-card { position: relative; background: var(--panel-2); border: 1px solid var(--teal-edge); border-radius: 22px; overflow: hidden; padding: 64px 56px; }
.cta-card__dots { position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: radial-gradient(circle, #F4F5F4 1px, transparent 1.4px); background-size: 18px 18px; }
.dot-pulse { display: inline-flex; align-items: flex-end; gap: 5px; }
.dot-pulse span { width: 9px; height: 9px; border-radius: 50%; animation: dot-bounce 1.2s ease-in-out infinite; }
@media (max-width: 700px) { .cta-card { padding: 44px 28px; } }

/* Pill variant — big capsule CTA that sits inline on a light page */

/* Sticky-friendly section: position:sticky is disabled by any overflow:hidden
   ancestor, so sections hosting a sticky rail must opt out of the default. */
.section--flow { overflow: visible; }

/* ---- Section transition utilities --------------------------------------- *
 * ONE consistent divider language site-wide: plain hairlines.
 * Dark-on-dark boundaries use .section--top-hairline (above);
 * light-on-light boundaries use this light variant.                        */
.section--top-hairline-light { border-top: 1px solid #d3d6cf; }

/* Sub-page hero heading: smaller than the home H1 — inner pages carry long,
   sentence-style H1s (kept as h1 for SEO/AEO) with less width to breathe.  */
.h1--page { font-size: clamp(25px, 2.5vw, 37px); line-height: 1.18; letter-spacing: -.02em; }

/* ---- "Who it's for" light accordion section (What We Do pages) ---------- *
 * The light treatment from your-marketing-infrastructure, shared by all
 * What We Do pages: warm-grey section, white accordion rows, dark panel.   */
.who-light { background: #E7E9E4; border-top: 1px solid #d3d6cf; }

/* Consecutive grey sections read as one continuous field — drop the seam. */
.who-light + .who-light { border-top: none; }
/* --faint is tuned for dark panels; on the grey it drops to ~3.4:1. */
.who-light .eyebrow--muted { color: var(--muted-light); }
.who-light .h2 { color: var(--ink-heading); }
.who-light .acc-row { background: #fff; border: 1px solid #d3d6cf; box-shadow: none; }
.who-light .acc-row__num { color: #9aa09a; }
.who-light .acc-row__name { color: #6d746c; }
.who-light .acc-row.is-active { background: #fff; box-shadow: 0 16px 36px -20px rgba(20,23,28,.45); }
.who-light .acc-row.is-active .acc-row__name { color: var(--ink-heading); }
.who-light .acc-row.is-active .acc-row__num { color: var(--rac-dim, #4a5159); }

/* ---- GTM-gap card figure ------------------------------------------------ *
 * Artwork sits flush on the card's bottom edge, so the illustration's hard
 * crop lands on the border and reads as intentional instead of cut mid-air.
 * The negative margin cancels the card's 52px bottom padding.              */
.gtm-card { overflow: hidden; }
/* gap = minimum breathing room under the heading; margin-top:auto then pushes
   the figure to the bottom of the stretched column. Don't set margin-top on
   the img inline — it beats the auto margin and the figure stops dropping.  */
.gtm-card__fig { display: flex; flex-direction: column; height: 100%; gap: 30px; }
.gtm-card__fig img { width: 100%; height: auto; margin-top: auto; margin-bottom: -52px; }
@media (max-width: 860px) {
  /* Stacked: no card edge to sit on, so keep the artwork clear of the copy. */
  .gtm-card__fig img { margin-bottom: 0; }
}

/* ---- "The gap" AI speedometer illustration (home) ----------------------- *
 * Sits under the statement, filling the space the short heading leaves.
 * Cropped to ink bounds (1.62:1). Bottom-aligned to the row so it sits level
 * with the last line of the copy opposite.                                  */
/* align-self beats the container's align-items:start (which the page-local
   .gap-grid still sets), so the column stretches and margin-top:auto works. */
.gap-grid > div:first-child { display: flex; flex-direction: column; align-self: stretch; }
/* Centred in the column; sized so the gauge bottoms out within a hair of
   the copy opposite (statement + padding + gauge ≈ right column height). */
.gap-speedo-wrap { width: 100%; max-width: 290px; margin-top: auto; margin-inline: auto; padding-top: 14px; }
.gap-speedo { display: block; width: 100%; height: auto; opacity: .72; }
@media (max-width: 900px) { .gap-speedo-wrap { max-width: 280px; margin-top: 26px; padding-top: 22px; } }

/* ---- "The GTM gap" broken-pipeline illustration (Who We Help ×3) -------- *
 * Cropped to ink bounds. Pinned to the bottom of the column (like the home
 * speedo) so it sits low in the section, level with the end of the copy
 * opposite — centring left it floating too high under the h2. */
.gap-pipe-wrap { width: 100%; margin-top: auto; padding-top: 28px; }
.gap-pipe { display: block; width: 100%; height: auto; opacity: .72; }
@media (max-width: 900px) { .gap-pipe-wrap { max-width: 440px; margin: 10px auto 0; padding-block: 12px; } }

/* ---- FAQ accordion (service pages) -------------------------------------- */
/* Two-column packed accordion: scales to dozens of questions. All closed by
   default so the section reads as a scannable index; items keep their own
   card so an open answer never pushes the neighbouring column around. */
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }
.faq__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.faq__item { background: #fff; border: 1px solid var(--hairline-light); border-radius: 12px; padding: 0 20px; }
.faq__item[open] { border-color: rgba(0,159,154,.45); box-shadow: 0 14px 34px -24px rgba(20,23,28,.35); }
.faq__q { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 0; font-family: 'Plus Jakarta Sans', 'Lato', Arial, sans-serif; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink-heading); }
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { font-size: 14px; color: var(--teal); flex: none; transition: transform .25s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--body-light); text-wrap: pretty; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; row-gap: 12px; } }
/* Answers slide open/closed instead of snapping, so the section grows smoothly.
   Browsers without ::details-content just open instantly, as before. */
.faq { interpolate-size: allow-keywords; }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq__item::details-content { transition: none; } }

/* ---- Touch targets ------------------------------------------------------- *
 * Small text links and the carousel dots get an invisible hit area of 32px+
 * (WCAG 2.5.8 wants 24px). Visuals and layout don't move.                   */
.tap, .learn, .article-back, [data-readmore-btn], .site-footer__legal a, .tdot { position: relative; }
.tap::after, .learn::after, .article-back::after, [data-readmore-btn]::after, .site-footer__legal a::after {
  content: ''; position: absolute; inset: -9px -6px; }
.tdot::after { content: ''; position: absolute; inset: -12px -5px; }

/* ---- Small uppercase labels: 13px floor on phones ---------------------- */
@media (max-width: 600px) {
  .marquee-label, .cat-tag, .rail-card__head, .site-footer__heading { font-size: 13px; }
}
