*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --ink:       #0d0f14;
  --mid:       #5a5f70;
  --faint:     #e8eaed;
  --bg:        #f7f7f5;
  --primary:   #1a3cff;
  --secondary: #6088B4;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;

  /* type scale — use only these sizes for text */
  --fs-xs:    0.8125rem;  /* 13px  uppercase labels            */
  --fs-sm:    0.9375rem;  /* 15px  nav, buttons, meta, footer  */
  --fs-md:    1rem;       /* 16px  card descriptions, notes    */
  --fs-base:  1.125rem;   /* 18px  body text                   */
  --fs-lead:  1.25rem;    /* 20px  intros, hero subtitle       */
  --fs-title: 1.375rem;   /* 22px  card titles                 */
  --fs-h3:    1.5rem;     /* 24px  h3, testimonial quote       */
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── SKIP LINK ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus { top: 1rem; }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}

nav.nav-hidden { transform: translateY(-100%); }

.logo { display: flex; align-items: center; text-decoration: none; }

.logo img { height: 1.6rem; width: auto; display: block; }

nav ul { list-style: none; display: flex; gap: 2.5rem; }

nav a {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--ink); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* top padding keeps the text clear of the fixed nav when the content is
     taller than the screen (phones) */
  padding: 7rem 4rem 6rem;
}

.hero-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 2.5rem;
}

.hero h1 em { font-style: italic; color: var(--primary); }

.hero-sub {
  max-width: 44ch;
  color: var(--mid);
  font-size: var(--fs-lead);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: background 0.2s;
}

.hero-cta:hover { background: var(--primary); }

.hero-cta { align-self: flex-start; }

/* Hero with a background image; the text sits on the image's light left side */
.hero-with-media {
  position: relative;
  isolation: isolate;
}

.hero-text { display: flex; flex-direction: column; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* blend the image into the page background behind the text */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(247,247,245,0.85) 30%, rgba(247,247,245,0) 60%);
}

/* ── SHARED ───────────────────────────────────────────── */
section { padding: 9rem 4rem; }

.section-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ── SERVICES ─────────────────────────────────────────── */
.services { background: var(--ink); color: #fff; }

.services .section-label { color: var(--secondary); }

.services h2 { color: #fff; }

.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  align-items: start;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services .cs-card-image { aspect-ratio: 4 / 3; background: #222; }

.services:not(.services-white) .cs-card-client { color: rgba(255,255,255,0.5); }

.services:not(.services-white) .cs-card-body h3 a { color: #fff; }

.services:not(.services-white) .cs-card-desc { color: rgba(255,255,255,0.65); }

.services:not(.services-white) .cs-card-body h3 a:hover {
  color: var(--secondary);
}

.services-white { background: var(--bg); color: var(--ink); }

.services-white h2 { color: var(--ink); }

.services-white .services-intro { color: var(--mid); }

.services-white .cs-card-image { background: var(--faint); }

.services-title-right .services-layout { grid-template-columns: 2fr 1fr; }

.services-title-right .services-text { order: 2; }

.services-intro {
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
}

/* ── INDUSTRIES ───────────────────────────────────────── */
/* the nav link (/#industries) lands past part of the section's 9rem top
   padding, leaving just enough room for the fixed nav */
#industries { scroll-margin-top: -4rem; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 3rem;
}

.industry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--faint);
}

.industry h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.2;
  margin: 1.5rem 0 0.6rem;
}

.industry p { font-size: var(--fs-base); line-height: 1.7; color: var(--mid); }

.industry .section-more { margin-top: 1rem; }

/* ── CASE STUDY CARDS ─────────────────────────────────── */
.cs-card { display: flex; flex-direction: column; }

.cs-card-image {
  aspect-ratio: 80 / 105;
  width: 100%;
  overflow: hidden;
  background: var(--faint);
  margin: 0;
  position: relative;
}

