:root {
  --ink: #000;
  --ink-soft: #1a1a1a;
  --body: #757575;
  --canvas: #fff;
  --canvas-soft: #f5f5f5;
  --hairline: #e0e0e0;
  --accent: #E32721;
  --accent-deep: #b31d18;
  /* Brighter red for accents sitting on dark / image backgrounds (WCAG-comfortable). */
  --accent-on-dark: #F5544A;
  --font-display: "Special Gothic Expanded One", "Arial Narrow", sans-serif;
  --font-body: "Special Gothic", system-ui, sans-serif;
  --font-sans: "Special Gothic", system-ui, sans-serif;
  /* Grid system — one container width + a shared gutter scale (4px base). */
  --container: 1200px;
  --edge: 20px;        /* outer page margin (mobile) */
  --edge-lg: 40px;     /* outer page margin (desktop) */
  --gutter: 40px;      /* column gutter */
  --gutter-row: 48px;  /* row gutter for card grids */
  --gutter-sm: 24px;   /* tight gutter for stacked/list contexts */
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}
.wrap.is-flush { padding-left: 0; padding-right: 0; }
.reading { max-width: 720px; }

/* small spacing/layout helpers used across pages */
.mt-block { margin-top: 28px; }
.mt-field { margin-top: 20px; }
.section-title.tight { margin-bottom: 32px; }
.aside-media.pushed { margin-top: 8px; }
.form-heading { font-size: 15px; margin-bottom: 20px; }
.hero-content .lead { color: #fff; }
.home-hero .hero-content .lead { color: #fff; }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }
/* off-screen anti-spam trap */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  z-index: 1300;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  padding: 13px 22px;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 100ms cubic-bezier(0.2, 0, 0, 1);
}
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--canvas-soft); }
.btn-light { background: var(--canvas); color: var(--ink); }
.btn-light:hover { background: #eaeaea; }
.btn:active { transform: translateY(1px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.text-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  display: inline-block;
}
.text-link:hover { color: var(--accent); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-base) var(--easing-standard),
              backdrop-filter var(--duration-base) var(--easing-standard),
              border-color var(--duration-base) var(--easing-standard);
}
.site-header.scrolled {
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.site-header .brand-line { color: #fff; }
.site-header .brand-sub { color: rgba(255, 255, 255, 0.72); }
.site-header .nav-toggle span { background: #fff; }
.site-header .header-actions .btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background var(--duration-instant) var(--easing-standard),
              color var(--duration-instant) var(--easing-standard),
              border-color var(--duration-instant) var(--easing-standard);
}
.site-header .header-actions .btn:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.monogram {
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-header .brand-logo { height: 30px; }
.mobile-nav .brand-logo { height: 34px; }
.footer-brand .brand-logo { height: 44px; }
.brand-line { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.4px; }
.brand-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--body);
  margin-top: 3px;
}
.primary-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { display: none; }
.nav-toggle {
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span { height: 2px; background: #fff; display: block; }
.mobile-nav {
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mobile-nav a:first-of-type { margin-top: 4px; }
.mobile-nav a {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.mobile-nav .btn { margin-top: 16px; }

.page-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 112px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(27px, 4.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.4px;
  max-width: 18ch;
}
.page-hero .lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 20px;
}
.page-hero .hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.plate {
  background: linear-gradient(135deg, #ececec 0%, #f5f5f5 52%, #e2e2e2 100%);
  display: block;
}

/* ============ Imagery system ============ */
/* Single cohesive grayscale "legal & City of London" visual language. */
.card-media img,
.feature-media img,
.block-media img,
.media-band img,
.aside-media img,
.hero-media .hero-img { filter: grayscale(1) contrast(1.05); }

/* Hover color reveal on article/feature cards — grayscale by default,
   eases to full colour while the card is hovered or focused.
   (The transition itself lives on the existing card-image rules below so
   it composes with their scale transform instead of overriding it.) */
.article-card:hover .card-media img,
.article-card:focus-visible .card-media img,
.feature:hover .feature-media img,
.feature:focus-within .feature-media img {
  filter: grayscale(0) contrast(1.02);
}

/* Media hero (background image/video + dark tint + light text) */
.hero-media { position: relative; overflow: hidden; border-bottom: 0; color: #fff; isolation: isolate; }
.hero-media .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero-media .hero-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.62) 55%, rgba(0,0,0,0.38) 100%);
}
.hero-media h1 { color: #fff; }
.hero-media .lead { color: #e8e8e8; }
.hero-media .eyebrow { color: var(--accent); }

/* ============ Dark-background readability ============
   A brighter red for accents over dark / image surfaces, plus soft text
   shadows so headings and labels stay legible over editorial photography.
   Red-on-white contexts (cards, steps, gate, toast) keep the base --accent. */
.hero-media .eyebrow,
.section-dark .eyebrow,
.hero-media .tag,
.media-band .band-quote .attr,
.section-dark .link-accent,
.cta-bg .link-accent { color: var(--accent-on-dark); }

.hero-media .eyebrow::before,
.section-dark .eyebrow::before { background: var(--accent-on-dark); }

.footer-col a:hover,
.footer-base a:hover { color: var(--accent-on-dark); }

.hero-media h1,
.hero-media .lead,
.hero-media .eyebrow,
.hero-media .tag,
.hero-media .article-date,
.media-band .band-quote p,
.media-band .band-quote .attr {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Home video hero */
.video-hero { min-height: 86vh; display: flex; align-items: center; }
.video-hero .hero-content { width: 100%; }

/* Full-bleed image band with optional overlaid statement */
.media-band { position: relative; overflow: hidden; height: clamp(300px, 46vh, 500px); background: var(--ink); }
.media-band img { width: 100%; height: 100%; object-fit: cover; }
.media-band .band-tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.32) 100%); }
.media-band .band-quote {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.media-band .band-quote p {
  font-family: var(--font-display);
  font-size: clamp(21px, 3.2vw, 32px);
  line-height: 1.14; letter-spacing: -0.3px; color: #fff;
  max-width: 20ch;
}
.media-band .band-quote .attr {
  display: block; font-family: var(--font-sans); font-weight: 700;
  font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--accent); margin-top: 18px;
}

/* Feature card image (home) */
.feature-media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: var(--canvas-soft); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2,0,0,1), filter 550ms cubic-bezier(0.2,0,0,1); }
.feature:hover .feature-media img { transform: scale(1.04); }

/* Insight cards with thumbnail */
.article-card.has-media .card-media {
  aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 18px; background: var(--canvas-soft);
}
.article-card.has-media .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2,0,0,1), filter 550ms cubic-bezier(0.2,0,0,1); }
.article-card.has-media:hover .card-media img { transform: scale(1.04); }

