/* ==========================================================================
   Ted Jordan — design system
   Vanilla CSS. No external requests, no webfont CDN, no tracker.
   Mobile-first. All tokens live in :root.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the live site and the logo file */
  --tj-red: #c10000;          /* exact logo red */
  --tj-red-bright: #d92d20;   /* CTA red used on the live site */
  --tj-red-deep: #8f0000;     /* hover / pressed */
  --tj-red-wash: #fdf2f2;     /* tinted surface */

  --tj-navy: #0e1b2a;         /* dark sections */
  --tj-navy-2: #1f3348;       /* dark section elevated */
  --tj-navy-3: #283340;       /* dark inputs */
  --tj-blue: #427be7;         /* "We are Ted Jordan" blue — accents, focus ring */
  --tj-blue-text: #3a6fd8;    /* same blue, darkened to clear 4.5:1 as body text */
  --tj-indigo: #4e45e4;       /* case-studies eyebrow / active filter */

  /* Neutrals */
  --ink: #15121f;
  --ink-2: #3c4552;
  --ink-3: #5d6875;
  --line: #e3e7ec;
  --line-strong: #cfd6de;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #eef1f5;

  /* On-dark */
  --on-dark: #ffffff;
  --on-dark-2: #c3cdda;
  --on-dark-3: #8d9bad;
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Typography — system stacks only, zero network fetch */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-script: "Snell Roundhand", "Brush Script MT", "Segoe Script", "Bradley Hand",
    cursive;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale — fluid, mobile-first */
  --fs-display: clamp(2.5rem, 1.55rem + 4.2vw, 5rem);
  --fs-h1: clamp(2.1rem, 1.45rem + 2.9vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 2vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.08rem + 0.75vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  --fs-lead: clamp(1.02rem, 0.96rem + 0.35vw, 1.22rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;
  --fs-eyebrow: 0.76rem;

  /* Spacing — 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Grid */
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);

  /* Radii, shadows, motion */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 42, 0.06), 0 2px 8px rgba(14, 27, 42, 0.05);
  --shadow-md: 0 2px 6px rgba(14, 27, 42, 0.07), 0 12px 28px rgba(14, 27, 42, 0.09);
  --shadow-lg: 0 4px 12px rgba(14, 27, 42, 0.09), 0 26px 60px rgba(14, 27, 42, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.008em; font-weight: 700; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--tj-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tj-red-deep); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--tj-blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--tj-red); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
/* Case studies archive: filters sit right under the hero, no dead band above them */
.section--filters { padding-block-start: 0; padding-block-end: var(--section-y); }

.section--muted { background: var(--surface-2); }

.section--dark {
  background: var(--tj-navy);
  color: var(--on-dark-2);
  position: relative;
  overflow: hidden;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--on-dark); }

.section--dark .card h1,
.section--dark .card h2,
.section--dark .card h3,
.section--dark .card h4 { color: var(--ink); }

/* Big soft arc echoing the original dark "Premium Services" band */
.section--dark::before {
  content: "";
  position: absolute;
  inset-block: -30%;
  right: -12%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tj-navy-2);
  opacity: 0.55;
  pointer-events: none;
}
.section--dark > * { position: relative; z-index: 1; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--s-6); }
}

/* Case studies archive filter facets: always a tight 2x2 grid, aligned columns */
.grid--filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-6);
  align-items: start;
}

