/* =========================================================================
   Intermedika Consulting — design system
   Per brand guidelines: black main, red accent (used with restraint), grey
   neutral. Raleway for headings, Roboto for body. No serifs, no italics for
   display, no decorative type. Strict and clinical.
   ========================================================================= */

/* ---- Self-hosted fonts ------------------------------------------------- */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/raleway-500.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/raleway-600.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/raleway-700.woff2') format('woff2'); }
@font-face { font-family: 'Roboto';  font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/roboto-300.woff2') format('woff2'); }
@font-face { font-family: 'Roboto';  font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/roboto-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto';  font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/roboto-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto';  font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/roboto-700.woff2') format('woff2'); }

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Brand palette (per Intermedika Brand Guidelines) */
  --black:      #1d1d1b;      /* main colour */
  --black-2:    #0f0f0e;      /* deeper black for hover surfaces */
  --red:        #e63020;      /* PMS 179C — accent only */
  --red-2:      #c0241a;      /* hover */
  --red-text:   #cf2a1c;      /* the brand red for SMALL text: 5.3:1 on white, 4.9:1 on --grey-3, 4.5:1 on --grey-2 (the brand red itself is 4.4:1, under AA) */
  --red-text-on-dark: #f2655a; /* small red text on the black sections: 5.3:1 */
  --grey:       #d4d3d6;      /* neutral background */
  --grey-2:     #ececee;      /* lighter surface tint */
  --grey-3:     #f7f7f8;      /* whisper-light surface */
  --rule:       #e6e5e8;      /* hairline */
  --text:       #2a2a28;      /* body text — slightly off-black for legibility */
  --text-2:     #6b6c6f;      /* muted/captions */
  --white:      #ffffff;

  /* Type stacks */
  --sans-head:  'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans-body:  'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing scale (8px grid) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px; --s-12: 192px;

  /* Layout */
  --container-narrow: 720px;
  --container:        1080px;
  --container-wide:   1280px;
  --container-bleed:  1480px;

  /* Motion */
  --easing: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(29,29,27,.25);
  transition: color .15s var(--easing), text-decoration-color .15s var(--easing);
}
a:hover { color: var(--red); text-decoration-color: var(--red); }

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--sans-head);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.012em;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--black); font-weight: 600; }
em, i { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-text);
}
.lede {
  font-family: var(--sans-body);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
}
.muted { color: var(--text-2); }

.rule {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 12px;
}

/* ---- Layout ----------------------------------------------------------- */
.container        { width: 100%; max-width: var(--container);        margin: 0 auto; padding: 0 24px; }
.container--narrow{ width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.container--wide  { width: 100%; max-width: var(--container-wide);   margin: 0 auto; padding: 0 24px; }
.container--bleed { width: 100%; max-width: var(--container-bleed);  margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--dark  { background: var(--black); color: rgba(255,255,255,.78); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--red-text-on-dark); }
.section--dark a { color: var(--white); text-decoration-color: rgba(255,255,255,.35); }
.section--dark a:hover { color: var(--red); }
.section--grey { background: var(--grey-3); }

.section-head { max-width: 820px; margin: 0 0 64px; }
.section-head h2 { margin-top: 12px; }
.section-head .lede { margin-top: 20px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--black);
  border-radius: 0;
  transition: background .15s var(--easing), border-color .15s var(--easing), color .15s var(--easing);
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--small { padding: 10px 18px; font-size: 12px; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-family: var(--sans-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  transition: color .15s var(--easing), border-color .15s var(--easing);
}
.tlink::after { content: '→'; transition: transform .2s var(--easing); }
.tlink:hover { color: var(--red); border-color: var(--red); }
.tlink:hover::after { transform: translateX(3px); }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
/* Frosted-glass backdrop is rendered on a pseudo element so it does NOT
   establish a containing block for position:fixed descendants. With the
   backdrop-filter on .site-header itself, the mobile nav drawer was
   positioning relative to the 84px-tall header instead of the viewport. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  z-index: -1;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  padding: 4px 0; margin: -4px 0;   /* the 36px mark becomes a 44px touch target without making the header taller */
  text-decoration: none;
  flex-shrink: 0;   /* a long menu (Spanish, French) must never squeeze the wordmark out of shape */
}
.site-header__logo img { height: 36px; width: auto; display: block; }
@media (min-width: 720px) { .site-header__logo img { height: 40px; } }
@media (min-width: 1100px) { .site-header__logo img { height: 44px; } }
.site-header__logo:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  font-family: var(--sans-head);
  font-weight: 500;
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
}
.site-nav__link:hover { color: var(--red); text-decoration: none; }
.site-nav__link[aria-current="page"] { color: var(--red); }
.site-nav__item:has(.site-nav__sub) > .site-nav__link::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .6;
}

.site-nav__sub {
  position: absolute;
  top: calc(100% + 4px);
  left: -16px;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 14px 30px rgba(29,29,27,.08);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s var(--easing), transform .15s var(--easing), visibility .15s var(--easing);
}
.site-nav__item:hover .site-nav__sub,
.site-nav__item:focus-within .site-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav__sub li { list-style: none; }
.site-nav__sub .site-nav__link { display: block; padding: 10px 20px; letter-spacing: 0.02em; text-transform: none; font-size: 14px; font-weight: 400; }
.site-nav__sub .site-nav__link:hover { background: var(--grey-3); }

.site-nav__cta a { padding: 11px 18px; font-size: 12px; }

.site-nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 9px;   /* 26px icon + 9px each side = the 44px touch target */
  color: var(--black);
}
.site-nav__toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; }

