/* Developer: Anis Khan */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2'),
       url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2'),
       url('../fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2'),
       url('../fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'),
       url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'),
       url('../fonts/Inter-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Black.woff2') format('woff2'),
       url('../fonts/Inter-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #CD0040;
  --white: #FFFFFF;
  --grey: #F4F6F8;
  --charcoal: #171717;
  --secondary: #5B626A;
  --maxw: 1350px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* smooth scrolling is handled by Lenis (assets/js/main.js) */
}

/* Site-wide animation kill switch — see partials/header.php ($carmineAnimationsEnabled).
   Stops every CSS animation/transition (logo marquee drift, header hide/show,
   hover states, etc.) in addition to the JS/GSAP effects skipped elsewhere. */
body.anim-off,
body.anim-off *,
body.anim-off *::before,
body.anim-off *::after {
  animation: none !important;
  transition: none !important;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width:1024px) {
  .wrap {
    padding: 0 32px;
  }
}

@media (max-width:480px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ---------- ACCESSIBILITY: VISIBLE FOCUS ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.capability-hub-row:focus-visible,
.sector-hub-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

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

/* ---------- HOVER POLISH ---------- */
.case-card,
.team-card,
.logo-tile,
.mandate-grid article,
.media-coverage-item {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.case-card:hover,
.mandate-grid article:hover,
.media-coverage-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
}

.team-card picture img {
  transition: transform 400ms ease;
}

.team-card:hover picture img {
  transform: scale(1.04);
}

.team-card picture {
  overflow: hidden;
}

/* .logo-tile{
  filter:grayscale(1) opacity(0.7);
} */
.logo-tile:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion:reduce) {

  .case-card:hover,
  .mandate-grid article:hover,
  .media-coverage-item:hover,
  .team-card:hover picture img,
  .logo-tile:hover {
    transform: none;
  }
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 2px;
  min-height: 44px;
  transition: background 160ms ease, color 160ms ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
      margin-top: 20px;
}

.btn-primary:hover {
  background: #a80035;
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark:hover {
  background: #000;
}

.btn,
.btn:hover {
  text-decoration: none;
}

.link-arrow {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-arrow:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.link-arrow i,
.btn i {
  display: inline-block;
  transition: transform 160ms ease;
  font-size: 0.9em;
}

.link-arrow:hover i,
.btn:hover i {
  transform: translateX(3px);
}

/* ---------- HEADER ---------- */
header {
  border-bottom: 1px solid #E7EAEE;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  transform: translateY(0);
  transition: transform 260ms ease;
}

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

.header-inner {
  position: relative; /* lets the Services mega-menu centre on the whole header, not just the trigger */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.logo img {
  height: 38px;
  width: auto;
}

nav.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav.desktop-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

nav.desktop-nav a:hover {
  border-color: var(--red);
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* menu toggle: a pill with the label and a bars icon that turns into a close (X) when the menu is open */
.menu-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  font: 700 13px/1 Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.menu-toggle:hover { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.menu-toggle:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }

.menu-toggle .bars {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--red);
  position: relative;
  transition: background-color 180ms ease;
}

.menu-toggle:hover .bars { background: #FFFFFF; }

.menu-toggle .bars span {
  position: absolute;
  left: 13px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease, top 260ms cubic-bezier(.2,.8,.2,1);
}

.menu-toggle:hover .bars span { background: var(--red); }

.menu-toggle .bars span:nth-child(1) {
  top: 15px;
}

.menu-toggle .bars span:nth-child(2) {
  top: 19px;
}

.menu-toggle .bars span:nth-child(3) {
  top: 23px;
}

/* open state: the three bars close into an X */
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* mobile full-height nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 0 20px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  border-bottom: 1px solid #E7EAEE;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

.mobile-nav-list li {
  border-bottom: 1px solid #E7EAEE;
}

.mobile-nav-list a {
  display: block;
  padding: 18px 4px;
  font-size: 18px;
  font-weight: 700;
}

.mobile-nav-list li.contact-item {
  margin-top: 16px;
  border-bottom: none;
}

.mobile-nav-list li.contact-item a {
  background: var(--red);
  color: var(--white);
  text-align: center;
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  color: var(--charcoal);
  padding: 72px 0 0;
  margin-bottom: 0;
}

/* optional background video (loaded by main.js on desktop only); the image above is the poster and fallback */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-video.is-playing {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

.hero > .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero .eyebrow {
  color: #CD0040;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.09;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.hero h1 .red {
  color: #CD0040;
}

.hero p.lead {
  margin-top: 24px;
  font-size: 18px;
  color: var(--secondary);
  max-width: 560px;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* connected map: four places, one reputation */
.map-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.map-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.map-grid::before,
.map-grid::after {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.12);
}

.map-grid::before {
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
}

.map-grid::after {
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
}

.map-node {
  position: relative;
  z-index: 1;
  background: var(--grey);
  border: 1px solid #E3E7EC;
  border-top: 3px solid var(--red);
  padding: 22px 20px 20px;
}

.map-node strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--charcoal);
}

.map-node span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--secondary);
}

.map-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 6px solid var(--white);
  background: var(--red);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

/* proof strip along the base of the hero */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 72px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding: 32px 0 36px;
  border-top: 1px solid #E7EAEE;
}