.stack > * + * { margin-top: var(--s-4); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--tj-red);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-3); color: #fff; }

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

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tj-red);
  margin-bottom: var(--s-3);
}
.eyebrow--indigo { color: var(--tj-indigo); }
.eyebrow--light { color: #ff9d95; }
.eyebrow--ink { color: var(--ink-3); }

.script {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  transform: rotate(-4deg);
  transform-origin: left bottom;
  display: inline-block;
  margin-bottom: var(--s-2);
  opacity: 0.85;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--dark .lead { color: var(--on-dark-2); }

.accent { color: var(--tj-red); }
/* Brand red (per task 05 spec: "We are Ted Jordan" must be red, not the old theme blue) */
.accent-blue { color: var(--tj-red); }

/* Underline flourish reproducing the short red rule under headings */
.rule {
  display: block;
  width: 104px;
  height: 3px;
  background: var(--tj-red);
  border-radius: 2px;
  margin-bottom: var(--s-5);
}
.rule--center { margin-inline: auto; }

.section-head { max-width: 68ch; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .rule { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   Contrast rule: never white text/button on a light background.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Primary: red fill, white label — 6.4:1 on white */
.btn--primary { background: var(--tj-red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--tj-red-deep); color: #fff; box-shadow: var(--shadow-md); }

/* Secondary on light: red outline + RED label (never white-on-white) */
.btn--secondary {
  background: var(--surface);
  color: var(--tj-red);
  border-color: var(--tj-red);
}
.btn--secondary:hover { background: var(--tj-red); color: #fff; }

/* Ghost on light: dark label on transparent */
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* On dark surfaces: white fill with NAVY label stays readable both ways */
.btn--on-dark { background: #fff; color: var(--tj-navy); }
.btn--on-dark:hover { background: var(--surface-3); color: var(--tj-navy); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { background: #fff; color: var(--tj-navy); border-color: #fff; }

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Inline text link with arrow, as on the service cards */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--tj-red);
  text-decoration: none;
}
.link-arrow::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--tj-red-deep); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: var(--s-4) var(--gutter) var(--s-6);
}
.site-nav.is-open { display: block; }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list li { margin: 0; border-bottom: 1px solid var(--line); }

.site-nav__link {
  display: block;
  padding: var(--s-4) 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__link:hover { color: var(--tj-red); }
.site-nav__link[aria-current="page"] { color: var(--tj-red); }

.site-nav .btn { margin-top: var(--s-5); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--s-6);
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__list { display: flex; align-items: center; gap: var(--s-6); }
  .site-nav__list li { border: 0; }
  .site-nav__link { padding: 0.4rem 0; position: relative; }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--tj-red);
    transition: width var(--dur) var(--ease);
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after { width: 100%; }
  .site-nav .btn { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem);
  background:
    radial-gradient(120% 100% at 8% 0%, #fff0f8 0%, rgba(255, 240, 248, 0) 55%),
    radial-gradient(110% 110% at 92% 20%, #ddf8fe 0%, rgba(221, 248, 254, 0) 60%),
    radial-gradient(90% 120% at 65% 100%, #eaebfb 0%, rgba(234, 235, 251, 0) 60%),
    #ffffff;
}

.hero__grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); }
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
}
.hero__title .accent { color: var(--tj-red); }

.hero .lead { margin-bottom: var(--s-6); }

.hero__media { position: relative; display: grid; place-items: center; min-height: 280px; }
/* Luminous aura behind the globe — animated "points lumineux" (tâche 06.5) */
.hero__media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(76%, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(66, 123, 231, 0.28) 0%,
    rgba(66, 123, 231, 0.10) 45%,
    rgba(66, 123, 231, 0) 70%);
  animation: tj-globe-glow 5s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__globe {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  opacity: 0.9;
  animation: tj-globe-spin 64s linear infinite;
}
.hero__logo-plate {
  position: absolute;
  z-index: 2;
  width: min(74%, 330px);
  filter: drop-shadow(0 18px 34px rgba(193, 0, 0, 0.28));
}

@keyframes tj-globe-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes tj-globe-glow {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.96); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

/* Page hero for interior pages */
.page-hero {
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem);
  background:
    radial-gradient(100% 120% at 0% 0%, #fff3f3 0%, rgba(255, 243, 243, 0) 60%),
    radial-gradient(90% 120% at 100% 10%, #eef4ff 0%, rgba(238, 244, 255, 0) 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero__title { max-width: 20ch; }

.page-hero--dark {
  background: var(--tj-navy);
  border-bottom: 0;
  color: var(--on-dark-2);
  position: relative;
  overflow: hidden;
}
.page-hero--dark h1, .page-hero--dark h2 { color: var(--on-dark); }
.page-hero--dark .lead { color: var(--on-dark-2); }

/* Case studies archive: a compact hero. The dark signature is dropped, the bottom
   border stays so the hero and the filter block meet on a single crisp separator. */
.page-hero--filters {
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--ink-2); font-size: var(--fs-sm); }
.card > :last-child { margin-bottom: 0; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-5);
  border-radius: var(--r-md);
  background: var(--tj-red-wash);
  color: var(--tj-red);
  font-size: 1.4rem;
  font-weight: 800;
}
.card__icon svg { width: 26px; height: 26px; }

.card__foot { margin-top: var(--s-5); }

/* Stat / proof cards, echoing the four "award" boxes of the current homepage */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tj-red);
  margin-bottom: var(--s-2);
}
.stat-card__label { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.section--dark .stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
  box-shadow: none;
}
.section--dark .stat-card__value { color: #ff8078; }
.section--dark .stat-card__label { color: var(--on-dark-2); }

/* Pillar cards for What Makes Us Different */
.pillar {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tj-red), var(--tj-red-bright));
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
  display: block;
}
.pillar ul { padding-left: 0; list-style: none; margin-top: var(--s-4); }
.pillar li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.pillar li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--tj-red);
  font-weight: 800;
  font-size: 1.15em;
}