@media (max-width: 1279px) {
  .site-nav__toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform .25s var(--easing), visibility 0s linear .25s;
    overflow-y: auto;
    visibility: hidden;
    z-index: 60;
  }
  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform .25s var(--easing), visibility 0s linear 0s;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid var(--rule); }
  .site-nav__link { display: block; padding: 18px 0; font-size: 14px; }
  .site-nav__sub {
    /* visibility: inherit, not visible: inside the CLOSED drawer (visibility: hidden) a "visible" sub-menu
       would keep its seven links reachable with the Tab key while off screen */
    position: static; opacity: 1; visibility: inherit; transform: none;
    box-shadow: none; border: 0; padding: 0 0 12px;
    background: transparent;
  }
  .site-nav__sub .site-nav__link { padding: 8px 0 8px 18px; font-size: 13px; color: var(--text); text-transform: none; letter-spacing: 0; }
  .site-nav__item:has(.site-nav__sub) > .site-nav__link::after { display: none; }
  .site-nav__cta { margin-top: 24px; }
  .site-nav__cta a { display: block; text-align: center; }
}

/* ---- Hero (image-led) ------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(98deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(96px, 14vw, 160px) 0 clamp(64px, 9vw, 112px);
  width: 100%;
}
.hero__eyebrow { color: var(--red-text-on-dark); margin-bottom: 28px; }
.hero__eyebrow .rule { background: var(--red); }
.hero__title {
  max-width: 980px;
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__title-mark { color: var(--red); }
.hero__title-line { display: block; }
.hero__lede {
  max-width: 640px;
  font-family: var(--sans-body);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero .btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.hero .btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.hero .tlink {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.hero .tlink:hover { color: var(--red); border-color: var(--red); }

.hero__meta {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 2;
  font-family: var(--sans-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
@media (max-width: 720px) { .hero__meta { display: none; } }

/* ---- Marquee ledger (numbers) ---------------------------------------- */
.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ledger__item {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
}
.ledger__item:last-child { border-right: 0; }
.ledger__value {
  display: block;
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1;
}
.ledger__value-mark { color: var(--red); }
.ledger__label {
  display: block;
  margin-top: 12px;
  font-family: var(--sans-body);
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger__item:nth-child(2n) { border-right: 0; }
  .ledger__item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* ---- Image divider (full-bleed photograph between sections) ---------- */
.image-divider {
  position: relative;
  height: clamp(280px, 38vw, 480px);
  overflow: hidden;
  background: var(--black);
}
.image-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-divider__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.45));
}
.image-divider__quote {
  max-width: 760px;
  text-align: center;
  font-family: var(--sans-head);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.012em;
  margin: 0;
}
.image-divider__cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-text-on-dark);
  font-weight: 600;
}