/* Solution block image */
.block-media { aspect-ratio: 21 / 9; overflow: hidden; margin-bottom: 28px; background: var(--canvas-soft); }
.block-media img { width: 100%; height: 100%; object-fit: cover; }

/* Article / case-study hero image */
.article-header.hero-media {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 112px;
  padding-bottom: 64px;
}
.article-header.hero-media .article-date { color: #cfcfcf; }

/* Contact / investors supporting image */
.aside-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--canvas-soft); }
.aside-media img { width: 100%; height: 100%; object-fit: cover; }

.home-hero { padding: 56px 0 60px; }
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.0;
  letter-spacing: -0.5px;
  max-width: 16ch;
  margin-bottom: 20px;
}
.home-hero .kicker {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.home-hero .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 28px;
}

.section { padding: 52px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-soft { background: var(--canvas-soft); }
.section-dark { background: var(--ink); color: var(--canvas); }
.section-dark .eyebrow { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.3px;
  max-width: 22ch;
}
.section-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 660px;
  margin-top: 18px;
}
.section-head-rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.section-head-rule h2 { font-family: var(--font-display); font-size: 22px; }

.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }
.prose p { font-size: 17px; line-height: 1.62; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.3px;
  margin-top: 40px;
  line-height: 1.16;
}
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  margin-top: 32px;
}
.prose ul { margin: 0; padding: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.55;
}
.prose ul li + li { margin-top: 10px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.prose .lead-para { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }

.feature-grid { display: grid; gap: var(--gutter-row); margin-top: 40px; }
.feature {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
}
.feature .eyebrow { color: var(--accent); }
.feature h3 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -0.2px;
  margin: 12px 0 12px;
}
.feature p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 18px; flex: 1 0 auto; }
.feature .text-link { align-self: flex-start; margin-top: auto; }
.feature:hover .text-link { color: var(--accent); }