/* Feature split: image / text side by side, alternating */
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-3);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.split + .split { margin-top: var(--s-8); }

/* Placeholder for imagery not yet supplied */
.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  text-align: center;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--ink-3);
  background:
    repeating-linear-gradient(-45deg, var(--surface-3) 0 12px, var(--surface-2) 12px 24px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

/* --------------------------------------------------------------------------
   9. Logo strip
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-5) var(--s-7);
}
.logo-strip__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  opacity: 0.75;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.logo-strip__item:hover { opacity: 1; color: var(--ink); }
.section--dark .logo-strip__item { color: var(--on-dark-2); opacity: 0.7; }
.section--dark .logo-strip__item:hover { color: var(--on-dark); opacity: 1; }

.strip-label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-5);
}
.section--dark .strip-label { color: var(--on-dark-3); }

/* --------------------------------------------------------------------------
   9b. Logo carousel (homepage "Trusted by")
   -------------------------------------------------------------------------- */
.logo-carousel { overflow: hidden; position: relative; }
.logo-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: tj-logo-scroll 40s linear infinite;
}
.logo-carousel:hover .logo-carousel__track { animation-play-state: paused; }
.logo-carousel__logo {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-right: 4rem;
}
.logo-carousel__item--on-dark {
  background: var(--tj-navy);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.9rem;
}
@keyframes tj-logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-carousel__track { animation: none; flex-wrap: wrap; justify-content: center; }
}


/* --------------------------------------------------------------------------
   10. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.quote-card__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 0.7;
  color: var(--tj-red);
  margin-bottom: var(--s-4);
}
.quote-card blockquote {
  margin: 0 0 var(--s-5);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink-2);
  flex: 1;
}
.quote-card figcaption { margin-top: auto; }
.quote-card__name { display: block; font-weight: 800; color: var(--ink); font-style: normal; }
.quote-card__role { display: block; font-size: var(--fs-xs); color: var(--tj-red); font-style: italic; }

/* --------------------------------------------------------------------------
   11. Case studies
   -------------------------------------------------------------------------- */
.filters { border-block: 1px solid var(--line); padding-block: var(--s-5); }
/* The filters block sits directly against the hero's bottom border. Only the lower
   border remains so the two separators don't frame an empty double-line band. */
.section--filters .filters { border-block-start: 0; }
/* In the 2x2 grid the facets no longer stack, so drop the legacy vertical spacing */
.grid--filters .filter-group + .filter-group { margin-top: 0; }
.filter-group__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.chip {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--tj-red); color: var(--tj-red); }
.chip[aria-pressed="true"] {
  background: var(--tj-red);
  border-color: var(--tj-red);
  color: #fff;
}
.chip[aria-pressed="true"][data-value="all"] {
  background: var(--tj-indigo);
  border-color: var(--tj-indigo);
}

.result-count { font-size: var(--fs-sm); color: var(--ink-3); margin-block: var(--s-5); }
.result-count strong { color: var(--ink); }

.cs-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cs-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

.cs-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cs-card[hidden] { display: none; }

.cs-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--tj-navy) 0%, var(--tj-navy-2) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cs-card__cover .media-placeholder {
  background: none;
  border: 0;
  color: var(--on-dark-3);
}
.cs-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-card__kpi {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  z-index: 2;
  background: var(--tj-indigo);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.cs-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.cs-card__client {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tj-red);
  margin-bottom: var(--s-2);
}
.cs-card__title { font-size: 1.08rem; margin-bottom: var(--s-2); }
.cs-card__title a { color: var(--ink); text-decoration: none; }
.cs-card__title a:hover { color: var(--tj-red); }
.cs-card__date { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s-4); }

.tag-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: #eeedfd;
  color: var(--tj-indigo);
}

.empty-state {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--ink-3);
}

/* Single case study — hero cover + meta + KPI pill + tag row (07.5) */
.cs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-4);
}
.cs-hero__meta-item {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-3);
}
.cs-hero__meta-item + .cs-hero__meta-item::before {
  content: "·";
  margin-right: var(--s-4);
  color: var(--line-strong);
}
.cs-hero__cover {
  margin-top: var(--s-6);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cs-hero__cover img.cs-cover {
  width: 100%;
  height: auto;
  display: block;
}
.cs-hero__kpi {
  display: inline-block;
  margin-top: var(--s-4);
  background: var(--tj-red);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.insight-list {
  display: grid;
  gap: var(--s-4);
}
.insight {
  display: grid;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.insight__category {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tj-red);
}
.insight__text {
  margin: 0;
  color: var(--ink-2);
}
@media (min-width: 640px) {
  .insight { grid-template-columns: 10rem 1fr; align-items: start; }
}

.cs-body { padding-block: 72px; }

.platform-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.platform-logos__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.platform-logos__item img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.platform-logos__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}

.kpi-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .kpi-grid--1 { grid-template-columns: repeat(1, 1fr); }
  .kpi-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid--5 { grid-template-columns: repeat(5, 1fr); }
}