.cs-card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.cs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-card-image.fit-contain { background: #fff; }

.cs-card-image.fit-contain img { object-fit: contain; padding: 1.5rem; }

.cs-card-copyright {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6875rem;
  color: rgba(200, 200, 200, 0.75);
  padding: 0.3rem 0.15rem;
  pointer-events: auto;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  font-style: normal;
}

.cs-card-copyright a {
  color: inherit;
  text-decoration: none;
}

.cs-card:hover .cs-card-image img { transform: scale(1.03); }

.cs-card-body { padding: 1.2rem 0 0; }

.cs-card-client {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.cs-card-body h3 {
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 1.2;
}

.cs-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.cs-card-body h3 a:hover { color: var(--primary); }

.section-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1em;
  transition: color 0.2s, border-color 0.2s;
}

.section-more:hover { color: var(--primary); border-color: var(--primary); }

/* ── CONTACT ──────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8rem;
  align-items: start;
}

.contact-extra {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--mid);
  font-size: var(--fs-md);
}

.contact-extra a {
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color 0.2s;
  width: fit-content;
}

.contact-extra a:hover { border-color: var(--mid); }

.contact-cert { height: 3rem; width: auto; margin-top: 0.4rem; align-self: flex-start; }

.contact h2 { margin-bottom: 0; }

.contact-details { color: var(--mid); }

.contact-details p { margin-bottom: 0.4rem; }

.contact-details a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color 0.2s;
}

.contact-details a:hover { border-color: var(--ink); }

/* contact form, under the headline */
.contact-form { margin-top: 3rem; max-width: 40rem; }

.cf-fields { display: flex; flex-direction: column; gap: 1.5rem; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.cf-field { display: flex; flex-direction: column; gap: 0.4rem; }

.cf-field label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.cf-optional { text-transform: none; letter-spacing: 0; font-weight: 400; }

.cf-field input,
.cf-field textarea {
  font: inherit;
  font-size: var(--fs-md);
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd3d8;
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s;
}

.cf-field textarea { resize: vertical; min-height: 8rem; }

.cf-field input:focus,
.cf-field textarea:focus { outline: none; border-color: var(--ink); }

.cf-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--mid);
}

.cf-consent input { margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--ink); }

.cf-consent a { color: var(--ink); }

.contact-form button { border: none; cursor: pointer; font-family: var(--sans); }

.contact-form button:disabled { opacity: 0.6; cursor: wait; }

/* honeypot, kept out of sight and out of the layout */
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-status { margin-top: 1rem; font-size: var(--fs-md); color: var(--ink); }

.cf-status:empty { display: none; }

.cf-status.is-error { color: #b42318; }

.contact-form.is-sent .cf-fields { display: none; }

.contact-form.is-sent .cf-status { margin-top: 0; font-size: var(--fs-base); }

/* ── CLIENTS & TESTIMONIALS ───────────────────────────── */
.clients { padding: 9rem 4rem; }

.clients-marquee {
  overflow: hidden;
  margin-top: 3rem;
  -webkit-mask-image: linear-gradient(
    to right, transparent, black 8%, black 92%, transparent
  );
  mask-image: linear-gradient(
    to right, transparent, black 8%, black 92%, transparent
  );
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: clients-scroll 40s linear infinite;
}

.clients-marquee:hover .clients-track { animation-play-state: paused; }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo {
  height: 4rem;
  width: auto;
  display: block;
}

.testimonials-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
  margin-top: 6rem;
}

.testimonials-row h2 { margin-bottom: 0; }

.testimonials-list { list-style: none; }

/* Stack carousel items in one cell so the list keeps the height of the
   longest item and the controls stay put (applied once JS has loaded). */
.carousel-ready .testimonials-list { display: grid; }
.carousel-ready .testimonial-item  { grid-area: 1 / 1; }
.carousel-ready .testimonial-item.is-inactive { visibility: hidden; }

.testimonial-item blockquote p {
  font-size: var(--fs-h3);
  line-height: 1.45;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.testimonial-item blockquote footer strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--ink);
  font-weight: 600;
}

.testimonial-item blockquote footer span {
  font-size: var(--fs-sm);
  color: var(--mid);
}

.carousel-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.carousel-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--faint);
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--mid);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-controls button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ── ARTICLE (single) ─────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  padding: 9rem 4rem 8rem;
  align-items: start;
}

.page-sidebar {
  position: sticky;
  top: 8rem;
}

.page-sidebar h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-date {
  font-size: var(--fs-sm);
  color: var(--mid);
  letter-spacing: 0.04em;
}

.article-intro {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--mid);
  margin-top: 1rem;
}

.article-body { line-height: 1.85; }

.article-body > * + * { margin-top: 1.5rem; }