/* ---- Intro with photo (two-column band with image on one side) ------- */
.intro-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.intro-photo--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.intro-photo__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--grey);
}
.intro-photo--reverse .intro-photo__media { order: 2; }
.intro-photo__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.intro-photo__body { font-family: var(--sans-body); font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.intro-photo__body p + p { margin-top: 1em; }
.intro-photo__body strong { color: var(--black); }
.intro-photo__label {
  font-family: var(--sans-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--red-text);
  margin-bottom: 16px;
  display: block;
}
.intro-photo__heading {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  line-height: 1.1;
}
@media (max-width: 820px) {
  .intro-photo, .intro-photo--reverse { grid-template-columns: 1fr; gap: 28px; }
  .intro-photo--reverse .intro-photo__media { order: -1; }
  .intro-photo__media { aspect-ratio: 4 / 3; }
}

/* ---- Two-column intro ------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intro__label {
  font-family: var(--sans-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--red-text);
}
.intro__heading {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.intro__body { font-family: var(--sans-body); font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.intro__body p + p { margin-top: 1em; }
.intro__body strong { color: var(--black); font-weight: 600; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Hero variant for sub-pages (about, etc.) — shorter than home ---- */
.hero--page { min-height: clamp(440px, 60vh, 580px); }
.hero--page .hero__inner { padding: clamp(80px, 12vw, 120px) 0 clamp(48px, 7vw, 80px); }
.hero--page .hero__title { font-size: clamp(2rem, 4.8vw, 3.5rem); }

/* ---- Capability cards (linked tiles, one per service) ---------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
}
.capability {
  padding: 36px 32px 32px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background .2s var(--easing);
}
.capability:hover { background: var(--black); text-decoration: none; }
.capability:hover .capability__title { color: var(--white); }
.capability:hover .capability__body  { color: rgba(255,255,255,.78); }
.capability:hover .capability__more  { color: var(--red); }
.capability:hover .capability__more::after { transform: translateX(4px); }

.capability__num {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--red-text);
  margin-bottom: 6px;
}
.capability__title {
  font-family: var(--sans-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 4px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  transition: color .2s var(--easing);
}
.capability__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  flex-grow: 1;
  transition: color .2s var(--easing);
}
.capability__more {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  margin-top: 12px;
  transition: color .2s var(--easing);
}
.capability__more::after {
  content: '→';
  margin-left: 8px;
  transition: transform .2s var(--easing);
}

/* Force 4-up grid on desktop (about page "Four habits" section) */
.capabilities--quad { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .capabilities--quad { grid-template-columns: repeat(4, 1fr); }
}

/* Static (non-link) capability tile — disables hover flip */
.capability--static { cursor: default; }
.capability--static:hover { background: var(--white); }
.capability--static:hover .capability__title { color: var(--black); }
.capability--static:hover .capability__body { color: var(--text); }

/* ---- Sectors (Who We Help) ------------------------------------------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sector {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform .25s var(--easing), border-color .2s var(--easing);
}
.sector:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--black); }
.sector__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grey);
}
.sector__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--easing);
}
.sector:hover .sector__media img { transform: scale(1.04); }
.sector__body-wrap {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.sector__num { font-family: var(--sans-head); font-weight: 700; color: var(--red-text); font-size: 13px; letter-spacing: 0.18em; }
.sector__title { font-family: var(--sans-head); font-size: 1.4rem; font-weight: 700; color: var(--black); margin: 0; letter-spacing: -0.012em; }
.sector__body { color: var(--text); font-size: 0.98rem; line-height: 1.6; flex-grow: 1; }
.sector__link { font-family: var(--sans-body); font-size: 13px; color: var(--black); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 8px; }
.sector__link::after { content: ' →'; transition: transform .2s var(--easing); display: inline-block; }
.sector:hover .sector__link { color: var(--red); }
.sector:hover .sector__link::after { transform: translateX(3px); }
@media (max-width: 720px) { .sectors { grid-template-columns: 1fr; } }

/* ---- Who we help: single row of 5 compact text columns -------------- */
.helps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.helps__item {
  background: var(--white);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--easing);
}
.helps__item:hover { background: var(--black); text-decoration: none; }
.helps__item:hover .helps__title { color: var(--white); }
.helps__item:hover .helps__body { color: rgba(255,255,255,.78); }
.helps__item:hover .helps__link { color: var(--red); }
.helps__item:hover .helps__link::after { transform: translateX(4px); }
.helps__num {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--red-text);
}
.helps__title {
  font-family: var(--sans-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin: 4px 0 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
  transition: color .2s var(--easing);
}
.helps__body {
  font-family: var(--sans-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  flex-grow: 1;
  transition: color .2s var(--easing);
}
.helps__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  margin-top: 12px;
  transition: color .2s var(--easing);
}
.helps__link::after {
  content: '→';
  margin-left: 8px;
  transition: transform .2s var(--easing);
}
@media (max-width: 1180px) {
  .helps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .helps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .helps { grid-template-columns: 1fr; }
}

/* ---- Client story cards (clients page) ------------------------------- */
.client-story {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--rule);
}
.client-story:last-child { border-bottom: 0; }
.client-story__logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.client-story__logo img { max-height: 80px; max-width: 240px; width: auto; height: auto; }
.client-story__meta {
  display: block;
  margin-top: 14px;
  font-family: var(--sans-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}
.client-story__name {
  font-family: var(--sans-head);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--black);
  margin: 0 0 10px;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.client-story__location {
  font-family: var(--sans-body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-text);
  font-weight: 600;
  margin: 0 0 20px;
  display: block;
}
.client-story__body {
  font-family: var(--sans-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.client-story__body p { margin: 0 0 1em; }
.client-story__body strong { color: var(--black); }
.client-story__visit {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-family: var(--sans-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  transition: color .15s var(--easing), border-color .15s var(--easing);
}
.client-story__visit::after { content: '↗'; margin-left: 8px; font-size: 14px; }
.client-story__visit:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 720px) {
  .client-story { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .client-story__logo { height: auto; }
}

/* ---- Regional client lists (clients page) ---------------------------- */
.regions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.region {
  background: var(--white);
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3vw, 36px);
}
.region__name {
  font-family: var(--sans-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.region__list { list-style: none; padding: 0; margin: 0; }
.region__list li {
  font-family: var(--sans-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.region__list li:last-child { border-bottom: 0; }
.region__country {
  font-family: var(--sans-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}
@media (max-width: 720px) { .regions { grid-template-columns: 1fr; } }

/* ---- Testimonials grid (clients page) -------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.testimonial {
  background: var(--white);
  padding: clamp(28px, 3.5vw, 40px);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 3px solid var(--red);
}
.testimonial__quote {
  font-family: var(--sans-head);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--black);
  margin: 0;
  letter-spacing: -0.005em;
  font-style: normal;
}
.testimonial__quote::before { content: '\201C'; color: var(--red); margin-right: 2px; }
.testimonial__quote::after  { content: '\201D'; color: var(--red); margin-left: 2px; }
.testimonial__by {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.testimonial__name {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--black);
  letter-spacing: -0.005em;
}
.testimonial__role {
  font-family: var(--sans-body);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) { .testimonials { grid-template-columns: 1fr; gap: 18px; } }

/* ---- Contact cards (contact page) ------------------------------------ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.contact-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card__label {
  font-family: var(--sans-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-text);
  font-weight: 600;
  margin: 0 0 4px;
}
.contact-card__name {
  font-family: var(--sans-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.005em;
  margin: 0;
}
.contact-card__value {
  font-family: var(--sans-body);
  font-size: 1.0625rem;
  color: var(--black);
  text-decoration: none;
  margin-top: 6px;
}
.contact-card__value:hover { color: var(--red); }

/* ---- Team strip ------------------------------------------------------- */
.team-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
/* Four cards: two rows of two until all four fit in one row, never 3 + 1 */
@media (max-width: 863px) and (min-width: 721px) {
  .team-strip--four { grid-template-columns: repeat(2, 1fr); }
}
.team-strip__card { text-decoration: none; color: inherit; display: block; }
.team-strip__card:hover { text-decoration: none; }
.team-strip__photo {
  aspect-ratio: 4 / 5;
  background: var(--grey);
  overflow: hidden;
  margin-bottom: 18px;
}
.team-strip__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
  transition: filter .3s var(--easing), transform .3s var(--easing);
}
.team-strip__card:hover .team-strip__photo img { filter: grayscale(0%); transform: scale(1.02); }
.team-strip__name { font-family: var(--sans-head); font-size: 1.0625rem; font-weight: 700; color: var(--black); margin: 0; line-height: 1.2; letter-spacing: -0.005em; }
.team-strip__role { display: block; margin-top: 6px; font-family: var(--sans-body); font-size: 12px; color: var(--red-text); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

/* ---- Client logo wall ------------------------------------------------- */
.client-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.client-wall__cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--white);
}
.client-wall__cell img { max-width: 100%; max-height: 64px; width: auto; height: auto; filter: grayscale(100%); opacity: .65; transition: filter .2s var(--easing), opacity .2s var(--easing); }
.client-wall__cell:hover img { filter: grayscale(0%); opacity: 1; }
/* The <picture> around a logo (small WebP, original as fallback) must not become the box the logo is
   sized against. Its <source> must not become a grid item either: an empty second row pushes the logo down. */
.client-wall__cell picture, .client-detail__cell picture, .client-story__logo picture { display: contents; }
.client-wall__cell source, .client-detail__cell source, .client-story__logo source { display: none; }

/* ---- Pull quote ------------------------------------------------------- */
.pullquote {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.pullquote__text {
  font-family: var(--sans-head);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: var(--white);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.pullquote__mark {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 28px;
}
.pullquote__author { font-family: var(--sans-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); font-weight: 500; }

/* ---- News cards ------------------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.news-card { display: block; text-decoration: none; color: inherit; }
.news-card:hover { text-decoration: none; }
.news-card__meta { font-family: var(--sans-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); font-weight: 500; margin-bottom: 14px; }
.news-card__title { font-family: var(--sans-head); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--black); margin: 0 0 12px; transition: color .15s var(--easing); letter-spacing: -0.01em; }
.news-card:hover .news-card__title { color: var(--red); }
.news-card__excerpt { font-size: 0.9375rem; color: var(--text); line-height: 1.6; }

/* ---- Page hero (subpages) -------------------------------------------- */
.page-hero {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.page-hero__title {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 880px;
  margin: 24px 0 0;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.page-hero__lede { max-width: 720px; margin-top: 24px; }
/* 404.html: the page a wrong address gets */
.page-hero.notfound { padding-bottom: clamp(80px, 12vw, 160px); }
.notfound__actions { margin-top: 40px; gap: 18px 28px; }

/* ---- Service list (services index) ----------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 0;
}
.service-item {
  background: var(--white);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.service-item__num {
  font-family: var(--sans-head);
  font-weight: 700;
  color: var(--red-text);
  font-size: 14px;
  letter-spacing: 0.18em;
  line-height: 1;
}
.service-item__heading {
  font-family: var(--sans-head);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  color: var(--black);
  margin: 8px 0 0;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.service-item__body { color: var(--text); font-size: 1rem; line-height: 1.7; }
.service-item__body p + p { margin-top: 1em; }
.service-item__cta { margin-top: 20px; }
@media (max-width: 720px) { .service-item { grid-template-columns: 1fr; gap: 16px; } }

/* ---- Service detail page --------------------------------------------- */
.service-detail__hero {
  position: relative;
  padding: clamp(80px, 12vw, 144px) 0;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.service-detail__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(29,29,27,.93) 0%, rgba(29,29,27,.65) 100%);
  pointer-events: none;
}
.service-detail__hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.service-detail__hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.service-detail__hero-inner { position: relative; z-index: 1; }
.service-detail__title {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--white);
  letter-spacing: -0.022em;
  max-width: 920px;
  margin: 0 0 24px;
  line-height: 1.05;
}
.service-detail__lede {
  font-family: var(--sans-body);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  max-width: 720px;
  margin: 0;
}

.service-detail__body {
  font-family: var(--sans-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}
.service-detail__body h2 { font-family: var(--sans-head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 48px 0 16px; letter-spacing: -0.012em; }
.service-detail__body h3 { font-family: var(--sans-head); font-weight: 700; font-size: 1.25rem; margin: 32px 0 12px; }
.service-detail__body p { margin-bottom: 1.1em; }
.service-detail__body strong { color: var(--black); }
.service-detail__body ul, .service-detail__body ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.service-detail__body li { margin-bottom: 0.5em; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.feature-grid__item {
  padding: 32px 28px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--white);
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid__item:nth-child(3n) { border-right: 0; }
}
@media (max-width: 979px) and (min-width: 561px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid__item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid__item { border-right: 0; }
}
.feature-grid__title {
  font-family: var(--sans-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.feature-grid__body { font-size: 0.9375rem; color: var(--text); line-height: 1.6; }

/* ---- Team listing page ----------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px 32px;
}
.team-card { display: block; text-decoration: none; color: inherit; }
.team-card:hover { text-decoration: none; }
.team-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--grey);
  overflow: hidden;
  margin-bottom: 20px;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter .3s var(--easing), transform .3s var(--easing); }
.team-card:hover .team-card__photo img { filter: grayscale(0%); transform: scale(1.02); }
.team-card__name { font-family: var(--sans-head); font-size: 1.25rem; font-weight: 700; color: var(--black); margin: 0; line-height: 1.2; letter-spacing: -0.012em; }
.team-card__role { display: block; margin-top: 6px; font-family: var(--sans-body); font-size: 12px; color: var(--red-text); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }

/* ---- Team-member page ------------------------------------------------ */
.member-hero { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 72px); }
.member-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.member-hero__photo {
  aspect-ratio: 4 / 5;
  background: var(--grey);
  overflow: hidden;
}
.member-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-hero__meta { padding-bottom: 24px; }
.member-hero__name {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -0.025em;
  margin: 12px 0 0;
  line-height: 1.05;
}
.member-bio {
  font-family: var(--sans-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}
.member-bio p { margin-bottom: 1.25em; }
.member-bio strong { color: var(--black); }
@media (max-width: 720px) {
  .member-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .member-hero__meta { padding-bottom: 0; }
}

/* ---- News listing ---------------------------------------------------- */
.news-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
.news-card--full {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--rule);
}
.news-card__media {
  aspect-ratio: 4 / 3;
  background: var(--grey);
  overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(12%); transition: filter .3s var(--easing), transform .3s var(--easing); }
.news-card--full:hover .news-card__media img { filter: grayscale(0%); transform: scale(1.02); }
.news-card__title { font-size: clamp(1.25rem, 1.9vw, 1.625rem); }
.news-card__more { margin-top: 16px; display: inline-flex; }
@media (max-width: 720px) {
  .news-card--full { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .news-card__media { aspect-ratio: 3 / 2; }
}

/* ---- Post page ------------------------------------------------------- */
.post-header { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(32px, 4vw, 48px); }
.post-header__meta { font-family: var(--sans-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); font-weight: 500; margin-bottom: 16px; }
.post-header__title {
  font-family: var(--sans-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.022em;
  margin: 0 0 20px;
  line-height: 1.1;
  max-width: none;
}
.post-header__excerpt { margin-top: 16px; }
.post-figure {
  max-width: var(--container-bleed);
  margin: 0 auto clamp(32px, 5vw, 64px);
  padding: 0 24px;
}
.post-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body {
  font-family: var(--sans-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.post-body p { margin-bottom: 1.25em; }
.post-body p strong { color: var(--black); }
.post-body h2 { font-family: var(--sans-head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 48px 0 16px; letter-spacing: -0.012em; }
.post-body h3 { font-family: var(--sans-head); font-weight: 700; font-size: 1.25rem; margin: 32px 0 12px; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-bottom: 1.25em; }
.post-body li { margin-bottom: 0.5em; }
.post-body img { width: 100%; height: auto; margin: 32px 0; }
.post-body blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: var(--sans-head);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
  letter-spacing: -0.005em;
}
.post-body a { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.post-body a:hover { color: var(--red); }
.post-body figure { margin: 32px 0; }
.post-body figcaption { font-size: 13px; color: var(--text-2); margin-top: 8px; }

/* ---- Contact page ---------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-info h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin: 8px 0 24px; }
.contact-detail { margin-bottom: 24px; }
.contact-detail h4 { font-family: var(--sans-head); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); font-weight: 700; margin: 0 0 6px; }
.contact-detail a, .contact-detail span { font-family: var(--sans-body); font-size: 1.0625rem; color: var(--black); text-decoration: none; }
.contact-detail a:hover { color: var(--red); }

.form { display: grid; gap: 24px; }
.form-row { display: grid; gap: 8px; }
.form label { font-family: var(--sans-head); font-size: 11px; letter-spacing: 0.16em; font-weight: 700; color: var(--black); text-transform: uppercase; }
.form input, .form textarea, .form select {
  font-family: var(--sans-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  transition: border-color .15s var(--easing);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--red);
}
.form textarea { min-height: 150px; resize: vertical; }
.form button { width: max-content; }

/* ---- Clients page ---------------------------------------------------- */
.client-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.client-detail__cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 36px;
  background: var(--white);
}
.client-detail__cell img { max-width: 100%; max-height: 80px; width: auto; height: auto; filter: grayscale(80%); opacity: .7; transition: filter .2s var(--easing), opacity .2s var(--easing); }
.client-detail__cell:hover img { filter: grayscale(0%); opacity: 1; }

/* ---- Mobile refinements ---------------------------------------------- */
/* These rules sharpen typography, spacing, tap targets and overflow
   behaviour for touch viewports. Layered on top of the rest of the
   stylesheet so the desktop design stays intact. */

@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  body { font-size: 16px; }

  /* Hero — shorter on small screens; lock content to a sensible read width */
  .hero { min-height: clamp(440px, 80vh, 620px); }
  .hero__inner { padding: 110px 0 56px; }
  .hero__title { font-size: clamp(2rem, 8.5vw, 2.75rem); line-height: 1.08; }
  .hero__lede { font-size: 1.0625rem; line-height: 1.55; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { justify-content: center; width: 100%; }
  .hero__actions .tlink { width: max-content; }

  /* Section spacing — gentler on mobile so the page doesn't feel padded out */
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .section-head { margin: 0 0 36px; }
  .section-head .lede { margin-top: 14px; }

  /* Container padding — restore some hug to the screen edges */
  .container, .container--narrow, .container--wide, .container--bleed { padding: 0 20px; }

  /* Page-hero subpages */
  .page-hero { padding-top: 48px; padding-bottom: 28px; }
  .page-hero__title { font-size: clamp(1.875rem, 7.5vw, 2.5rem); }

  /* Ledger — bigger numbers, tighter labels */
  .ledger__item { padding: 24px 18px; }
  .ledger__value { font-size: 2rem; }
  .ledger__label { font-size: 12px; line-height: 1.45; margin-top: 6px; }

  /* Capability tiles — single column, slightly more compact */
  .capabilities { grid-template-columns: 1fr; }
  .capability { padding: 28px 22px; }

  /* Intro photo bands */
  .intro-photo__heading { font-size: 1.625rem; line-height: 1.15; }
  .intro-photo__body { font-size: 1rem; line-height: 1.65; }
  .intro-photo__media { aspect-ratio: 4 / 3; }

  /* Sector cards */
  .sectors { gap: 18px; }
  .sector__body-wrap { padding: 24px 22px; }
  .sector__title { font-size: 1.25rem; }

  /* Image-divider quote */
  .image-divider { height: clamp(260px, 60vw, 360px); }
  .image-divider__quote { font-size: 1.125rem; line-height: 1.35; }
  .image-divider__cite { font-size: 11px; letter-spacing: 0.14em; }

  /* Pull-quote dark band */
  .pullquote__text { font-size: 1.25rem; line-height: 1.35; }

  /* Team grids */
  .team-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .team-strip__photo { margin-bottom: 12px; }
  .team-strip__name { font-size: 0.9375rem; }
  .team-strip__role { font-size: 11px; letter-spacing: 0.1em; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .team-card__name { font-size: 1.0625rem; }
  .team-card__role { font-size: 11px; letter-spacing: 0.12em; }

  /* Member-page hero */
  .member-hero__name { font-size: 2rem; }
  .member-hero__photo { aspect-ratio: 4 / 5; max-width: 360px; }
  .member-bio { font-size: 1rem; line-height: 1.7; }

  /* Client wall — keep 2 columns, comfortable padding */
  .client-wall { grid-template-columns: repeat(2, 1fr); }
  .client-wall__cell { padding: 22px; aspect-ratio: 3 / 2; }
  .client-wall__cell img { max-height: 48px; }
  .client-detail { grid-template-columns: repeat(2, 1fr); }
  .client-detail__cell { padding: 24px; aspect-ratio: 4 / 3; }
  .client-detail__cell img { max-height: 56px; }

  /* News listing + post page */
  .news-card__title { font-size: 1.125rem; }
  .post-header__title { font-size: 1.75rem; line-height: 1.15; }
  .post-figure { padding: 0 20px; margin-bottom: 24px; }
  .post-body { font-size: 1rem; line-height: 1.75; }
  .post-body blockquote { font-size: 1.0625rem; padding-left: 18px; margin: 24px 0; }

  /* Services index list */
  .service-item { padding: 32px 22px; }
  .service-item__heading { font-size: 1.5rem; }

  /* Service detail hero */
  .service-detail__hero { padding: 80px 0; }
  .service-detail__title { font-size: clamp(2rem, 8vw, 2.5rem); }
  .service-detail__lede { font-size: 1.0625rem; }

  /* Contact form */
  .contact-info h2 { font-size: 1.625rem; }
  .form input, .form textarea, .form select { font-size: 16px; padding: 12px 14px; } /* 16px prevents iOS zoom */
  .form button { width: 100%; justify-content: center; }

}

@media (max-width: 420px) {
  .team-strip, .team-grid { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger__item:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .ledger__item:nth-child(1) { border-right: 0; }
}

/* All viewports — every button + link target hits 44px+ on touch devices */
@media (hover: none) {
  .site-nav__link, .tlink, .btn, .capability, .sector,
  .team-card, .team-strip__card, .news-card { min-height: 44px; }
}

/* Body scroll lock when nav drawer is open */
body.nav-open { overflow: hidden; }

/* ---- Utility ---------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* the skip link appears while a keyboard user is on it */
a.visually-hidden:focus-visible {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip: auto; overflow: visible; white-space: normal;
  background: var(--black); color: var(--white);
  font-family: var(--sans-body); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; outline: 2px solid var(--red); outline-offset: 2px;
}
.text-center { text-align: center; }

/* ---- Cookie banner + footer legal links (2026-10-06) -------------------- */
/* The banner opens from the footer's "Cookie preferences" link (analytics.js). While it is closed it
   is inert, aria-hidden and visibility: hidden, so none of its buttons sits in the tab order. */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;   /* above the phone drawer (60) */
  max-width: 520px; margin: 0 auto; padding: 22px 24px;
  background: var(--white); color: var(--text);
  border: 1px solid var(--rule); box-shadow: 0 12px 40px rgba(0,0,0,.18);
  transform: translateY(calc(100% + 32px));
  visibility: hidden;
  transition: transform .35s var(--easing), visibility 0s .35s;
}
.cookie.show { transform: none; visibility: visible; transition-delay: 0s; }
.cookie p { font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.cookie p a { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 12px; margin-top: 16px; }
.cookie__actions .btn { min-height: 44px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* ---- Language switcher (2026-10-06) ------------------------------------ */
/* EN ES FR after "Get in touch" on desktop; a row of 44px targets at the foot of the phone drawer.
   Manual switch only: the site never redirects by browser language (site-standards.md). */
.site-langs__group { display: flex; align-items: center; gap: 2px; }
.site-langs__link {
  font-family: var(--sans-head); font-weight: 500; font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-2); text-decoration: none; padding: 8px 5px; min-width: 30px; text-align: center;
}
.site-langs__link:hover { color: var(--red); text-decoration: none; }
.site-langs__link[aria-current] { color: var(--black); font-weight: 700; }
@media (max-width: 1279px) {
  .site-nav__item.site-langs { border-bottom: 0; margin-top: 16px; }
  .site-langs__group { justify-content: center; gap: 8px; }
  .site-langs__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 14px; }
}
.notfound__langs { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; }

/* The full menu is used from 1280px (both breakpoints above say 1279px; until 2026-10-06 it was
   960px, and between 961 and ~1150px three English labels wrapped onto two lines). The header row
   is at most 1,232px wide (container--wide less its padding) at any screen size. With the logo
   unshrunk, English fits at the 28px gaps; Spanish and French need ~1,350px at 28px, so their gaps
   are 18px (French then needs ~1,212px). A label never wraps. */
.site-nav__link, .site-nav__cta a, .site-langs__link { white-space: nowrap; }
@media (min-width: 1280px) { html:not([lang="en"]) .site-nav, html:not([lang="en"]) .site-nav__list { gap: 18px; } }

/* ======================================================================
   2026-10-07 redesign: breadcrumbs, call-to-action band, footer, News list,
   article header and footer (share bar, author box), related articles, profile links.
   Brand book: near-black, red used sparingly, Raleway headings, square corners.
   ====================================================================== */

/* ---- Icons + avatars --------------------------------------------------- */
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.icon--arrow { transition: transform .15s var(--easing); }
a:hover > .icon--arrow, .btn:hover .icon--arrow { transform: translateX(3px); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--grey-2); }

/* the red button: white on --red-text is 5.3:1 (on the brand red it would be 4.4:1, under AA) */
.btn--accent { background: var(--red-text); border-color: var(--red-text); color: var(--white); }
.btn--accent:hover { background: #b3241a; border-color: #b3241a; color: var(--white); }
.btn .icon { width: 18px; height: 18px; }

/* ---- Breadcrumbs ------------------------------------------------------- */
.crumbs { background: var(--white); border-bottom: 1px solid var(--rule); }
.crumbs__list {
  display: flex; align-items: center; list-style: none; margin: 0 auto; overflow: hidden; white-space: nowrap;
  font-family: var(--sans-body); font-size: 13px; line-height: 20px; color: var(--text-2);
}
.crumbs__item { display: flex; align-items: center; min-width: 0; flex: none; }
.crumbs__item:last-child { flex: 0 1 auto; }
.crumbs__item + .crumbs__item::before {
  content: ''; flex: none; width: 6px; height: 6px; margin: 0 12px 0 8px; opacity: .55;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}
.crumbs__item a, .crumbs__item span { display: block; padding: 12px 0; }
.crumbs__item a { color: var(--text-2); text-decoration: none; }
.crumbs__item a:hover { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs__item span { color: var(--black); overflow: hidden; text-overflow: ellipsis; }

/* ---- Call-to-action band ---------------------------------------------- */
.section--cta, .section:has(> .container--wide > .cta-band) { padding: clamp(48px, 6vw, 88px) 0; }
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 6vw, 80px);
  color: var(--white);
  background:
    radial-gradient(110% 140% at 100% 0%, rgba(230, 48, 32, .20) 0%, rgba(230, 48, 32, 0) 46%),
    linear-gradient(135deg, #262624 0%, #121211 100%);
  border-left: 4px solid var(--red);
}
/* a faint architectural grid, fading in from the left */
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 85%); mask-image: linear-gradient(90deg, transparent 20%, #000 85%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--sans-body); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red-text-on-dark);
}
.cta-band__eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--red); }
.cta-band__title {
  margin: 0; color: var(--white); font-family: var(--sans-head); font-weight: 700;
  font-size: clamp(1.75rem, 3.3vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance;
}
.cta-band__title-mark { color: var(--red); }
.cta-band__sub { margin: 18px 0 0; max-width: 34em; color: rgba(255,255,255,.78); font-size: 1.0625rem; line-height: 1.6; }
.cta-band__actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding-left: clamp(0px, 3vw, 44px); border-left: 1px solid rgba(255,255,255,.14);
}
.cta-band__btn { margin-bottom: 6px; }
.cta-band__alt {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: rgba(255,255,255,.86); font-size: .9375rem; text-decoration: none;
}
.cta-band__alt:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.cta-band__alt .icon { width: 18px; height: 18px; color: var(--red-text-on-dark); }
.cta-band__people {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 8px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.45;
}
.cta-band__faces { display: flex; flex: none; }
.cta-band__faces img { width: 40px; height: 40px; margin-left: -10px; border: 2px solid #1c1c1b; border-radius: 50%; object-fit: cover; }
.cta-band__faces img:first-child { margin-left: 0; }
@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .cta-band { padding: 36px 24px 32px; }
  .cta-band__btn { align-self: stretch; justify-content: center; }
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: #141413; color: rgba(255,255,255,.72); padding-top: clamp(64px, 8vw, 104px); border-top: 3px solid var(--red); }
.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 72px);
}
.site-footer__logo { display: inline-block; padding: 5px 0; }
.site-footer__logo img { display: block; height: 34px; width: auto; }
.site-footer__about { margin: 22px 0 0; max-width: 32em; font-size: .9375rem; line-height: 1.7; color: rgba(255,255,255,.72); }
.site-footer .site-footer__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; list-style: none; margin: 32px 0 0; padding: 0; }
.site-footer__stats li { font-size: 11px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.58); max-width: 9em; }
.site-footer__stat { display: block; margin-bottom: 6px; font-family: var(--sans-head); font-weight: 700; font-size: 1.75rem; letter-spacing: -.02em; text-transform: none; color: var(--white); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__heading {
  margin: 0 0 8px; font-family: var(--sans-head); font-weight: 700; font-size: 11px; line-height: 1.3;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.58);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
/* each link is a 44px touch target: 20px line, 12px above and below */
.site-footer__nav a { display: block; padding: 12px 0; line-height: 20px; font-size: 14.5px; color: rgba(255,255,255,.84); text-decoration: none; transition: color .15s var(--easing); }
.site-footer__nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.site-footer__based { margin: 4px 0 16px; font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.72); }
.site-footer__line { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 0; color: var(--white); text-decoration: none; font-size: .9375rem; }
.site-footer__line .icon { width: 20px; height: 20px; color: var(--red-text-on-dark); }
.site-footer__line > span { display: flex; flex-direction: column; }
.site-footer__line-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.58); margin-bottom: 2px; }
.site-footer__line:hover > span { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.site-footer__cta { margin-top: 20px; }
.site-footer__social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 16px; border: 1px solid rgba(255,255,255,.22); color: var(--white); }
.site-footer__social .icon { width: 18px; height: 18px; }
.site-footer__social:hover { background: var(--white); color: var(--black); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px;
  padding: 16px 0 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; letter-spacing: .02em; color: rgba(255,255,255,.58);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 24px; margin-right: auto; }
.site-footer__legal a { display: inline-block; min-width: 44px; padding: 12px 0; line-height: 20px; color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer__legal a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__credit { color: rgba(255,255,255,.58); }
.site-footer__credit a { color: rgba(255,255,255,.84); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__credit a:hover { color: var(--white); }
@media (max-width: 1100px) {
  .site-footer__top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .site-footer__nav > div:last-child { grid-column: 1 / -1; }
  .site-footer__stats { gap: 20px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- News list --------------------------------------------------------- */
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.news-card__read::before { content: '·'; margin-right: 12px; }
.news-card__author { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.news-card__author img { width: 34px; height: 34px; }
.news-card__author > span { display: flex; flex-direction: column; line-height: 1.3; }
.news-card__author-name { font-size: .875rem; font-weight: 500; color: var(--black); }
.news-card__author-role { font-size: .8125rem; color: var(--text-2); }
.news-card--lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.news-card--lead .news-card__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.15; }
@media (max-width: 720px) { .news-card--lead { grid-template-columns: 1fr; } }

/* ---- Article header ---------------------------------------------------- */
.post-header__meta { display: flex; flex-wrap: wrap; gap: 0 12px; }
.post-header__meta > span::before { content: '·'; margin-right: 12px; }
.post-header__byline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule);
}
.byline { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.byline img { width: 44px; height: 44px; }
.byline > span { display: flex; flex-direction: column; line-height: 1.35; }
.byline__name { font-size: .9375rem; font-weight: 500; color: var(--black); }
.byline__role { font-size: .8125rem; color: var(--text-2); }
.byline:hover .byline__name { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.post-body { padding-bottom: 8px; }

/* ---- Share bar (no third-party script: plain links) --------------------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.share__title { font-family: var(--sans-body); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--rule); background: var(--white); color: var(--black); text-decoration: none;
  transition: background .15s var(--easing), color .15s var(--easing), border-color .15s var(--easing);
}
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover, .share__btn.is-copied { background: var(--black); border-color: var(--black); color: var(--white); text-decoration: none; }
.share__label { font-size: 13px; font-weight: 500; }
.share--compact .share__label { display: none; }
.share--compact .share__btn { min-width: 40px; height: 40px; padding: 0 10px; }
@media (hover: none) { .share--compact .share__btn { min-width: 44px; height: 44px; } }

/* ---- Article footer: share, author box ---------------------------------- */
.post-footer { padding-bottom: clamp(48px, 6vw, 80px); }
.post-footer > .share { justify-content: space-between; padding: 24px 0; margin-bottom: 40px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.author-box {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 28px; align-items: start;
  padding: clamp(24px, 4vw, 40px); background: var(--grey-3); border-left: 4px solid var(--red);
}
.author-box__photo img { width: 104px; height: 104px; }
.author-box__eyebrow { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.author-box__name { margin: -7px 0; font-family: var(--sans-head); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
.author-box__name a { display: inline-flex; align-items: center; min-height: 44px; color: var(--black); text-decoration: none; }   /* a 44px touch target */
.author-box__name a:hover { color: var(--red-text); }
.author-box__role { display: block; margin-top: 4px; font-size: .9375rem; color: var(--text-2); }
.author-box__bio { margin: 14px 0 0; font-size: 1rem; line-height: 1.65; color: var(--text); }
.author-box__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
@media (max-width: 600px) {
  .author-box { grid-template-columns: 1fr; gap: 16px; }
  .author-box__photo img { width: 80px; height: 80px; }
}

/* ---- Person links (author box, profile) -------------------------------- */
.person-links { display: flex; flex-wrap: wrap; gap: 8px; }
.person-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--rule); background: var(--white); color: var(--black);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: border-color .15s var(--easing), color .15s var(--easing), background .15s var(--easing);
}
.person-link .icon { width: 18px; height: 18px; }
.person-link:hover { border-color: var(--black); text-decoration: none; }
.person-link--strong { background: var(--black); border-color: var(--black); color: var(--white); }
.person-link--strong:hover { background: var(--red-text); border-color: var(--red-text); color: var(--white); }
.member-hero__summary { margin: 18px 0 24px; max-width: 34em; font-size: 1.125rem; line-height: 1.6; color: var(--text); }

/* ---- Related articles (article pages, profiles) ------------------------ */
.related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.related__heading { margin: 0 0 28px; font-family: var(--sans-head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.015em; }
.related__head .related__heading { margin: 0; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule);
  color: inherit; text-decoration: none; transition: transform .2s var(--easing), box-shadow .2s var(--easing);
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29,29,27,.08); text-decoration: none; }
.related-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-2); }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.related-card__body { padding: 20px 22px 24px; }
.related-card__meta { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.related-card__title { margin: 10px 0 0; font-family: var(--sans-head); font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--black); }
.related-card:hover .related-card__title { color: var(--red-text); }
@media (max-width: 960px) { .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .related__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .related-card, .icon--arrow { transition: none; } .related-card:hover { transform: none; } }