.audience-grid { display: grid; gap: var(--gutter-row); }
.audience .eyebrow { color: var(--accent); margin-bottom: 12px; }
.audience h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.audience p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.audience p + p { margin-top: 16px; }

.solution-block { padding: 52px 20px; border-top: 1px solid var(--hairline); scroll-margin-top: 80px; }
.solution-block .eyebrow { color: var(--accent); margin-bottom: 14px; }
.solution-block h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.3px;
  line-height: 1.1;
  max-width: 20ch;
}
.solution-block .block-body { max-width: 720px; margin-top: 18px; }
.solution-block .block-body p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.solution-block .block-body p + p { margin-top: 16px; }
.scope { margin-top: 28px; }
.scope h4, .subhead {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.scope ul { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.scope li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  font-size: 16px;
}
.scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 46px; }
.steps::before {
  content: "";
  position: absolute; left: 20px; top: 18px; bottom: 18px; width: 2px;
  background: var(--hairline);
}
/* filled trail rising to the moving marker */
.timeline-fill {
  content: "";
  position: absolute; left: 20px; top: 18px; width: 2px; height: 0;
  background: var(--accent); z-index: 1;
  transition: height 160ms linear;
}
/* scroll-progress marker */
.timeline-progress {
  position: absolute; left: 20px; top: 0; width: 20px; height: 20px;
  margin-left: -9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--canvas), 0 0 0 6px rgba(227,39,33,0.28);
  z-index: 4; pointer-events: none;
  transform: translateY(18px);
  transition: transform 160ms linear;
}
.step { position: relative; display: block; margin-bottom: 24px; }
.step:last-child { margin-bottom: 0; }
.step-body {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 34px -22px rgba(0,0,0,0.22);
  padding: 24px 26px;
  max-width: 720px;
  transition: box-shadow 300ms cubic-bezier(0.2,0,0,1), border-color 300ms;
}
.step:hover .step-body { box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 22px 46px -22px rgba(0,0,0,0.28); }
.step::before {
  content: "";
  position: absolute; left: -34px; top: 28px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--canvas); border: 3px solid var(--hairline);
  box-shadow: 0 0 0 5px var(--canvas);
  z-index: 2;
  transition: transform 420ms cubic-bezier(0.2,0,0,1), border-color 380ms, background 380ms;
}
.step.active::before { border-color: var(--accent); background: var(--accent); transform: scale(1.06); }
.step.active .step-body { border-color: rgba(227,39,33,0.35); box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 22px 46px -22px rgba(0,0,0,0.3); }
/* progressive entrance — active only when JS opts in, so no-JS shows everything */
.steps.reveal .step { opacity: 0; transform: translateY(22px); transition: opacity 640ms cubic-bezier(0.2,0,0,1), transform 640ms cubic-bezier(0.2,0,0,1); }
.steps.reveal .step.in-view { opacity: 1; transform: none; }
.step-meta { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.step-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
}
.step-time {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--body);
}
.step h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.2px; margin: 6px 0 4px; }
.step .step-body { max-width: 720px; }
.step .step-body p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.step .step-body p + p { margin-top: 14px; }
.step .step-body h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  margin-top: 18px;
  margin-bottom: 2px;
}

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.2px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  padding: 0 40px 22px 0;
  max-width: 720px;
}

.cta-band { padding: 96px 20px; }
/* Vertical rhythm for the dark CTA band — scoped so it isn't reset by the
   `.wrap { padding: 0 40px }` override at ≥900px; responsive via clamp. */