.stat strong {
  font-size: 28px;
  font-weight: 800;
  display: block;
  color: var(--charcoal);
}

.stat span {
  font-size: 14px;
  color: var(--secondary);
}

@media (max-width:1024px) {
  .hero::before {
    background: transparent;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    margin-top: 48px;
  }

  .hero-proof .link-arrow {
    margin-left: 0;
    grid-column: 1 / -1;
  }

  .map-grid {
    gap: 14px;
  }

  .map-grid::before,
  .map-grid::after,
  .map-core {
    display: none;
  }
}
/* ---------- SECTION GENERIC ---------- */
section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.section-sub {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 6px;
}

.section-sub strong {
  color: var(--charcoal);
}

/* ---------- CAPABILITIES ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 3px solid var(--red);
  padding-top: 28px;
}

.cap-item {
  border-top: 1px solid #E7EAEE;
  padding-top: 20px;
}

.cap-num {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

.cap-item h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cap-item p {
  color: var(--secondary);
  font-size: 15px;
  margin-bottom: 14px;
}

.differentiators {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E7EAEE;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.differentiators .diff-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--secondary);
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 4px;
}

.differentiators li {
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

.differentiators li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.differentiators ul {
  display: contents;
}

/* ---------- EXPERIENCE ---------- */
.experience {
  background: #000000;
  color: #FFFFFF;
}

.experience .section-sub,
.experience .sectors-line {
  color: #C7CBD1;
}

.experience .section-head h2,
.experience .section-sub strong {
  color: #FFFFFF;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.logo-tile {
  background: transparent;
  border: 1px solid #E3E7EC;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sectors-line {
  color: var(--secondary);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- WORK ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.case-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

/* blog cards: same card convention as .case-card site-wide (square corners, left-aligned,
   border, uppercase tag) but with the image always visible instead of hover-reveal */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E7EAEE;
  text-decoration: none;
  transition: border-color .15s ease;
}

.blog-card:hover {
  border-color: var(--red);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #F0F2F5;
  background-size: cover;
  background-position: center;
}

.blog-card-body {
  padding: 24px;
}

.blog-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: #000000;
  margin: 10px 0 14px;
}

.blog-card:hover h3 {
  color: var(--red);
}

.blog-card .blog-date {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #E7EAEE;
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.pagination a:hover {
  border-color: var(--red);
  color: var(--red);
}

.pagination .current {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.pagination a.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.case-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E7EAEE;
  padding: 32px;
  position: relative;
}

.case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
}

.case-num {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
}

.case-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 14px 0 12px;
  max-width: 80%;
  color:#000000;
}

.case-card .case-strap {
  font-weight: 700;
  margin-bottom: 6px;
}

.case-card p.case-desc {
  color: var(--secondary);
  font-size: 15px;
  margin-bottom: 18px;
}

.case-card.has-media {
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease;
}

.case-card.has-media::before,
.case-card.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: -2;
}

.case-card.has-media::before {
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
}

.case-card.has-media::after {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.45) 0%, rgba(10, 10, 12, 0.88) 100%);
  z-index: -1;
}

.case-card.has-media:hover {
  border-color: var(--red);
}

.case-card.has-media:hover::before,
.case-card.has-media:hover::after {
  opacity: 1;
}

.case-card.has-media:hover .case-tag,
.case-card.has-media:hover h3,
.case-card.has-media:hover p.case-desc {
  color: #FFFFFF;
}