.kpi {
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.kpi__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--tj-red);
  margin-bottom: var(--s-2);
}
.kpi__label { font-weight: 700; color: var(--ink); font-size: var(--fs-sm); margin-bottom: var(--s-1); }
.kpi__note { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--tj-red); }

.breadcrumb { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--tj-red); }
.page-hero--dark .breadcrumb, .page-hero--dark .breadcrumb a { color: var(--on-dark-3); }
.page-hero--dark .breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   12. FAQ / accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-6) var(--s-5) 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--tj-red);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--tj-red); }
.faq__body { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 72ch; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
@media (min-width: 700px) {
  .form { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.field .req { color: var(--tj-red); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--tj-red);
  box-shadow: 0 0 0 3px rgba(193, 0, 0, 0.12);
  outline: none;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; background-image: none; cursor: pointer; }

/* Dark form — matching the current site's navy contact block */
.form--dark .field label { color: var(--on-dark); }
.form--dark .field__hint { color: var(--on-dark-3); }
.form--dark .field input,
.form--dark .field select,
.form--dark .field textarea {
  background: var(--tj-navy-3);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-dark);
}
.form--dark .field input::placeholder,
.form--dark .field textarea::placeholder { color: var(--on-dark-3); }
.form--dark .field input:focus,
.form--dark .field select:focus,
.form--dark .field textarea:focus {
  border-color: #ff8078;
  box-shadow: 0 0 0 3px rgba(255, 128, 120, 0.22);
}
.form--dark select option { background: var(--tj-navy-3); color: var(--on-dark); }

/* Honeypot: kept in the accessibility tree's blind spot, never shown to humans */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-3); }
.form--dark + .form-note,
.section--dark .form-note { color: var(--on-dark-3); }
.section--dark .form-note a { color: #ff9d95; }

.contact-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  background: rgba(255, 255, 255, 0.04);
}
.contact-card dt {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: var(--s-1);
}
.contact-card dd { margin: 0 0 var(--s-5); color: var(--on-dark); font-weight: 600; }
.contact-card dd:last-child { margin-bottom: 0; }
.contact-card a { color: #ff9d95; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--tj-navy); color: var(--on-dark-2); position: relative; overflow: hidden; }
.cta-band__inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--section-y);
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.2fr 0.8fr; } }
.cta-band h2 { color: var(--on-dark); }
.cta-band .lead { color: var(--on-dark-2); }
.cta-band__ring {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46%, 420px);
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--tj-navy); color: var(--on-dark-2); padding-top: var(--s-8); }
.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); } }

.site-footer h2 { font-size: var(--fs-h4); color: var(--on-dark); margin-bottom: var(--s-4); }
.site-footer img { width: 132px; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s-3); }
.site-footer a { color: var(--on-dark-2); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; font-size: var(--fs-sm); line-height: 1.8; }

.site-footer__bottom {
  margin-top: var(--s-7);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  font-size: var(--fs-xs);
}
@media (min-width: 760px) {
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.site-footer__legal a { font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   16. Motion
   -------------------------------------------------------------------------- */
/* Content must never depend on JS to be visible: the hidden start state is
   applied only once the script has confirmed it is running. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   16b. Enriched creatives animation
   -------------------------------------------------------------------------- */
.creatives { display: grid; place-items: center; gap: var(--s-4); padding: var(--s-4); }
.creatives__stage {
  position: relative;
  width: 320px;
  height: 600px;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}
.creatives__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s linear 500ms;
}
.creatives__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.creatives__slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: none;
}
.creatives__dots { display: flex; gap: var(--s-3); justify-content: center; }
.creatives__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--line-strong, #9aa3b2);
  transition: background 300ms var(--ease), transform 300ms var(--ease);
}
.creatives__dot:hover { transform: scale(1.2); }
.creatives__dot.is-active {
  background: var(--tj-red, #c10000);
  transform: scale(1.25);
}
.creatives__dot:focus-visible { outline: 2px solid var(--tj-red, #c10000); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .creatives__slide { transition: none; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .filters, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .hero { padding-block: 1rem; }
}