.article-body h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.article-body h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 2rem;
}

.article-body p { color: var(--ink); }

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  color: var(--ink);
}

.article-body li + li { margin-top: 0.4rem; }

.article-body blockquote {
  border-left: 3px solid var(--faint);
  padding-left: 1.5rem;
  color: var(--mid);
  font-style: italic;
}

.article-body pre {
  background: var(--ink);
  color: #e8eaed;
  padding: 1.5rem;
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.article-body code {
  font-size: 0.85em;
  background: var(--faint);
  padding: 0.1em 0.35em;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Figures on case-study pages */
.article-figure { margin: 2.5rem 0 0; }

/* Case-study page: large cover image across the page */
.cs-cover { margin: 0; padding: 7rem 4rem 0; }

.cs-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 70svh;
  object-fit: cover;
  background: var(--faint);
}

.cs-cover figcaption { margin-top: 0.5rem; color: var(--mid); }

.page-layout-after-cover { padding-top: 4rem; }

/* Case-study header split in two: title block in the left third, image in
   the right two thirds (cover_image.layout: "beside"); same columns as the
   text below */
.cs-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  padding: 8rem 4rem 0;
}

.cs-header-text { order: -1; position: static; }

/* Text on the left, image on the right ({{< split >}} shortcode) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.split-text > * + * { margin-top: 1.5rem; }

.split-media { margin: 0; }

.split-media img { display: block; width: 100%; height: auto; }

.cs-header-media { position: relative; margin: 0; }

.cs-header-media img,
.cs-header-media video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 75svh;
  object-fit: cover;
  object-position: right center;
}

/* the image fades to white on its left: blend that edge into the page */
.cs-header-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(247,247,245,0) 25%);
}

.cs-header-media.no-fade::after { display: none; }
.cs-header-media.no-fade img,
.cs-header-media.no-fade video { object-fit: contain; }

/* Case-study page: two smaller images side by side after the text */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.cs-gallery .article-figure { margin: 0; }

.cs-gallery .article-figure img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: var(--faint);
}

.cs-gallery .article-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink);
}

.cs-gallery .fit-contain img,
.cs-gallery .fit-contain video { object-fit: contain; }

.cs-gallery .bg-black img,
.cs-gallery .bg-black video { background: #000; }
.cs-gallery .bg-white img { background: #fff; }

/* Collapsed image credits at the end of a case-study page */
.image-credits {
  margin-top: 3rem;
  font-size: var(--fs-xs);
  color: var(--mid);
}

.image-credits summary {
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.image-credits ul { margin: 0.75rem 0 0; padding-left: 1.1rem; line-height: 1.6; }

.image-credits a { color: inherit; }

.article-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: left center;
}

.article-figure figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--mid);
}

.figure-credit { display: block; font-size: var(--fs-xs); opacity: 0.85; }
.figure-credit a { color: inherit; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.article-body th {
  background: var(--faint);
  color: var(--mid);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--faint);
  white-space: nowrap;
}

.article-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--faint);
  vertical-align: top;
  color: var(--ink);
}

.article-body tr:last-child td { border-bottom: none; }

.article-body tbody tr:hover { background: var(--faint); }

.article-body td[align="right"],
.article-body th[align="right"] { text-align: right; }

.article-body td[align="center"],
.article-body th[align="center"] { text-align: center; }

/* ── LIST PAGE ────────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 4rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--faint);
  padding-top: 2rem;
}

.card-meta {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.6rem;
}

.card h2 {
  font-size: var(--fs-title);
  margin-bottom: 0.75rem;
}

.card h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.card h2 a:hover { color: var(--primary); }

.card p {
  font-size: var(--fs-md);
  color: var(--mid);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card-link {
  align-self: flex-start;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1em;
  transition: color 0.2s, border-color 0.2s;
}

.card-link:hover { color: var(--primary); border-color: var(--primary); }

/* ── CASE STUDIES LIST PAGE ───────────────────────────── */
.cs-list-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  padding: 9rem 4rem;
  align-items: start;
}

.cs-list-sidebar {
  position: sticky;
  top: 8rem;
}

.cs-list-sidebar h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cs-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin-top: 2.5rem;
}

.cs-filter {
  background: none;
  border: none;
  padding: 0.35rem 0;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s;
}