.case-card.has-media:hover .link-arrow {
  color: #FFFFFF;
}

/* ---------- TEAM ---------- */

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

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


.team-card picture {
  display: block;
}

.team-card img,
.team-card .avatar-fallback {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 16px;
  background: #F7F7F7;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--red);
  background: #F7F7F7;
}

.team-card h3 {
  font-size: 17px;
  font-weight: 800;
}

.team-card span {
  font-size: 14px;
  color: var(--secondary);
}

/* ---------- VOICE + NEWS: now two stacked full-width sections, each content column
   kept narrow so the compact news list and quote panel don't stretch too wide ---------- */
.section-narrow {
  max-width: 640px;
}

blockquote {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  margin-bottom: 20px;
}

.quote-mark {
  color: var(--red);
  font-size: 56px;
  font-weight: 800;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  display: block;
  height: 32px;
  margin-bottom: 4px;
}

/* matches the compact, square-cornered panel used for the "Carmine in the news" list
   alongside it, so the two columns read as one consistent pair */
.testimonial-panel {
  background: #FFFFFF;
  border: 1px solid #ECEEF2;
  padding: 28px;
}

.attribution strong {
  display: block;
  font-size: 15px;
}

.attribution span {
  font-size: 13px;
  color: var(--secondary);
  display: block;
}

.pending-source {
  font-size: 13px;
  color: var(--secondary);
  font-style: italic;
}

