/* Self-hosted fonts (SIL Open Font License, see fonts/licences). Never load fonts from a third-party host. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url("/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Jost;
  src: url("/fonts/jost-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Layout: wide editorial grid, one data panel in the hero as the bold moment, everything else quiet. */
:root {
  --bg: #f4f6f7;
  --surface: #fff;
  --ink: #0e1c26;
  --ink-soft: #4a5a63;
  --line: #d8dfe3;
  --rule-strong: #0e1c26; /* strong editorial rules (top of lists, stats); stays mid-grey in dark mode */
  --harbour: #0078a2; /* primary accent: Group Promotions logo blue (fills, buttons, chart) */
  --accent-text: #006b91; /* accent for TEXT: passes 4.5:1 on every light surface incl. tints */
  --harbour-soft: #e0eef4;
  --brass: #b5812b; /* data highlight (strokes, dots) */
  --brass-text: #8a5f14; /* brass for TEXT on light tints */
  --shadow-ink: rgb(14 28 38 / 45%);
  --chart-faint: #b7c3ca;
  --mark-light: #0097d0;
  --mark-dark: #0078a2;
  --font-logo: "Jost", "Century Gothic", "Helvetica Neue", arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", roboto, arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, menlo, consolas, monospace;
  --wrap: 1180px;

  /* Type scale: h1 home / h1 page / h2 section / h3 card / h3 list item */
  --fs-h1-home: clamp(38px, 5.4vw, 64px);
  --fs-h1: clamp(34px, 4.6vw, 54px);
  --fs-h2: clamp(28px, 3.4vw, 40px);
  --fs-h3: 20px;
  --fs-h3-sm: 18px;

  /* Space between a small blue label and whatever it introduces. One value site-wide. */
  --label-gap: 18px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b141a;
    --surface: #121f28;
    --ink: #e7edf0;
    --ink-soft: #9aabb4;
    --line: #24343f;
    --rule-strong: #5a6d77;
    --harbour: #3db0dd;
    --harbour-soft: #13303d;
    --brass: #d9a54e;
    --chart-faint: #44565f;
    --mark-light: #33b1e3;
    --mark-dark: #0090c5;
    --accent-text: #3db0dd;
    --brass-text: #d9a54e;
    --shadow-ink: rgb(0 0 0 / 60%);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b141a;
  --surface: #121f28;
  --ink: #e7edf0;
  --ink-soft: #9aabb4;
  --line: #24343f;
  --rule-strong: #5a6d77;
  --harbour: #3db0dd;
  --harbour-soft: #13303d;
  --brass: #d9a54e;
  --chart-faint: #44565f;
  --mark-light: #33b1e3;
  --mark-dark: #0090c5;
  --accent-text: #3db0dd;
  --brass-text: #d9a54e;
  --shadow-ink: rgb(0 0 0 / 60%);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* Safety rule: the page never scrolls sideways on phones. "clip" keeps the sticky header working. */
html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0; /* with large text settings the brand shrinks and wraps; the menu button never moves */
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

.brand svg {
  width: 40px;
  height: 33px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand strong {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.brand-text > span {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand-text .tl {
  white-space: nowrap;
}

/* Smaller screens: one phrase per line, no stray separator */
@media (width <= 960px) {
  .brand-text .tl {
    display: block;
  }

  .brand-text .tl-sep {
    display: none;
  }
}

@media (width <= 400px) {
  .brand-text > span {
    letter-spacing: 0.04em;
  }

  /* Smallest phones: a tighter gap keeps each tagline phrase on one line at normal text size */
  .site-header .wrap {
    gap: 12px;
  }
}

/* Phones: each tagline phrase may wrap if the visitor uses a large text size */
@media (width <= 560px) {
  .brand-text .tl {
    white-space: normal;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent-text);
}

.nav .btn {
  color: var(--surface);
  font-weight: 600;
}

/* The menu's blue hover must not reach the Contact button: its text stays white on blue */
.nav .btn:hover {
  color: var(--surface);
}

.nav-toggle {
  display: none;
  flex: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--harbour);
  color: var(--surface);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--harbour);
}

.btn:hover {
  filter: brightness(1.08);
}

/* Hero */
.hero {
  padding-block: 72px 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-h1-home);
  font-weight: 700;
}

.hero .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 22px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-copy {
  min-width: 0;
}

/* The label above a page headline */
.hero .eyebrow {
  margin-bottom: var(--label-gap);
}

/* Headers with a visual (Home, Business intelligence): text and visual start on the same line */
.hero:not(.page-hero) .wrap,
.page-hero.with-visual .wrap:first-of-type {
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 20px 14px;
  min-width: 0;
  box-shadow: 0 18px 40px -28px var(--shadow-ink);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-head .title {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel-head .delta {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.panel svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.panel .legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-data);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid;
  vertical-align: middle;
  margin-right: 6px;
}

.legend .ty {
  border-color: var(--harbour);
}

.legend .fc {
  border-color: var(--brass);
  border-top-style: dashed;
}

.legend .ly {
  border-color: var(--chart-faint);
}

.panel .note {
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.c-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.c-axis {
  fill: var(--ink-soft);
  font-family: var(--font-data);
  font-size: 10px;
}

.c-ly {
  fill: none;
  stroke: var(--chart-faint);
  stroke-width: 2;
}

.c-ty {
  fill: none;
  stroke: var(--harbour);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.c-ty-area {
  fill: var(--harbour-soft);
  stroke: none;
}

.c-fc {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
}

.c-dot {
  fill: var(--brass);
}

.c-today {
  stroke: var(--ink-soft);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.c-label {
  fill: var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
}

/* Sections */
section {
  padding-block: 80px;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 46em;
  margin-bottom: 44px;
}

/* Labels in section heads and cards sit in a 14px-gap layout; top up to the site-wide label gap */
.section-head > .eyebrow,
.aud-card > .eyebrow {
  margin-bottom: calc(var(--label-gap) - 14px);
}

.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 650;
}

.section-head p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 18px;
}

.rule {
  border-top: 1px solid var(--line);
}

/* What Insight does: three capabilities */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}

.cap {
  padding: 26px 28px 0 0;
  min-width: 0;
}

.cap + .cap {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.cap h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  margin-bottom: 10px;
}

.cap p {
  color: var(--ink-soft);
  font-size: 16px;
}

.cap .unit {
  font-family: var(--font-data);
  font-size: 11.5px;
  color: var(--accent-text);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* Services */
.services {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.svc {
  position: relative;
  background: var(--surface);
  padding: 28px;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.svc .tag {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.svc h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
}

.svc p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.svc.platform .tag {
  color: var(--accent-text);
}

/* Platforms (Insight, C-Breez) carry a blue top edge so they read as products at a glance */
.svc.platform {
  box-shadow: inset 0 3px 0 var(--harbour);
}

/* Service cards are links: the whole card is clickable (stretched link), and the title turns blue on hover */
.svc h3 a {
  color: inherit;
  font-size: var(--fs-h3);
  font-weight: inherit;
  text-decoration: none;
  white-space: normal;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Every card (class "card"): title turns blue on hover. One rule for all cards; enforced by check_dist.py */
.card h3 {
  transition: color 0.2s ease;
}

.card:hover h3,
.card:active h3 {
  color: var(--accent-text);
}

/* Touch screens have no hover: a tap gives the same feedback (lift is in the motion block) */
@media (hover: none) {
  .card {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Keyboard focus ring on the whole card. :focus-visible means keyboard only: a tap or click
   focuses the link too, but must not show the ring (docs/COMPONENTS.md). */
.svc:has(.card-link:focus-visible) {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.svc .card-link:focus-visible {
  outline: none;
}

.svc a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Audiences */
.aud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.aud-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  background: var(--surface);
  display: flex;
  gap: 14px;
  min-width: 0;
  flex-direction: column;
}

.aud-card h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
}

.aud-card p {
  color: var(--ink-soft);
}

.aud-card ul {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 15.5px;
}

.aud-card li {
  padding-left: 18px;
  position: relative;
}

.aud-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--harbour);
}

.aud-card .honest {
  font-size: 14.5px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--ink-soft);
}

/* Credibility */
.cred {
  padding-block: 88px;
}

.cred .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.cred .years {
  font-family: var(--font-display);
  font-size: clamp(88px, 12vw, 150px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--accent-text);
  letter-spacing: -0.04em;
}

.cred .years small {
  display: block;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 14px;
}

.cred blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 24em;
}

.cred .sub {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 40em;
}

.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.logo-slot {
  border-top: 1px solid var(--line);
  min-height: 72px;
  display: grid;
  place-items: center start;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 14px 4px 0;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* CTA */
.cta {
  background: var(--ink);
  color: var(--bg);
}

.cta .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: var(--fs-h2);
  font-weight: 650;
  max-width: 18em;
}

.cta p {
  color: color-mix(in srgb, var(--bg) 75%, var(--ink));
  margin-top: 12px;
  max-width: 36em;
}

.cta .btn {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

/* Footer */
.site-footer {
  padding-block: 56px 40px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-title {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 500;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.foot-grid a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-grid a:hover {
  color: var(--accent-text);
}

.foot-base {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* Stub pages */
.stub {
  padding-block: 120px;
}

.stub h1 {
  font-size: var(--fs-h1);
  margin-top: 14px;
}

.stub p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 40em;
}

.stub .actions {
  margin-top: 28px;
}

@media (width <= 960px) {
  .hero .wrap,
  .cred .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width <= 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 14px;
    justify-content: center;
    border-bottom: 1px solid var(--harbour);
  }

  .caps,
  .aud {
    grid-template-columns: 1fr;
  }

  .cap,
  .cap + .cap {
    padding: 24px 0;
    border-left: 0;
  }

  .cap + .cap {
    border-top: 1px solid var(--line);
  }
}

@media (width <= 560px) {
  section {
    padding-block: 56px;
  }

  .hero {
    padding-block: 44px;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: company line full width, then the link columns side by side */
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-block: 40px 32px;
  }

  .logos {
    grid-template-columns: 1fr 1fr;
  }

  .aud-card {
    padding: 24px;
  }

  /* The last item's line sat just above the section edge and read as a double line */
  .feature-list > div:last-child {
    border-bottom: 0;
  }
}

/* Inner pages */
.page-hero .wrap:first-of-type {
  grid-template-columns: 1fr;
}

.page-hero .hero-copy {
  max-width: 52em;
}

.page-hero h1 {
  font-size: var(--fs-h1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 0;
  border-top: 1px solid var(--rule-strong);
}

.stats > div {
  padding: 22px 24px 0 0;
  min-width: 0;
}

.stats > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stats dt {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stats dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.split .section-head {
  margin-bottom: 0;
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 38em;
  min-width: 0;
}

.prose p {
  font-size: 18px;
  color: var(--ink-soft);
}

.prose p:last-child {
  color: var(--ink);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.qa {
  background: var(--surface);
  padding: 28px;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.qa h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
}

.qa p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-strong);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 22px 24px 0 0;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.steps li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--accent-text);
  letter-spacing: 0.08em;
}

.steps h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
}

.steps p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.engage {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  min-width: 0;
  counter-reset: engage;
}

.engage > div {
  display: grid;
  grid-template-columns: 2.2em 11em 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: engage;
}

.engage h3 {
  font-size: var(--fs-h3-sm);
  font-weight: 650;
  color: var(--accent-text);
}

.engage p {
  color: var(--ink-soft);
  font-size: 16px;
}

.faq {
  border-top: 1px solid var(--rule-strong);
  min-width: 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--font-data);
  font-size: 20px;
  color: var(--accent-text);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 0 20px;
  color: var(--ink-soft);
  max-width: 40em;
}

@media (width <= 960px) {
  .qa-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .steps li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (width <= 640px) {
  .stats,
  .qa-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .stats > div,
  .stats > div + div,
  .steps li,
  .steps li + li {
    padding: 20px 0;
    border-left: 0;
  }

  .stats > div + div,
  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .engage > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Platform hero: illustrative morning brief */
.page-hero.with-visual .wrap:first-of-type {
  grid-template-columns: 1.15fr 1fr;
}

.page-hero.with-visual .hero-copy {
  max-width: none;
}

.brief {
  padding: 22px 22px 16px;
  margin: 0;
}

.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.brief .title {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brief .when {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--accent-text);
}

.brief-rows {
  margin: 0;
  display: grid;
}

.brief-rows > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.brief-rows dt {
  font-size: 14.5px;
  color: var(--ink-soft);
  min-width: 0;
}

.brief-rows dd {
  margin: 0;
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.brief-rows dd.chip {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.chip.up {
  background: var(--harbour-soft);
  color: var(--accent-text);
}

.chip.warn {
  background: color-mix(in srgb, var(--brass) 16%, var(--surface));
  color: var(--brass-text);
}

.brief-spark {
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
}

.bars span {
  flex: 1;
  background: var(--harbour);
  opacity: 0.35;
  border-radius: 2px 2px 0 0;
}

.bars span:last-child {
  opacity: 1;
}

@media (width <= 960px) {
  .page-hero.with-visual .wrap:first-of-type {
    grid-template-columns: 1fr;
  }
}

@media (width <= 420px) {
  .brief-rows > div {
    grid-template-columns: 1fr auto;
  }

  .brief-rows dd.chip {
    grid-column: 2;
    justify-self: end;
  }
}

.page-hero .wrap + .wrap {
  display: block;
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.quote {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
  min-width: 0;
  height: 100%;
  align-content: space-between;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.quote blockquote p::before {
  content: "“";
  color: var(--accent-text);
  margin-right: 1px;
}

.quote blockquote p::after {
  content: "”";
  color: var(--accent-text);
}

.quote figcaption {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
  align-self: end;
}

.quote figcaption strong {
  font-weight: 600;
}

.quote figcaption span {
  color: var(--ink-soft);
}

@media (width <= 960px) {
  .quotes {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Services page */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.jump a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 12px;
  border-radius: 999px;
}

.jump a:hover {
  border-color: var(--harbour);
  color: var(--accent-text);
}

.svc-block {
  scroll-margin-top: 80px;
}

.feature-list {
  display: grid;
  border-top: 1px solid var(--rule-strong);
  min-width: 0;
}

.feature-list > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.feature-list h3 {
  font-size: var(--fs-h3-sm);
  font-weight: 650;
}

.feature-list p {
  color: var(--ink-soft);
  font-size: 16px;
}

.feature-list a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* About page */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-strong);
}

.timeline li {
  padding: 22px 24px 0 0;
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.timeline li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.timeline .yr {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timeline h3 {
  font-size: var(--fs-h3-sm);
  font-weight: 650;
}

.timeline p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.person {
  border-top: 1px solid var(--rule-strong);
  padding-top: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.person .role {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  font-weight: 650;
}

.person p:last-child {
  color: var(--ink-soft);
  font-size: 15.5px;
}

@media (width <= 960px) {
  .timeline,
  .team {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .timeline li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (width <= 560px) {
  .timeline,
  .team {
    grid-template-columns: 1fr;
  }

  .timeline li,
  .timeline li + li {
    padding: 20px 0;
    border-left: 0;
  }

  .timeline li + li {
    border-top: 1px solid var(--line);
  }
}

/* Footer cities */
.cities {
  display: inline-flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.city {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.city::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chart-faint);
}

.city.open::before {
  background: var(--harbour);
}

.city .time {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Team groups */
.team-groups {
  display: grid;
  gap: 48px;
}

.group-name {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.person .mono {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--harbour-soft);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== v2 polish ===== */

/* Brand mark as a quiet graphic device */
.hero,
.cta {
  position: relative;
  overflow: clip; /* stricter than hidden: Safari can let the rotated brand mark widen the page */
  isolation: isolate;
}

.mark-bg {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  fill: var(--harbour);
}

.hero .mark-bg {
  width: min(680px, 62vw);
  right: -7%;
  top: 2%;
  opacity: 0.075;
  transform: rotate(-4deg);
}

.cta .mark-bg {
  width: 520px;
  right: -60px;
  bottom: -150px;
  opacity: 0.16;
  fill: var(--mark-light);
}

@media (width <= 640px) {
  .hero .mark-bg {
    width: 120vw;
    right: -45%;
    top: -6%;
  }

  .cta .mark-bg {
    width: 360px;
  }
}

/* Tinted testimonials band */
.tinted {
  background: color-mix(in srgb, var(--harbour-soft) 70%, var(--bg));
  border-block: 1px solid var(--line);
}

.tinted .quote {
  border-top-color: var(--harbour);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .c-ty,
  .c-ly {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: gp-draw 1.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s forwards;
  }

  .c-ly {
    animation-delay: 0s;
    animation-duration: 1.1s;
  }

  .c-ty-area {
    animation: gp-fade 0.8s ease-out 0.9s both;
  }

  .c-fc {
    animation: gp-fade 0.6s ease-out 1.5s both;
  }

  .c-dot,
  .c-label {
    animation: gp-pop 0.5s ease-out 1.9s both;
    transform-box: fill-box;
    transform-origin: center;
  }

  .bars span {
    transform-origin: bottom;
    animation: gp-grow 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) both;
  }

  .bars span:nth-child(n) {
    animation-delay: calc(var(--i, 0) * 40ms + 200ms);
  }

  .btn {
    transition:
      transform 0.15s ease,
      filter 0.15s ease;
  }

}

/* Buttons lift slightly on mouse hover. Cards never move (docs/COMPONENTS.md): their only hover
   effect is the blue title, so the 1px lines between cards always stay intact. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

@keyframes gp-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes gp-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes gp-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gp-grow {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* Home hero: layered product shot. Pace chart behind, executive brief in front. */
.hero-stack {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-width: 0;
}

.hero-stack .pace {
  grid-column: 3 / 13;
  grid-row: 1;
  margin: 0;
  padding: 22px 22px 84px; /* the brief card overlaps this empty strip, never the chart */
}

/* In the layered version the lines are labelled directly, so the legend and caption go */
.hero-stack .pace .legend,
.hero-stack .pace .note {
  display: none;
}

.hero-stack .front {
  grid-column: 1 / 11;
  grid-row: 2;
  margin-top: -72px;
  z-index: 1;
  box-shadow: 0 28px 60px -30px var(--shadow-ink);
}

.hero-stack .front .note {
  margin-top: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stack .front {
    animation: gp-rise 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) 0.5s both;
  }
}

@keyframes gp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (width <= 960px) {
  .hero-stack {
    max-width: 640px;
  }
}

/* Phones: no header visuals (Home, Business intelligence); they turn into a screen-long dashboard */
@media (width <= 560px) {
  .hero-stack,
  .page-hero.with-visual .brief {
    display: none;
  }

  /* Cards stack in one column, where the platform top edge would read as a divider */
  .svc.platform,
  .svc.platform:hover {
    box-shadow: none;
  }
}

/* Colour accents: blue for wayfinding labels and one key phrase per page title */
.hero h1 .accent {
  color: var(--accent-text);
}

.engage > div::before {
  content: "0" counter(engage);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--accent-text);
  padding-top: 4px;
}

@media (width <= 640px) {
  .engage > div {
    grid-template-columns: 1fr;
  }
}

/* Who it's for: equal-height cards, buttons aligned at the bottom and clearly clickable */

.aud-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.btn.outline {
  background: transparent;
  color: var(--accent-text);
  border: 1.5px solid var(--harbour);
}

.btn.outline::after {
  content: "→";
  transition: transform 0.2s ease;
}

.btn.outline:hover {
  background: var(--harbour);
  color: var(--surface);
  filter: none;
}

.btn.outline:hover::after {
  transform: translateX(3px);
}

.aud-card p.eyebrow {
  color: var(--accent-text);
  font-size: 13.5px;
}

/* Client list */
.client-list {
  margin-top: 64px;
  display: grid;
  gap: 0;
}

.client-list .eyebrow {
  margin-bottom: var(--label-gap);
}

.cl-row {
  display: grid;
  grid-template-columns: 12em 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--harbour) 30%, var(--line));
}

.cl-label {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 5px;
}

.cl-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}

.cl-row li:not(:last-child)::after {
  content: "·";
  color: var(--accent-text);
  margin: 0 14px;
}

@media (width <= 640px) {
  .cl-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cl-row ul {
    font-size: 17px;
  }
}

@supports (grid-template-rows: subgrid) {
  .quotes {
    grid-template-rows: auto auto;
    row-gap: 0;
  }

  .quote {
    grid-row: span 2;
    grid-template-rows: subgrid;
    height: auto;
    row-gap: 22px;
  }

  .quote figcaption {
    align-self: start;
  }
}

@media (width <= 960px) {
  .quotes {
    grid-template-rows: none;
    row-gap: 36px;
  }

  .quote {
    grid-row: auto;
    grid-template-rows: auto auto;
  }
}

/* Legal page */
.facts {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--rule-strong);
  min-width: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: 12em 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}

.facts dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.legal-text h3 {
  font-size: var(--fs-h3-sm);
  font-weight: 650;
  margin-top: 10px;
}

.legal-text p {
  color: var(--ink-soft);
  font-size: 16px;
}

.legal-text p:last-child {
  color: var(--ink-soft);
}

.missing {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--brass-text);
  background: color-mix(in srgb, var(--brass) 16%, var(--surface));
  padding: 2px 8px;
  border-radius: 4px;
}

@media (width <= 640px) {
  .facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 15px;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
}

.field textarea {
  resize: vertical;
  min-height: 160px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--harbour);
}

.field.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.contact-form .btn {
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1.6; /* <button> doesn't inherit it; match the link buttons */
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.form-status.ok {
  color: var(--accent-text);
  font-weight: 600;
}

.form-status.error {
  color: var(--brass-text);
  font-weight: 600;
}

@media (width <= 560px) {
  .contact-form {
    padding: 20px;
  }
}

/* Keyboard users: first Tab shows a link straight to the page content */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--accent-text);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 12px;
}