a.cs-filter { text-decoration: none; }

.cs-filter:hover { color: var(--ink); }

.cs-filter.active { color: var(--ink); font-weight: 600; }

.cs-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 2rem;
}

.cs-list-card { display: flex; flex-direction: column; }

/* Same square box on every card; the whole thumbnail fits inside it
   (never cropped), with empty space above/below for wide images. */
.cs-list-card .cs-card-image { aspect-ratio: 1; background: transparent; }
.cs-list-card .cs-card-image img { object-fit: contain; object-position: center; }

.cs-list-card h2 {
  font-size: var(--fs-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.cs-list-card h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-list-card h2 a:hover { color: var(--primary); }

.cs-card-desc {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--mid);
  margin-top: 0.6rem;
}

/* ── BLOG CARDS ───────────────────────────────────────── */
.blog-card { display: flex; flex-direction: column; }

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--faint);
  margin-bottom: 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.03); }

.blog-card-body {
  border-top: 1px solid var(--faint);
  padding-top: 1rem;
  flex: 1;
}

.blog-card-body h2 { font-size: var(--fs-title); margin-bottom: 0.5rem; }

.blog-card-body h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-body h2 a:hover { color: var(--primary); }

.blog-card-body p {
  font-size: var(--fs-md);
  color: var(--mid);
  line-height: 1.75;
}

/* ── TEAM GRID ────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 1rem;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  filter: grayscale(20%);
}

.team-name {
  font-weight: 600;
  font-size: var(--fs-md);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: var(--fs-sm);
  color: var(--mid);
}

/* ── FOOTER ───────────────────────────────────────────── */
body > footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--mid);
}

hr { border: none; border-top: 1px solid var(--faint); margin: 0 4rem; }

/* ── RESEARCH ─────────────────────────────────────────── */
.research {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}

.research-text h2 { margin-bottom: 1.5rem; }

.research-legal {
  font-size: var(--fs-md);
  color: var(--mid);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 1.5rem;
}

.research-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
  padding-top: 0.5rem;
}

.funding-logo {
  max-height: 3rem;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: grayscale(30%) opacity(0.75);
  transition: filter 0.2s;
}

.funding-logo:hover { filter: grayscale(0%) opacity(1); }

.cs-funding { margin-top: 3rem; }

.cs-funding .research-logos { margin-top: 1.5rem; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* logo on the first row, links on a second row that scrolls sideways
     when it does not fit */
  nav { flex-wrap: wrap; row-gap: 0.7rem; padding: 1rem 1.5rem 0.8rem; }
  nav ul {
    width: 100%;
    gap: 1.4rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  nav ul::-webkit-scrollbar { display: none; }
  nav li { flex-shrink: 0; }
  nav a { font-size: var(--fs-xs); }
  .hero, section { padding-left: 1.5rem; padding-right: 1.5rem; }
  #industries { scroll-margin-top: -2.5rem; } /* taller two-row nav */
  .hero { padding-top: 8rem; padding-bottom: 4rem; }
  .hero-media::after {
    background: linear-gradient(to top, var(--bg) 0%, rgba(247,247,245,0.9) 55%, rgba(247,247,245,0.3) 100%);
  }
  hr { margin: 0 1.5rem; }
  .testimonials-row, .research { grid-template-columns: 1fr; gap: 4rem; }
  .research-logos { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .cf-row { grid-template-columns: 1fr; }
  .services-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-cards { grid-template-columns: 1fr; }
  .services-title-right .services-layout { grid-template-columns: 1fr; }
  .services-title-right .services-text { order: 0; }
  .industries-grid { grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-layout { grid-template-columns: 1fr; gap: 3rem; padding: 8rem 1.5rem 5rem; }
  .cs-cover { padding: 7.5rem 1.5rem 0; }
  .page-layout-after-cover { padding-top: 3rem; }
  .cs-header { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 7.5rem 1.5rem 0; }
  .cs-header-text { order: 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .cs-gallery { grid-template-columns: minmax(0, 1fr); }
  .page-sidebar { position: static; }
  .cs-list-layout { grid-template-columns: 1fr; gap: 3rem; padding: 8rem 1.5rem 5rem; }
  .cs-list-sidebar { position: static; }
  .cs-filters { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; }
  .cs-list-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