.section-dark .cta-band { padding-top: clamp(104px, 13vw, 184px); padding-bottom: clamp(80px, 8vw, 128px); }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.6vw, 32px);
  letter-spacing: -0.3px;
  line-height: 1.1;
  max-width: 20ch;
  margin-bottom: 20px;
}
.cta-band p { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; margin-bottom: 26px; }
.section-dark .cta-band p { color: #c8c8c8; }

/* CTA band with background image (Solutions "Not Sure…") */
.section-dark.cta-bg { position: relative; overflow: hidden; isolation: isolate; }
.cta-bg .cta-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05);
}
.cta-bg .cta-bg-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.78) 55%, rgba(12,12,12,0.6) 100%);
}
.cta-bg .cta-band p { color: #d6d6d6; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.filter-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--body);
  margin-right: 4px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink);
}
.filter-btn:hover { background: var(--canvas-soft); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

.article-grid { display: grid; gap: 4px; }
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}
.article-card:hover { background: var(--canvas-soft); }
/* Image cards in the Insights grid sit on white — skip the grey fill so the
   hover reads as the clean image zoom + colour reveal (as on the home page,
   where the section is already grey and the fill is invisible). */
.article-grid .article-card.has-media:hover { background: transparent; }
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.tag {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.article-date { font-family: var(--font-sans); font-size: 13px; color: var(--body); }
.article-card h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.16;
  letter-spacing: -0.3px;
  max-width: 28ch;
}
.article-card p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin-top: 12px; max-width: 60ch; }
.article-card .more {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  padding-top: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.article-card:hover .more { color: var(--accent); }

.article-header { padding: 52px 0 32px; border-bottom: 1px solid var(--hairline); }
.article-header .article-meta { margin-bottom: 18px; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.4px;
  max-width: 22ch;
}
.article-body { padding: 44px 0 60px; }
.disclaimer {
  border-left: 3px solid var(--accent);
  background: var(--canvas-soft);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 36px;
}
.back-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
  display: inline-block;
  margin-top: 44px;
}
.back-link:hover { color: var(--ink); }

.form-layout { display: grid; gap: var(--gutter-row); }
.form { max-width: 720px; }
.field-grid { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .fieldset-legend {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--body); }
.req { color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; }
.fieldset-legend { margin-bottom: 14px; display: block; }
.check-grid { display: grid; gap: 10px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
}
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.form-actions { margin-top: 8px; }

.contact-aside { border-top: 2px solid var(--ink); padding-top: 24px; }
.contact-aside h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 6px;
}
.contact-aside .detail { margin-bottom: 22px; }
.contact-aside .detail p { font-size: 17px; line-height: 1.5; }
.contact-aside a { color: var(--accent); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.gate-box {
  background: var(--canvas);
  max-width: 560px;
  width: 100%;
  padding: 36px 28px;
  border-top: 4px solid var(--accent);
}
.gate-box .monogram { margin-bottom: 20px; }
.gate-box .gate-logo { height: 46px; margin: 0 auto 22px; }
.gate-box h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.3px; margin-bottom: 18px; }
.gate-box p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.gate-actions { display: flex; gap: 12px; margin-top: 24px; }

.site-footer { background: var(--ink); color: var(--canvas); padding: 76px 0 34px; border-top: 3px solid var(--accent); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: var(--gutter-row); }
.footer-lead { display: flex; flex-direction: column; gap: 22px; max-width: 360px; }
.footer-lead .brand { margin: 0; }
.footer-lead .brand-logo { height: 46px; }
.footer-loc { font-family: var(--font-sans); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #8a8a8a; margin: 0; }
.footer-disclaimer { font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: #8a8a8a; margin: 0; }

.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter-row) var(--gutter); }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 {
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase; color: #7d7d7d;
  margin: 0 0 4px;
}
.footer-col a {
  font-family: var(--font-display); font-size: 17px; letter-spacing: -0.2px;
  text-decoration: none; color: var(--canvas); width: fit-content;
  transition: color var(--duration-instant) var(--easing-standard);
}
.footer-col a:hover { color: var(--accent); }