/* ---------- CONTACT CTA ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 56px 0;
}

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

.cta-inner .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.cta-inner h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.cta-right {
  text-align: right;
}

.cta-right a.btn-dark {
  margin-bottom: 10px;
}

.cta-right .email {
  display: block;
  font-size: 14px;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 64px 0 32px;
  background: var(--grey);
  border-top: 1px solid #E7EAEE;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 2fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col.footer-col-merged {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col-merged > div {
  display: flex;
  flex-direction: column;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #D9DDE2;
  color: inherit;
  transition: border-color 160ms ease, color 160ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.footer-tag {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-desc {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col a,
.footer-col p {
  font-size: 14px;
  color: var(--secondary);
}

.footer-col a {
  margin-bottom: 12px;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-contact a {
  color: var(--charcoal);
  font-weight: 600;
}

.footer-addr {
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid #E7EAEE;
  padding-top: 20px;
  color: var(--secondary);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1024px) {
  nav.desktop-nav {
    display: none;
  }

  /* desktop uses flex-start for inner/home headers; with the nav hidden, keep the menu toggle on the right */
  .inner .header-inner,
  .home .header-inner {
    justify-content: space-between;
  }

  .desktop-contact-only {
    display: none;
  }

  .menu-toggle {
    display: flex;
    border: none;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: none;
    padding-top: 0;
  }

  .cap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #E7EAEE;
  }

  .cap-item:first-child {
    border-top: 3px solid var(--red);
  }

  .cap-text {
    flex: 1;
  }

  .cap-num {
    margin-bottom: 6px;
  }

  .cap-item h3 {
    margin-bottom: 4px;
  }

  .cap-item p {
    margin-bottom: 0;
  }

  .cap-item>.link-arrow {
    flex-shrink: 0;
    font-size: 0;
  }

  .cap-item>.link-arrow .arrow {
    font-size: 15px;
  }

  .differentiators {
    flex-direction: column;
    gap: 12px;
  }

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

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .voice-news {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .voice-news .col+.col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #E7EAEE;
    padding-top: 32px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-right {
    text-align: left;
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sectors-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width:480px) {
  .header-inner {
    height: 76px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.07;
  }

  .hero p.lead {
    font-size: 16px;
  }

  section {
    padding: 40px 0;
  }

  .section-head h2 {
    font-size: 31px;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .logo-tile {
    height: 64px;
    font-size: 11px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  blockquote {
    font-size: 19px;
  }

  .cta-inner h2 {
    font-size: 26px;
  }
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 12px;
  border: 1px solid #D9DDE2;
  color: var(--charcoal);
  transition: border-color 160ms ease, color 160ms ease;
}

.team-linkedin:hover,
.team-linkedin:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.footer-contact a,
.footer-contact .footer-addr,
.footer-contact .footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact .footer-contact-row a {
  display: inline;
  color: var(--charcoal);
  font-weight: 600;
}

.footer-contact .info-sep {
  color: #D7DCE2;
  font-weight: 400;
}

.footer-contact .footer-addr-directions {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
}

.footer-contact .ico {
  flex-shrink: 0;
  color: var(--charcoal);
}

.footer-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #D9DDE2;
  background: transparent;
}

/* ---------- MOBILE TYPE SCALE (phones, up to 760px): one readable scale across pages ---------- */
@media (max-width:760px){
  main p:not(.wrap):not(.breadcrumb),
  .case-desc,
  .news-desc { font-size: 16px; line-height: 1.55; }
  main li { font-size: 16px; }
  .lede { font-size: 17px; }
  .eyebrow { font-size: 13px; }
  .case-tag,
  .news-meta { font-size: 12px; }
  label,
  .req,
  .diff-label,
  .section-note { font-size: 14px; }
  .link-arrow,
  .btn,
  .disabled { font-size: 15px; }
  main h2,
  .section-head h2 { font-size: clamp(26px, 7.4vw, 30px); line-height: 1.1; }
  main h3,
  .news-title { font-size: 20px; line-height: 1.25; }
}

/* mobile type scale: section headings that use id-based rules elsewhere, plus footer text */
@media (max-width:760px){
  .cta-band h2,
  .home #capabilities h2,
  .home #experience h2,
  .home #work .section-head h2,
  .home #team .section-head h2 { font-size: clamp(26px, 7.4vw, 30px); line-height: 1.1; }
  .inner main li,
  .home main li { font-size: 16px; }
  footer p,
  footer a,
  footer li { font-size: 15px; }
  .footer-col h4 { font-size: 13px; }
  .footer-tag { font-size: 16px; }
}

/* ---------- navbar "Services" mega-menu ---------- */
/* .nav-has-mega sits in the same flex row as the plain <li><a> items. The <li> boxes already
   match in height; summary must render as plain inline content (like the <a> siblings do) rather
   than filling the whole stretched flex line, or its text sits lower than the other nav labels. */
/* "Services" nav item temporarily hidden — not ready yet. Markup/JS untouched; remove this one
   rule (and the matching .mobile-nav-services rule below) to bring it back. */
.nav-has-mega { display: none; }
.nav-services { position: static; }
.nav-services summary {
  display: inline; /* UA default is list-item, which adds marker spacing and breaks row alignment */
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  list-style: none;
}
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.nav-services[open] summary::after { transform: rotate(-135deg); }
.nav-services summary:hover,
.nav-services[open] summary { border-color: var(--red); color: var(--red); }
.nav-services summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.services-mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 44px;
  background: var(--white);
  border-radius: 4px;
  border: 1px solid #E7EAEE;
  border-top: 3px solid var(--red);
  box-shadow: 0 20px 48px rgba(10, 10, 12, 0.16);
  padding: 30px 34px;
  width: max-content;
  max-width: min(980px, calc(100vw - 48px));
  z-index: 60;
}
.services-mega-group + .services-mega-group { padding-left: 44px; border-left: 1px solid #EEF0F3; }
.services-mega-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.services-mega-cols { display: flex; gap: 28px; }
.services-mega-cols ul { list-style: none; display: flex; flex-direction: column; gap: 2px; min-width: 215px; }
.services-mega-cols a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 3px;
  transition: color 140ms ease, background-color 140ms ease;
}
.services-mega-cols a:hover { color: var(--red); background: #FBEEF1; }

/* close any other open desktop dropdown when one opens (handled in main.js) */
@media (max-width: 1024px) {
  .services-mega { display: none; }
  .nav-services { display: none; } /* desktop-nav itself is hidden ≤1024px; mobile uses its own markup below */
}

/* ---------- mobile nav "Services" accordion ---------- */
.mobile-nav-services { display: none; } /* temporarily hidden, see .nav-has-mega above */
.mobile-nav-services summary {
  font: inherit;
  cursor: pointer;
  list-style: none;
  padding: inherit;
}
.mobile-nav-services summary::-webkit-details-marker { display: none; }
.mobile-nav-services summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}
.mobile-nav-services details[open] summary::after { content: "\2212"; }
.mobile-services-group { padding: 4px 0 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.mobile-services-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin: 10px 0 2px;
}
.mobile-services-group a { font-size: 15px; font-weight: 500; color: var(--charcoal); }