.footer-base {
  border-top: 1px solid #2a2a2a;
  margin-top: 56px;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-base p { font-family: var(--font-sans); font-size: 12px; line-height: 1.55; color: #8a8a8a; }
.footer-base a { color: #b0b0b0; text-decoration: none; }
.footer-base a:hover { color: var(--accent); }

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
  .footer-base p:first-child { max-width: 620px; }
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1100;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  animation: toast-in 240ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.toast strong { display: block; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0.3px; }
.toast span { font-family: var(--font-sans); font-size: 14px; color: var(--ink-soft); }
.toast-close { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--body); }
.toast.toast-success { border-left-color: #1f8a5b; }
.toast.toast-error { border-left-color: var(--accent); }
.btn.is-loading { opacity: 0.72; cursor: progress; pointer-events: none; }

@media (min-width: 640px) {
  .field-grid.two { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .toast { left: auto; width: 380px; }
  .footer-base { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 900px) {
  .wrap { padding: 0 var(--edge-lg); }
  .primary-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
  }
  .primary-nav a {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    transition: color var(--duration-instant) var(--easing-standard);
  }
  .primary-nav a:hover, .primary-nav a.active { color: #fff; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none; }

  .solution-block, .cta-band { padding-left: var(--edge-lg); padding-right: var(--edge-lg); }
  .home-hero { padding-top: 80px; padding-bottom: 84px; }
  .page-hero { padding-top: 128px; padding-bottom: 60px; }
  .section { padding-top: 72px; padding-bottom: 72px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter-row) var(--gutter); }
  .audience-grid { grid-template-columns: 1fr 1fr; gap: var(--gutter-row) var(--gutter); }
  .article-grid { grid-template-columns: 1fr 1fr; gap: var(--gutter-row) var(--gutter); }
  .article-card.has-media { padding-top: 0; }
  .contact-media-layout { grid-template-columns: 1.5fr 1fr; gap: var(--gutter); align-items: start; }
  .form-layout.split { grid-template-columns: 1.6fr 1fr; gap: var(--gutter); align-items: stretch; }
  .form-layout.split .contact-aside { display: flex; flex-direction: column; }
  .form-layout.split .contact-aside .aside-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
  .footer-top { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .steps { padding-left: 0; }
  .steps::before, .timeline-fill { left: 194px; }
  .timeline-progress { left: 194px; }
  .step { display: grid; grid-template-columns: 170px 48px 1fr; align-items: start; margin-bottom: 34px; }
  .step-meta { grid-column: 1; flex-direction: column; align-items: flex-end; text-align: right; gap: 6px; margin: 0; padding-top: 18px; }
  .step-body { grid-column: 3; padding: 28px 32px; }
  .step::before { left: 186px; top: 26px; }
}

@media (min-width: 1100px) {
  .footer-nav { justify-content: flex-end; }
}

/* ============ Subtle heading reveal ============
   Gentle fade + slight rise as headings scroll into view, plus a small
   accent-line draw on eyebrows. Only active when JS has set `reveal-ready`
   on <html> and the visitor allows motion — otherwise headings render
   fully visible and stable. */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready :is(#main h1, #main h2, #main h3, #main .eyebrow) {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 640ms cubic-bezier(0.2, 0, 0, 1),
                transform 640ms cubic-bezier(0.2, 0, 0, 1);
    will-change: opacity, transform;
  }
  html.reveal-ready :is(#main h1, #main h2, #main h3, #main .eyebrow).is-revealed {
    opacity: 1;
    transform: none;
  }
  /* Eyebrow accent tick draws in from the left without reflowing the label. */
  html.reveal-ready #main .eyebrow::before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 600ms cubic-bezier(0.2, 0, 0, 1) 140ms;
  }
  html.reveal-ready #main .eyebrow.is-revealed::before {
    transform: scaleX(1);
  }
}
/* Print and reduced-motion never hold a heading hidden. */
@media print {
  html.reveal-ready :is(#main h1, #main h2, #main h3, #main .eyebrow) {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Cookie consent banner — floating corner card */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 1200;
  display: flex;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms cubic-bezier(0.2, 0, 0, 1), transform 320ms cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-card {
  pointer-events: auto;
  width: 100%;
  max-width: 400px;
  background: var(--canvas);
  color: var(--ink);
  border-top: 3px solid var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 24px 60px -22px rgba(0,0,0,0.45);
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}
.cookie-text {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1 1 0; padding: 10px 16px; font-size: 13px; }

@media (min-width: 640px) {
  .cookie-banner { left: 28px; right: auto; bottom: 28px; }
}
