﻿/*
 * ═══════════════════════════════════════════════════════════════
 * COREDEVEX — COMPONENTS
 * Cards, buttons, nav, forms, icons, layout wrappers
 * ═══════════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────── */

.section-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-pad {
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
}

@media (max-width: 1024px) {
  .section-pad {
    padding-top: var(--section-pad-tablet);
    padding-bottom: var(--section-pad-tablet);
  }
}

@media (max-width: 768px) {
  .section-container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .section-pad {
    padding-top: var(--section-pad-mobile);
    padding-bottom: var(--section-pad-mobile);
  }
}


/* ─────────────────────────────────────────────────────────────
   SECTION BACKGROUND RHYTHM
   Utility classes applied on top of .light-section to create
   subtle visual separation between adjacent light sections.
   ───────────────────────────────────────────────────────────── */

.bg-white  { background: var(--surface-light); } /* #FFFFFF — pure white, editorial */
.bg-canvas { background: var(--canvas); }         /* #FAFBFD — neutral off-white     */
.bg-grey   { background: var(--surface-alt); }    /* #F0F4FA — cool grey, card areas  */
.bg-tinted { background: var(--accent-tint); }    /* #E8F5F2 — subtle teal tint       */


/* ─────────────────────────────────────────────────────────────
   SECTION LABEL (caption above headlines)
   ───────────────────────────────────────────────────────────── */

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cdx-accent);
  margin-bottom: 16px;
}

.light-section .section-label {
  color: var(--cdx-accent);
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE GRIDS — reusable layout utilities
   ───────────────────────────────────────────────────────────── */

.cdx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.cdx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

@media (max-width: 1024px) {
  .cdx-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cdx-grid-2,
  .cdx-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Insight card — title shifts to accent on hover */
.cdx-insight-card:hover .cdx-insight-card__title {
  color: var(--cdx-accent);
}

/* Insight card — light section border */
.light-section .cdx-insight-card {
  border-bottom-color: var(--light-border) !important;
}

/* 50/50 split layout — desktop side-by-side, mobile stacked */
.cdx-split-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 1024px) {
  .cdx-split-50 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Asymmetric work/case-study grid — 2/3 + 1/3, third spans full width */
.cdx-grid-asymmetric {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--card-gap);
}

.cdx-grid-asymmetric > :nth-child(3) {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .cdx-grid-asymmetric {
    grid-template-columns: 1fr;
  }

  .cdx-grid-asymmetric > :nth-child(3) {
    grid-column: auto;
  }
}

/* Contact page — form (60%) + sidebar (40%), stacks below 1024px */
.cdx-contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 1024px) {
  .cdx-contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}


/* ─────────────────────────────────────────────────────────────
   CARD
   ───────────────────────────────────────────────────────────── */

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  box-shadow: var(--shadow-card-inset);
  position: relative;
  transition:
    background   var(--dur-base) var(--ease-hover),
    border-color var(--dur-base) var(--ease-hover),
    transform    var(--dur-base) var(--ease-hover),
    box-shadow   var(--dur-base) var(--ease-hover);
}

.card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 196, 168, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), 0 0 32px rgba(0, 196, 168, 0.07);
}

/* Card — light section overrides */
.light-section .card {
  background: var(--surface-light);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.light-section .card:hover {
  background: #FAFCFF;
  border-color: rgba(0, 196, 168, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 196, 168, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Card — empty/placeholder state */
.card--empty {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: var(--cdx-ghost);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card--empty:hover {
  transform: none;
  box-shadow: none;
}

.light-section .card--empty {
  background: var(--surface-alt);
  border-color: rgba(0, 0, 0, 0.10);
  color: var(--light-ghost);
}


/* ─────────────────────────────────────────────────────────────
   ICON CONTAINER
   ───────────────────────────────────────────────────────────── */

.icon-container {
  display: inline-flex;
  align-items: center;
  color: var(--cdx-accent);
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--icon-container);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-icon);
  color: var(--cdx-accent);
  flex-shrink: 0;
  transition:
    background   var(--dur-base) var(--ease-hover),
    border-color var(--dur-base) var(--ease-hover);
}

.card:hover .icon-container {
  background: rgba(0, 196, 168, 0.12);
  border-color: rgba(0, 196, 168, 0.28);
}

.light-section .icon-container {
  background: var(--surface-alt);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .card:hover .icon-container {
  background: rgba(0, 196, 168, 0.10);
  border-color: rgba(0, 196, 168, 0.28);
}


/* ─────────────────────────────────────────────────────────────
   TAG CHIP
   ───────────────────────────────────────────────────────────── */

.tag-chip {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-ghost);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-ui);
  padding: 3px 8px;
  line-height: 1.4;
}

.light-section .tag-chip {
  background: var(--surface-light);
  border-color: var(--light-border);
  color: var(--light-muted);
}


/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cdx-accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-ui);
  border: none;
  cursor: pointer;
  transition:
    background  var(--dur-fast) var(--ease-hover),
    transform   var(--dur-fast) var(--ease-hover);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--cdx-hover);
  transform: scale(1.02);
  color: #FFFFFF;}

.btn-primary[disabled],
.btn-primary[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary[data-loading] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary[data-success] {
  background: var(--cdx-success);
}

/* Inverted primary — white bg, navy text (closing CTA section) */
.btn-primary--inverted {
  background: var(--cdx-white);
  color: var(--navy-deep);
}

.btn-primary--inverted:hover {
  background: #FFFFFF;
  color: var(--navy-deep);
  transform: scale(1.02);
}

/* Gradient button — teal→blue diagonal, used for primary CTAs in dark sections */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: #FFFFFF;
  background: var(--gradient-accent);
  border: none;
  border-radius: var(--radius-ui);
  cursor: pointer;
  text-decoration: none;
  transition: filter 200ms var(--ease-hover), transform 150ms var(--ease-hover), box-shadow 200ms var(--ease-hover);
}

.btn-gradient:hover {
  filter: brightness(1.12);
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(0, 196, 168, 0.40), 0 2px 8px rgba(10, 95, 216, 0.20);
  color: #FFFFFF;
}

.btn-gradient:active {
  transform: scale(0.99);
}

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cdx-white);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-ui);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    background   var(--dur-fast) var(--ease-hover),
    border-color var(--dur-fast) var(--ease-hover);
  white-space: nowrap;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--cdx-white);
}

/* Ghost button — light section variant */
.light-section .btn-ghost {
  color: var(--cdx-accent);
  border-color: rgba(0, 196, 168, 0.35);
}

.light-section .btn-ghost:hover {
  background: var(--accent-tint);
  border-color: var(--cdx-accent);
  color: var(--cdx-accent);
}

/* Nav-sized button variant */
.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--cdx-accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-medium);
  padding: 8px 16px;
  border-radius: var(--radius-ui);
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-hover);
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--cdx-hover);
  color: #FFFFFF;
}


/* ─────────────────────────────────────────────────────────────
   LINK WITH ARROW
   ───────────────────────────────────────────────────────────── */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cdx-accent);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-hover);
  cursor: pointer;
}

.link-arrow:hover {
  gap: 8px;
  color: var(--cdx-accent);
}

.link-arrow::after {
  content: '→';
  transition: transform var(--dur-fast) var(--ease-hover);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}


/* ─────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────── */

.nav-base {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  transition:
    background   var(--dur-base) var(--ease-hover),
    box-shadow   var(--dur-base) var(--ease-hover);
}

/* Accent baseline — visible on dark transparent header, fades out on white */
.nav-base::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 196, 168, 0.50) 0%,
    rgba(0, 196, 168, 0.20) 22%,
    transparent 55%
  );
  opacity: 1;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-hover);
}

/* Scrolled: frosted white header */
.nav-base.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Accent line doesn't belong on a white header */
.nav-base.scrolled::after {
  opacity: 0;
}

/* Collapse announcement bar on scroll — nav compresses to nav-height only */
.nav-base.scrolled .cdx-announcement-bar {
  display: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--nav-height);
}

/* No badge — the header surface provides the contrast context */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logo variant switching: dark-bg logo on transparent header, light-bg logo on white */
.nav-logo__variant--dark  { display: flex; }
.nav-logo__variant--light { display: none; }

.nav-base.scrolled .nav-logo__variant--dark  { display: none; }
.nav-base.scrolled .nav-logo__variant--light { display: flex; }

.nav-logo img,
.nav-logo svg {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--cdx-mist);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-hover);
}

.nav-links a:hover {
  color: var(--cdx-white);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--cdx-mist);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-hover);
  padding: 0;
}

.nav-dropdown-toggle:hover {
  color: var(--cdx-white);
}

/* Caret icon — rotates when panel is open */
.nav-dropdown-caret {
  font-size: 11px;
  transition: transform var(--dur-base) var(--ease-hover);
}
.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-caret {
  transform: rotate(-180deg);
}

/* ── Dropdown panel — outer wrapper ──
   top: 100% means the panel starts exactly at the bottom of the
   .nav-dropdown <li>. padding-top creates the visual breathing room
   while keeping the panel's hit area continuous with the toggle,
   eliminating the dead zone entirely. Visibility/animation is
   JS-controlled (.is-visible) — no CSS :hover rule needed. */
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 480px;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  pointer-events: none;
  transition:
    opacity     160ms var(--ease-hover),
    visibility  160ms var(--ease-hover),
    transform   160ms var(--ease-hover);
  z-index: 200;
}

.nav-dropdown-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Visible panel box ── */
.nav-dropdown-panel__inner {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 196, 168, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.20),
    0 24px 56px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* Header label strip */
.nav-dropdown-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-dropdown-header__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cdx-accent);
}

/* 2-col service grid */
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 10px;
  list-style: none;
  margin: 0;
}

/* Individual service link */
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-hover);
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Teal icon container */
.nav-dropdown-item__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 196, 168, 0.08);
  border: 1px solid rgba(0, 196, 168, 0.16);
  border-radius: var(--radius-icon);
  color: var(--cdx-accent);
  font-size: 14px;
  transition:
    background    var(--dur-fast) var(--ease-hover),
    border-color  var(--dur-fast) var(--ease-hover);
}

.nav-dropdown-item:hover .nav-dropdown-item__icon {
  background: rgba(0, 196, 168, 0.15);
  border-color: rgba(0, 196, 168, 0.32);
}

/* Name + description */
.nav-dropdown-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-dropdown-item__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--cdx-white);
  line-height: 1.25;
  transition: color var(--dur-fast) var(--ease-hover);
}

.nav-dropdown-item:hover .nav-dropdown-item__name {
  color: var(--cdx-accent);
}

.nav-dropdown-item__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--cdx-ghost);
  line-height: 1.4;
}

/* Footer — "explore all services" link */
.nav-dropdown-footer {
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-dropdown-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--cdx-accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    gap      var(--dur-fast) var(--ease-hover),
    opacity  var(--dur-fast) var(--ease-hover);
}

.nav-dropdown-footer__link:hover {
  gap: 10px;
  opacity: 0.82;
}

.nav-dropdown-footer__link i {
  font-size: 13px;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--cdx-white);
  border-radius: 1px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Scrolled (white header) — colour inversions ─────────────────────────── */

.nav-base.scrolled .nav-links a,
.nav-base.scrolled .nav-dropdown-toggle {
  color: rgba(11, 22, 41, 0.65);
}

.nav-base.scrolled .nav-links a:hover,
.nav-base.scrolled .nav-dropdown-toggle:hover {
  color: var(--light-text);
}

/* Hamburger lines: white on dark, dark on white */
.nav-base.scrolled .nav-hamburger span {
  background: var(--light-text);
}

/* Dropdown panel: dark by default, white on scrolled header */
.nav-base.scrolled .nav-dropdown-panel__inner {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.12);
}

.nav-base.scrolled .nav-dropdown-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav-base.scrolled .nav-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.nav-base.scrolled .nav-dropdown-item__icon {
  background: rgba(0, 196, 168, 0.07);
  border-color: rgba(0, 196, 168, 0.18);
}

.nav-base.scrolled .nav-dropdown-item:hover .nav-dropdown-item__icon {
  background: rgba(0, 196, 168, 0.13);
  border-color: rgba(0, 196, 168, 0.30);
}

.nav-base.scrolled .nav-dropdown-item__name {
  color: var(--light-text);
}

.nav-base.scrolled .nav-dropdown-item__desc {
  color: var(--light-ghost);
}

.nav-base.scrolled .nav-dropdown-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-overlay.is-open {
  display: flex;
}

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav-overlay-links a {
  display: block;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: var(--weight-light);
  color: var(--cdx-white);
  padding: 12px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    color    var(--dur-base) var(--ease-hover),
    opacity  var(--dur-reveal) var(--ease-entrance),
    transform var(--dur-reveal) var(--ease-entrance);
}

.nav-overlay.is-open .nav-overlay-links a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay-links li:nth-child(1) a { transition-delay: 80ms; }
.nav-overlay-links li:nth-child(2) a { transition-delay: 160ms; }
.nav-overlay-links li:nth-child(3) a { transition-delay: 240ms; }
.nav-overlay-links li:nth-child(4) a { transition-delay: 320ms; }
.nav-overlay-links li:nth-child(5) a { transition-delay: 400ms; }

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}


/* ─────────────────────────────────────────────────────────────
   HERO GRID BACKGROUND
   ───────────────────────────────────────────────────────────── */

.hero-grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}


/* ─────────────────────────────────────────────────────────────
   FORMS
   ───────────────────────────────────────────────────────────── */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cdx-ghost);
}

.form-input,
.form-textarea,
.form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cdx-white);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  padding: 12px 0;
  width: 100%;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-hover);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--cdx-ghost);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--cdx-accent);
}

.form-input.is-error,
.form-textarea.is-error {
  border-bottom-color: var(--cdx-error);
  color: var(--cdx-error);
}

.form-error-msg {
  font-size: 12px;
  color: var(--cdx-error);
  margin-top: 4px;
  display: block;
}

.form-input.is-valid,
.form-textarea.is-valid {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}


/* ─────────────────────────────────────────────────────────────
   FLUENT FORMS — DESIGN SYSTEM OVERRIDE
   Fluent Forms ships its own stylesheet; rather than fight its
   specificity we re-skin its generated markup directly so the
   contact form matches .form-field/.form-input exactly (same
   underline-input pattern, same tokens, same focus states).
   ───────────────────────────────────────────────────────────── */

.cdx-form-wrap .fluentform form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cdx-form-wrap .ff-el-group {
  margin: 0;
}

.cdx-form-wrap .ff-el-input--label {
  display: block;
  margin-bottom: 8px;
}

.cdx-form-wrap .ff-el-input--label label {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cdx-ghost);
}

.cdx-form-wrap .ff-el-form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cdx-white);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  padding: 12px 0;
  width: 100%;
  outline: none;
  box-shadow: none;
  transition: border-color var(--dur-base) var(--ease-hover);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.cdx-form-wrap textarea.ff-el-form-control {
  resize: vertical;
  min-height: 120px;
}

.cdx-form-wrap select.ff-el-form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236A7F99' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.cdx-form-wrap select.ff-el-form-control option {
  background: var(--navy-surface);
  color: var(--cdx-white);
}

.cdx-form-wrap .ff-el-form-control::placeholder {
  color: var(--cdx-ghost);
}

.cdx-form-wrap .ff-el-form-control:focus {
  border-bottom-color: var(--cdx-accent);
}

.cdx-form-wrap .error,
.cdx-form-wrap .ff-el-form-control.error {
  color: var(--cdx-error);
}

.cdx-form-wrap .ff-el-form-control.error,
.cdx-form-wrap .error .ff-el-form-control {
  border-bottom-color: var(--cdx-error);
}

.cdx-form-wrap .error {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.cdx-form-wrap .ff_submit_btn_wrapper {
  margin-top: 8px;
}

.cdx-form-wrap .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  background: var(--cdx-accent) !important;
  color: var(--cdx-white) !important;
  border: none;
  border-radius: 4px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-hover);
}

.cdx-form-wrap .ff-btn-submit:hover {
  background: var(--cdx-hover) !important;
}

.cdx-form-wrap .ff-message-success,
.cdx-form-wrap .success_message {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--cdx-success);
}


/* ─────────────────────────────────────────────────────────────
   SECTION HEADER BLOCK (label + headline + optional subhead)
   ───────────────────────────────────────────────────────────── */

.section-header {
  margin-bottom: 64px;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .section-header,
  .section-header--center {
    margin-bottom: 40px;
  }
}


/* ─────────────────────────────────────────────────────────────
   PROOF BAR / CREDENTIAL TOKENS
   ───────────────────────────────────────────────────────────── */

.proof-bar {
  border-top: 1px solid var(--border-dark-subtle);
  border-bottom: 1px solid var(--border-dark-subtle);
  padding: 48px 0;
}

.proof-bar.light-section {
  border-top-color: var(--light-border);
  border-bottom-color: var(--light-border);
}

.credential-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--cdx-ghost);
}

.credential-token::before {
  content: '●';
  font-size: 8px;
  color: var(--cdx-accent);
}

.light-section .credential-token {
  background: var(--surface-light);
  border-color: var(--light-border);
  color: var(--light-muted);
}


/* ─────────────────────────────────────────────────────────────
   METHODOLOGY RAIL — step nodes
   ───────────────────────────────────────────────────────────── */

.method-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cdx-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--weight-regular);
  color: var(--cdx-accent);
  flex-shrink: 0;
}

.method-connector {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.light-section .method-connector {
  background: rgba(0, 0, 0, 0.10);
}

/* Rail layout — horizontal desktop, vertical mobile */
.cdx-method-rail {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.cdx-method-step {
  flex: 1;
  min-width: 0;
}

.cdx-method-node-row {
  display: flex;
  align-items: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .cdx-method-rail {
    flex-direction: column;
    gap: 32px;
  }

  .cdx-method-node-row {
    width: auto;
  }

  .method-connector {
    display: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo__svg {
  height: 36px;
  width: auto;
}

.footer-tagline-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-regular);
  color: var(--cdx-ghost);
  margin-top: 16px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.footer-social__link {
  color: var(--cdx-ghost);
  display: inline-flex;
  transition: color var(--dur-fast) var(--ease-hover);
}

.footer-social__link:hover {
  color: var(--cdx-mist);
}

.footer-col-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cdx-ghost);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-regular);
  color: var(--cdx-ghost);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-hover);
}

.footer-links a:hover {
  color: var(--cdx-mist);
}

.footer-email {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cdx-ghost);
  transition: color var(--dur-fast) var(--ease-hover);
}

.footer-email:hover {
  color: var(--cdx-accent);
}

.footer-tagline-bar {
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent 0%, rgba(0, 196, 168, 0.3) 50%, transparent 100%) 1;
  padding: 10px 0;
}

.footer-copyright-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright-bar a {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--dur-fast) var(--ease-hover);
}

.footer-copyright-bar a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* Footer — tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

/* Footer — mobile */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-copyright-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PHASE 7 — PAGE-SPECIFIC COMPONENTS
   About page + SFCC Service page
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   NARRATIVE SECTION (About — founding prose, light bg)
   ───────────────────────────────────────────────────────────── */

.cdx-narrative {
  max-width: 760px;
  margin: 0 auto;
}

.cdx-narrative p + p {
  margin-top: 24px;
}

.cdx-narrative__closing {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--light-border);
}

/* ─────────────────────────────────────────────────────────────
   OPERATING PRINCIPLES (About — 4 dark cards, 2-col grid)
   ───────────────────────────────────────────────────────────── */

.cdx-principle-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--card-pad);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  transition:
    border-color var(--dur-base) var(--ease-hover),
    transform    var(--dur-base) var(--ease-hover),
    box-shadow   var(--dur-base) var(--ease-hover);
}

.cdx-principle-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), 0 0 32px rgba(0, 196, 168, 0.06);
}

.light-section .cdx-principle-card {
  background: var(--surface-light);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .cdx-principle-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.cdx-principle-card__number {
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: 13px;
  color: var(--cdx-accent);
  letter-spacing: 0.04em;
}

.cdx-principle-card__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
}

.cdx-principle-card__body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   TEAM MEMBER CARDS (About — CPT query or empty state)
   ───────────────────────────────────────────────────────────── */

.cdx-team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--card-pad);
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
}

.cdx-team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon);
  background: var(--navy-mid);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cdx-team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdx-team-card__name {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--cdx-white);
  margin: 0;
}

.cdx-team-card__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  margin: 0;
}

.cdx-team-card__credential {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-caption);
  color: var(--cdx-ghost);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.cdx-team-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--cdx-accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
  transition: color var(--dur-fast) var(--ease-hover);
}

.cdx-team-card__linkedin:hover {
  color: var(--cdx-hover);
}

/* ─────────────────────────────────────────────────────────────
   OUTCOME LIST (SFCC — "What we deliver", numbered rows)
   ───────────────────────────────────────────────────────────── */

.cdx-outcome-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-dark);
}

.cdx-outcome-list .cdx-outcome-item:first-child {
  border-top: 1px solid var(--border-dark);
}

.cdx-outcome-item__num {
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: 13px;
  color: var(--cdx-accent);
  letter-spacing: 0.04em;
  padding-top: 3px;
  flex-shrink: 0;
  width: 24px;
}

.cdx-outcome-item__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--cdx-white);
  margin: 0 0 6px 0;
}

.cdx-outcome-item__body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  line-height: 1.7;
  margin: 0;
}

.light-section .cdx-outcome-item {
  border-color: var(--light-border);
}
.light-section .cdx-outcome-item__title { color: var(--light-text); }
.light-section .cdx-outcome-item__body  { color: var(--light-muted); }

/* ─────────────────────────────────────────────────────────────
   APPROACH PANELS (SFCC — 3-panel "Our approach")
   ───────────────────────────────────────────────────────────── */

.cdx-approach-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--card-pad);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  transition:
    border-color var(--dur-base) var(--ease-hover),
    transform    var(--dur-base) var(--ease-hover),
    box-shadow   var(--dur-base) var(--ease-hover);
}

.cdx-approach-panel:hover {
  border-color: rgba(0, 196, 168, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), 0 0 32px rgba(0, 196, 168, 0.06);
}

.light-section .cdx-approach-panel {
  background: var(--surface-light);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .cdx-approach-panel:hover {
  border-color: rgba(0, 196, 168, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.cdx-approach-panel__icon {
  width: 40px;
  height: 40px;
  background: var(--navy-light);
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition:
    background   var(--dur-base) var(--ease-hover),
    border-color var(--dur-base) var(--ease-hover);
}

.cdx-approach-panel:hover .cdx-approach-panel__icon {
  background: rgba(0, 196, 168, 0.12);
  border-color: rgba(0, 196, 168, 0.28);
}

.light-section .cdx-approach-panel__icon {
  background: var(--surface-alt);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .cdx-approach-panel:hover .cdx-approach-panel__icon {
  background: rgba(0, 196, 168, 0.10);
  border-color: rgba(0, 196, 168, 0.28);
}

.cdx-approach-panel__icon i {
  font-size: 20px;
  color: var(--cdx-accent);
}

.cdx-approach-panel__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--color-text);
  margin: 0;
}

.cdx-approach-panel__body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   TECHNOLOGY COVERAGE (SFCC — grouped tag chips)
   ───────────────────────────────────────────────────────────── */

.cdx-tech-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cdx-tech-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cdx-tech-group__label {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  color: var(--cdx-ghost);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cdx-tech-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   ENGAGEMENT MODEL CARDS (SFCC)
   ───────────────────────────────────────────────────────────── */

.cdx-engagement-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--card-pad);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  transition:
    border-color var(--dur-base) var(--ease-hover),
    transform    var(--dur-base) var(--ease-hover),
    box-shadow   var(--dur-base) var(--ease-hover);
}

.cdx-engagement-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), 0 0 32px rgba(0, 196, 168, 0.06);
}

.light-section .cdx-engagement-card {
  background: var(--surface-light);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .cdx-engagement-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.cdx-engagement-card__label {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  color: var(--cdx-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cdx-engagement-card__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: 20px;
  color: var(--cdx-white);
  line-height: 1.3;
  margin: 0;
}

.cdx-engagement-card__body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.light-section .cdx-engagement-card__title { color: var(--light-text); }
.light-section .cdx-engagement-card__body  { color: var(--light-muted); }

/* ─────────────────────────────────────────────────────────────
   FAQ ACCORDION (vanilla JS — .is-open toggled by faq.js)
   ───────────────────────────────────────────────────────────── */

.cdx-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-dark);
}

.cdx-faq-item {
  border-bottom: 1px solid var(--border-dark);
}

.cdx-faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.cdx-faq-trigger__text {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--cdx-white);
  line-height: 1.4;
  transition: color var(--dur-base) var(--ease-hover);
}

.cdx-faq-trigger:hover .cdx-faq-trigger__text {
  color: var(--cdx-accent);
}

.cdx-faq-trigger__icon {
  font-size: 20px;
  color: var(--cdx-ghost);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-hover),
              color var(--dur-base) var(--ease-hover);
}

.cdx-faq-item.is-open .cdx-faq-trigger__icon {
  transform: rotate(180deg);
  color: var(--cdx-accent);
}

/* Grid-row animation — collapses to 0 height without layout shift */
.cdx-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-hover);
}

.cdx-faq-item.is-open .cdx-faq-answer {
  grid-template-rows: 1fr;
}

.cdx-faq-answer__inner {
  overflow: hidden;
}

.cdx-faq-answer__text {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  color: var(--cdx-mist);
  line-height: 1.8;
  padding-bottom: 24px;
  margin: 0;
}

/* ── Light section overrides ── */
.light-section .cdx-faq-list  { border-top-color:    var(--light-border); }
.light-section .cdx-faq-item  { border-bottom-color: var(--light-border); }

.light-section .cdx-faq-trigger__text {
  color: var(--light-text);
}
.light-section .cdx-faq-trigger:hover .cdx-faq-trigger__text {
  color: var(--cdx-accent);
}
.light-section .cdx-faq-trigger__icon {
  color: var(--light-ghost);
}
.light-section .cdx-faq-item.is-open .cdx-faq-trigger__icon {
  color: var(--cdx-accent);
}
.light-section .cdx-faq-answer__text {
  color: var(--light-muted);
}

/* ─────────────────────────────────────────────────────────────
   RELATED INSIGHTS STRIP (compact 2-up)
   ───────────────────────────────────────────────────────────── */

.cdx-related-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}

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


/* ═══════════════════════════════════════════════════════════════
   PHASE 8 — PAGE-SPECIFIC COMPONENTS
   Services Hub, Partners page, Work archive
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   SERVICES HUB — service overview card (expanded from homepage)
   Inherits .card base; these modifiers add a top-accent stripe
   and a category label area for the hub layout.
   ───────────────────────────────────────────────────────────── */

.cdx-service-hub-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--card-pad);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  transition: border-color var(--dur-base) var(--ease-hover),
              transform var(--dur-base) var(--ease-hover),
              box-shadow var(--dur-base) var(--ease-hover);
  text-decoration: none;
}

.cdx-service-hub-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), 0 0 32px rgba(0, 196, 168, 0.07);
}

.light-section .cdx-service-hub-card {
  background: var(--surface-light);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .cdx-service-hub-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.cdx-service-hub-card__icon {
  width: 40px;
  height: 40px;
  background: var(--navy-light);
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background   var(--dur-base) var(--ease-hover),
    border-color var(--dur-base) var(--ease-hover);
  border: 1px solid transparent;
}

.cdx-service-hub-card:hover .cdx-service-hub-card__icon {
  background: rgba(0, 196, 168, 0.12);
  border-color: rgba(0, 196, 168, 0.28);
}

.light-section .cdx-service-hub-card__icon {
  background: var(--surface-alt);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .cdx-service-hub-card:hover .cdx-service-hub-card__icon {
  background: rgba(0, 196, 168, 0.10);
  border-color: rgba(0, 196, 168, 0.28);
}

.cdx-service-hub-card__icon i {
  font-size: 20px;
  color: var(--cdx-accent);
}

.cdx-service-hub-card__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--color-text);
  margin: 0;
}

.cdx-service-hub-card__body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.cdx-service-hub-card .link-arrow {
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   PARTNERS PAGE — partnership model cards + benefits grid
   ───────────────────────────────────────────────────────────── */

.cdx-partner-model-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--card-pad);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  transition:
    border-color var(--dur-base) var(--ease-hover),
    transform    var(--dur-base) var(--ease-hover),
    box-shadow   var(--dur-base) var(--ease-hover);
}

.cdx-partner-model-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover), 0 0 32px rgba(0, 196, 168, 0.06);
}

.light-section .cdx-partner-model-card {
  background: var(--surface-light);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-section .cdx-partner-model-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.cdx-partner-model-card__label {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  color: var(--cdx-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cdx-partner-model-card__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: 20px;
  color: var(--cdx-white);
  line-height: 1.3;
  margin: 0;
}

.cdx-partner-model-card__body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.light-section .cdx-partner-model-card__title { color: var(--light-text); }
.light-section .cdx-partner-model-card__body  { color: var(--light-muted); }

/* Benefits checklist items */
.cdx-benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cdx-benefit-item i {
  font-size: 16px;
  color: var(--cdx-success);
  margin-top: 2px;
  flex-shrink: 0;
}

.cdx-benefit-item__text {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  line-height: 1.6;
  margin: 0;
}

.light-section .cdx-benefit-item__text {
  color: var(--light-muted);
}

/* ─────────────────────────────────────────────────────────────
   CASE STUDY CARD (work archive — live posts state)
   ───────────────────────────────────────────────────────────── */

.cdx-case-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-hover),
              box-shadow var(--dur-base) var(--ease-hover),
              transform var(--dur-base) var(--ease-hover);
}

.cdx-case-card:hover {
  border-color: rgba(0, 196, 168, 0.25);
  box-shadow: var(--shadow-card-hover), 0 0 32px rgba(0, 196, 168, 0.07);
  transform: translateY(-3px);
}

.cdx-case-card__image-area {
  height: 180px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cdx-case-card__image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-hover);
}

.cdx-case-card:hover .cdx-case-card__image-area img {
  transform: scale(1.03);
}

.cdx-case-card__content {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.cdx-case-card__industry {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  color: var(--cdx-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cdx-case-card__headline {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--cdx-white);
  line-height: 1.4;
  margin: 0;
}

.cdx-case-card__descriptor {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  line-height: 1.6;
  margin: 0;
}

.cdx-case-card__metrics {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.cdx-case-card__metric-value {
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: 24px;
  color: var(--cdx-white);
  line-height: 1;
  display: block;
}

.cdx-case-card__metric-label {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: 11px;
  color: var(--cdx-ghost);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   PHASE 9 — INSIGHTS HUB + ARTICLE TEMPLATE
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   READING PROGRESS BAR (fixed top, 2px, accent colour)
   ───────────────────────────────────────────────────────────── */

#cdx-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cdx-accent);
  z-index: 99999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   CATEGORY FILTER PILLS (Insights archive)
   ───────────────────────────────────────────────────────────── */

.cdx-category-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cdx-category-filter__btn {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cdx-ghost);
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-ui);
  padding: 6px 16px;
  line-height: 1.5;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-hover),
              border-color var(--dur-fast) var(--ease-hover),
              background var(--dur-fast) var(--ease-hover);
}

.cdx-category-filter__btn:hover {
  color: var(--cdx-mist);
  border-color: var(--border-dark-hover);
}

.cdx-category-filter__btn.is-active {
  color: var(--cdx-accent);
  border-color: var(--cdx-accent);
  background: rgba(0, 196, 168, 0.08);
}

/* ─────────────────────────────────────────────────────────────
   FEATURED INSIGHT CARD (full-width editorial)
   ───────────────────────────────────────────────────────────── */

.cdx-insight-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 64px;
  transition: border-color var(--dur-base) var(--ease-hover),
              box-shadow var(--dur-base) var(--ease-hover);
}

.cdx-insight-featured:hover {
  border-color: var(--border-dark-hover);
  box-shadow: var(--shadow-card-hover);
}

.cdx-insight-featured__image {
  min-height: 300px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cdx-insight-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-hover);
}

.cdx-insight-featured:hover .cdx-insight-featured__image img {
  transform: scale(1.03);
}

.cdx-insight-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  gap: 20px;
}

.cdx-insight-featured__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cdx-insight-featured__badge {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cdx-white);
  background: rgba(0, 196, 168, 0.18);
  border: 1px solid rgba(0, 196, 168, 0.35);
  border-radius: var(--radius-ui);
  padding: 3px 10px;
}

.cdx-insight-featured__headline {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--cdx-white);
  line-height: 1.2;
  margin: 0;
  transition: color var(--dur-fast) var(--ease-hover);
}

.cdx-insight-featured:hover .cdx-insight-featured__headline {
  color: var(--cdx-accent);
}

.cdx-insight-featured__excerpt {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  color: var(--cdx-mist);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cdx-insight-featured__meta {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--cdx-ghost);
  margin: 0;
}

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

  .cdx-insight-featured__image {
    min-height: 220px;
  }

  .cdx-insight-featured__content {
    padding: 32px;
    gap: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   INSIGHT ARCHIVE CARD (3-col grid, JS-filterable)
   ───────────────────────────────────────────────────────────── */

.cdx-insight-card {
  display: block;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
}

.cdx-insight-card.is-hidden {
  display: none;
}

.cdx-insight-card__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body-lg);
  color: var(--cdx-white);
  line-height: 1.4;
  margin: 16px 0 0;
  transition: color var(--dur-base) var(--ease-hover);
}

.cdx-insight-card:hover .cdx-insight-card__title {
  color: var(--cdx-accent);
}

.cdx-insight-card__meta {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--cdx-ghost);
  margin-top: 12px;
}

/* ─────────────────────────────────────────────────────────────
   SUBSCRIPTION PLACEHOLDER (disabled — awaiting privacy policy)
   ───────────────────────────────────────────────────────────── */

.cdx-subscribe-placeholder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  max-width: 540px;
}

.cdx-subscribe-placeholder__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--cdx-white);
  margin: 0;
}

.cdx-subscribe-placeholder__body {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  line-height: 1.65;
  margin: 0;
}

.cdx-subscribe-placeholder__row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.cdx-subscribe-placeholder__input {
  flex-grow: 1;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--cdx-ghost);
  background: var(--navy-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-ui);
  padding: 10px 14px;
  cursor: not-allowed;
  outline: none;
}

.cdx-subscribe-placeholder__submit {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  color: var(--cdx-ghost);
  background: var(--navy-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-ui);
  padding: 10px 20px;
  cursor: not-allowed;
  white-space: nowrap;
}

.cdx-subscribe-placeholder__note {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--cdx-ghost);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   ARTICLE LAYOUT — single-cdx_insight
   ───────────────────────────────────────────────────────────── */

.cdx-article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px var(--gutter) 80px;
}

.cdx-article-header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 48px;
}

.cdx-article-header__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cdx-article-header__headline {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--cdx-white);
  line-height: 1.15;
  margin: 0 0 24px;
}

.cdx-article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--cdx-ghost);
}

.cdx-article-header__meta span + span::before {
  content: '·';
  margin: 0 8px;
}

/* ─────────────────────────────────────────────────────────────
   ARTICLE BODY TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */

.cdx-article-body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: 17px;
  line-height: 1.85;
  color: var(--cdx-mist);
}

.cdx-article-body > * + * {
  margin-top: 24px;
}

.cdx-article-body h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--cdx-white);
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 0;
}

.cdx-article-body h3 {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: 20px;
  color: var(--cdx-white);
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 0;
}

.cdx-article-body h4 {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--cdx-ghost);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 32px;
  margin-bottom: 0;
}

.cdx-article-body p {
  margin-top: 0;
  margin-bottom: 0;
}

.cdx-article-body a {
  color: var(--cdx-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--dur-fast) var(--ease-hover);
}

.cdx-article-body a:hover {
  opacity: 0.8;
}

.cdx-article-body ul,
.cdx-article-body ol {
  padding-left: 24px;
  margin-top: 0;
  margin-bottom: 0;
}

.cdx-article-body li {
  line-height: 1.7;
}

.cdx-article-body li + li {
  margin-top: 8px;
}

.cdx-article-body strong {
  font-weight: var(--weight-medium);
  color: var(--cdx-white);
}

/* Pull quote */
.cdx-article-body blockquote {
  margin: 0;
  padding: 28px 32px;
  border-left: 3px solid var(--cdx-accent);
  background: var(--navy-surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.cdx-article-body blockquote p {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: clamp(20px, 2vw, 24px);
  color: var(--cdx-white);
  line-height: 1.4;
  font-style: normal;
  margin: 0;
}

.cdx-article-body blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-style: normal;
  color: var(--cdx-ghost);
}

/* Code block */
.cdx-article-body pre {
  margin: 0;
  padding: 24px;
  background: var(--navy-deep);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  overflow-x: auto;
}

.cdx-article-body pre code {
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: 14px;
  line-height: 1.65;
  color: var(--cdx-mist);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Inline code */
.cdx-article-body code {
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: 0.875em;
  color: var(--cdx-accent);
  background: rgba(0, 196, 168, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Inline CTA block (add class="cdx-inline-cta" to a Gutenberg Group block) */
.cdx-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
}

.cdx-inline-cta__text {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .cdx-inline-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   AUTHOR BLOCK
   ───────────────────────────────────────────────────────────── */

.cdx-author-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  margin-top: 48px;
}

.cdx-author-block__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdx-author-block__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cdx-author-block__avatar i {
  font-size: 22px;
  color: var(--cdx-ghost);
}

.cdx-author-block__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.cdx-author-block__name {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  color: var(--cdx-white);
  margin: 0;
}

.cdx-author-block__role {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--cdx-mist);
  margin: 0;
}

.cdx-author-block__credential {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--cdx-ghost);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   SHARE BAR
   ───────────────────────────────────────────────────────────── */

.cdx-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
}

.cdx-share-bar__label {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  color: var(--cdx-ghost);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.cdx-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  color: var(--cdx-mist);
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-ui);
  padding: 8px 16px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-hover),
              border-color var(--dur-fast) var(--ease-hover);
}

.cdx-share-btn:hover {
  color: var(--cdx-white);
  border-color: var(--border-dark-hover);
}

.cdx-share-btn i {
  font-size: 16px;
}

.cdx-share-btn--copied {
  color: var(--cdx-success) !important;
  border-color: var(--cdx-success) !important;
}

/* ─────────────────────────────────────────────────────────────
   RELATED ARTICLES SECTION
   ───────────────────────────────────────────────────────────── */

.cdx-related-section {
  background: var(--navy-base);
  border-top: 1px solid var(--border-dark);
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ─────────────────────────────────────────────────────────────
   INSIGHTS — LIGHT-SECTION OVERRIDES
   Covers archive page and single article when sections carry
   .light-section. Raw dark vars (--cdx-white, --border-dark,
   --navy-surface) are not affected by the base .light-section
   token swap, so each component needs an explicit override.
   ───────────────────────────────────────────────────────────── */

/* Category filter pills */
.light-section .cdx-category-filter__btn {
  color: var(--light-ghost);
  border-color: var(--light-border);
}
.light-section .cdx-category-filter__btn:hover {
  color: var(--light-muted);
  border-color: var(--light-border-hover);
}
.light-section .cdx-category-filter__btn.is-active {
  color: var(--cdx-accent);
  border-color: var(--cdx-accent);
  background: rgba(0, 196, 168, 0.08);
}

/* Featured article card */
.light-section .cdx-insight-featured {
  background: var(--surface-light);
  border-color: var(--light-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.light-section .cdx-insight-featured:hover {
  border-color: var(--light-border-hover);
  box-shadow: 0 8px 28px rgba(0, 196, 168, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.light-section .cdx-insight-featured__badge {
  color: var(--cdx-accent);
  background: rgba(0, 196, 168, 0.10);
  border-color: rgba(0, 196, 168, 0.30);
}
.light-section .cdx-insight-featured__headline {
  color: var(--light-text);
}
.light-section .cdx-insight-featured:hover .cdx-insight-featured__headline {
  color: var(--cdx-accent);
}
.light-section .cdx-insight-featured__excerpt {
  color: var(--light-muted);
}
.light-section .cdx-insight-featured__meta {
  color: var(--light-ghost);
}

/* Grid insight cards */
.light-section .cdx-insight-card__title {
  color: var(--light-text);
}
.light-section .cdx-insight-card__meta {
  color: var(--light-ghost);
}

/* Subscribe placeholder */
.light-section .cdx-subscribe-placeholder {
  background: var(--surface-light);
  border-color: var(--light-border);
}
.light-section .cdx-subscribe-placeholder__title {
  color: var(--light-text);
}
.light-section .cdx-subscribe-placeholder__body {
  color: var(--light-muted);
}
.light-section .cdx-subscribe-placeholder__note {
  color: var(--light-ghost);
}

/* Article header */
.light-section .cdx-article-header {
  border-bottom-color: var(--light-border);
}
.light-section .cdx-article-header__headline {
  color: var(--light-text);
}
.light-section .cdx-article-header__meta {
  color: var(--light-ghost);
}

/* Article body — body text, headings, inline elements */
.light-section .cdx-article-body {
  color: var(--light-muted);
}
.light-section .cdx-article-body h2 {
  color: var(--light-text);
}
.light-section .cdx-article-body h3 {
  color: var(--light-text);
}
.light-section .cdx-article-body h4 {
  color: var(--light-ghost);
}
.light-section .cdx-article-body strong {
  color: var(--light-text);
}
.light-section .cdx-article-body blockquote {
  background: var(--surface-alt);
}
.light-section .cdx-article-body blockquote p {
  color: var(--light-text);
}
.light-section .cdx-article-body blockquote cite {
  color: var(--light-ghost);
}

/* Inline CTA block */
.light-section .cdx-inline-cta {
  background: var(--surface-light);
  border-color: var(--light-border);
}
.light-section .cdx-inline-cta__text {
  color: var(--light-muted);
}

/* Share bar */
.light-section .cdx-share-bar {
  border-top-color: var(--light-border);
}
.light-section .cdx-share-bar__label {
  color: var(--light-ghost);
}
.light-section .cdx-share-btn {
  color: var(--light-muted);
  background: var(--surface-light);
  border-color: var(--light-border);
}
.light-section .cdx-share-btn:hover {
  color: var(--light-text);
  border-color: var(--light-border-hover);
}

/* Author block */
.light-section .cdx-author-block {
  background: var(--surface-light);
  border-color: var(--light-border);
}
.light-section .cdx-author-block__avatar {
  background: var(--surface-alt);
}
.light-section .cdx-author-block__avatar i {
  color: var(--light-ghost);
}
.light-section .cdx-author-block__name {
  color: var(--light-text);
}
.light-section .cdx-author-block__role {
  color: var(--light-muted);
}
.light-section .cdx-author-block__credential {
  color: var(--light-ghost);
}

/* Related articles — light override (.light-section takes lower precedence
   than .cdx-related-section background rule, so we need the combined selector) */
.light-section.cdx-related-section {
  background: var(--canvas);
  border-top-color: var(--light-border);
}


/* ─────────────────────────────────────────────────────────────
   HERO TRUST PILLS
   ───────────────────────────────────────────────────────────── */

.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(0, 196, 168, 0.20);
  border-radius: var(--radius-ui);
  background: rgba(0, 196, 168, 0.06);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--cdx-mist);
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────
   CLOSING CTA SECTION — ambient glow
   ───────────────────────────────────────────────────────────── */

.section-closing-cta {
  position: relative;
  overflow: hidden;
}

.section-closing-cta::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 196, 168, 0.22) 0%,
    rgba(0, 196, 168, 0.08) 40%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.section-closing-cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 95, 216, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.section-closing-cta .section-container {
  position: relative;
  z-index: 1;
}


/* ─────────────────────────────────────────────────────────────
   VISUAL COMPONENTS
   Methodology icons · Type comparison · Coverage pillars ·
   Partner capabilities · CTA confidence signals
   ───────────────────────────────────────────────────────────── */


/* ── Methodology step icon ──────────────────────────────────── */

.cdx-method-step-icon {
  margin-top: 16px;
  color: var(--cdx-accent);
  opacity: 0.85;
}


/* ── Positioning: split layout ──────────────────────────────── */

.cdx-positioning-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .cdx-positioning-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}


/* ── Type comparison cards ──────────────────────────────────── */

.cdx-type-comparison {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cdx-type-card {
  padding: 16px 20px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-card);
  background: var(--surface-alt);
}

.cdx-type-card--highlight {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}

.cdx-type-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cdx-type-card__icon-wrap {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-icon);
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  color: var(--light-ghost);
}

.cdx-type-card--highlight .cdx-type-card__icon-wrap {
  background: rgba(0, 196, 168, 0.12);
  color: var(--cdx-accent);
}

.cdx-type-card__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.cdx-type-card--highlight .cdx-type-card__label {
  color: var(--cdx-accent);
}

.cdx-type-card__traits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cdx-type-card__traits li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--light-muted);
}

.cdx-type-card--highlight .cdx-type-card__traits li {
  color: var(--light-text);
}


/* ── Canada: coverage pillars ───────────────────────────────── */

.cdx-coverage-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
  text-align: left;
}

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

.cdx-coverage-pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--surface-light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-card);
}

.cdx-coverage-pillar__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-icon);
  background: rgba(0, 196, 168, 0.08);
  color: var(--cdx-accent);
  flex-shrink: 0;
}

.cdx-coverage-pillar__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
  color: var(--light-text);
  margin: 0;
}

.cdx-coverage-pillar__body {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--light-muted);
  margin: 0;
}

/* ── Canada: premium split layout ──────────────────────────── */

.cdx-canada-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .cdx-canada-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.cdx-canada-credentials {
  border-top: 1px solid var(--light-border);
  margin-top: 32px;
}

.cdx-canada-credential {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-border);
}

.cdx-canada-credential i {
  font-size: 18px;
  color: var(--cdx-accent);
  flex-shrink: 0;
  width: 22px;
}

.cdx-canada-credential__label {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  color: var(--light-muted);
  margin: 0;
  line-height: 1.4;
}

.cdx-canada-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.28), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.cdx-canada-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Agency Partnership: editorial header ─────────────────────── */

.cdx-agency-header {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 40px;
}

/* Light-section card overrides for the 3-column engagement model grid */
.cdx-agency-cards .cdx-partner-model-card {
  background: var(--surface-light);
  border-color: rgba(0, 0, 0, 0.08);
}

.cdx-agency-cards .cdx-partner-model-card:hover {
  border-color: rgba(0, 196, 168, 0.28);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.cdx-agency-cards .cdx-approach-panel__icon {
  background: var(--surface-alt);
  border-color: rgba(0, 0, 0, 0.08);
}

.cdx-agency-cards .cdx-partner-model-card:hover .cdx-approach-panel__icon {
  background: rgba(0, 196, 168, 0.10);
  border-color: rgba(0, 196, 168, 0.28);
}

@media (max-width: 1024px) {
  .cdx-agency-header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
}

/* ── Agency Partnership: capabilities strip ─────────────────── */

.cdx-partner-capabilities {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.cdx-partner-cap-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-ghost);
  margin-bottom: 12px;
}

.cdx-partner-cap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cdx-partner-cap-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-ui);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cdx-engagement-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cdx-engagement-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-ui);
  background: var(--accent-tint);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
  color: var(--cdx-accent);
}


/* ── Closing CTA: confidence signals ────────────────────────── */

.cdx-cta-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cdx-cta-signal {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.cdx-cta-signal i {
  font-size: 14px;
  color: var(--cdx-success);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────
   HOMEPAGE HERO — SPLIT LAYOUT (v2)
   Left-aligned editorial column + right platform spec panel.
   Distinct from centered blob/particle agency hero pattern.
   ───────────────────────────────────────────────────────────── */

.cdx-hero-split {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 56px;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--bar-height) + 44px);
  padding-bottom: 52px;
}

@media (max-width: 1100px) {
  .cdx-hero-split {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: calc(var(--nav-height) + var(--bar-height) + 40px);
    padding-bottom: 48px;
  }
}

/* Inline trust signal separator — accent-tinted dot */
.cdx-hero-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cdx-accent);
  opacity: 0.45;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────
   PLATFORM SPECIFICATION PANEL
   Homepage hero right column — technical spec-sheet aesthetic:
   monospaced section headers, key-value rows, capability grid.
   ───────────────────────────────────────────────────────────── */

.cdx-platform-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.026);
  overflow: hidden;
}

.cdx-platform-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(0, 196, 168, 0.55) 50%,
    transparent 95%
  );
  pointer-events: none;
}

.cdx-platform-panel__section {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cdx-platform-panel__section:last-child {
  border-bottom: none;
}

.cdx-platform-panel__heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-regular);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cdx-ghost);
  margin: 0 0 14px;
}

.cdx-platform-panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cdx-platform-panel__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cdx-platform-panel__key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-regular);
  color: var(--cdx-ghost);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.cdx-platform-panel__val {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--cdx-mist);
  text-align: right;
  line-height: 1.4;
}

.cdx-platform-panel__caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
}

.cdx-platform-panel__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-regular);
  color: var(--cdx-mist);
  line-height: 1.3;
}

.cdx-platform-panel__cap-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cdx-accent);
  flex-shrink: 0;
  opacity: 0.65;
}

@media (max-width: 1100px) {
  .cdx-platform-panel {
    display: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   PLATFORM DIAGNOSTIC PANEL
   Animated hero right column — commerce platform assessment
   terminal. Replaces the static spec panel with a live-looking
   capability scan that reveals SFCC technical depth on load.
   ───────────────────────────────────────────────────────────── */

.cdx-panel-diag {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.026);
  overflow: hidden;
}

/* Teal top-edge highlight */
.cdx-panel-diag::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 196, 168, 0.38) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Periodic scan line — sweeps vertically every 7s */
.cdx-panel-diag__scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 196, 168, 0.22) 50%, transparent 100%);
  animation: diag-scan 7s cubic-bezier(0.4, 0, 0.6, 1) 2.8s infinite;
  pointer-events: none;
  z-index: 3;
}

/* ── Header ── */

.cdx-panel-diag__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 196, 168, 0.04);
}

.cdx-panel-diag__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cdx-accent);
  flex-shrink: 0;
  animation: diag-pulse 2.6s ease-in-out infinite;
}

.cdx-panel-diag__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cdx-accent);
  flex: 1;
}

.cdx-panel-diag__cursor {
  display: inline-block;
  width: 7px;
  height: 11px;
  background: var(--cdx-accent);
  opacity: 0;
  animation: diag-cursor 1s step-end 3.2s infinite;
}

/* ── Sections ── */

.cdx-panel-diag__section {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cdx-panel-diag__section:last-child {
  border-bottom: none;
}

/* ── Profile rows ── */

.cdx-panel-diag__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cdx-panel-diag__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cdx-panel-diag__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cdx-ghost);
  text-transform: uppercase;
  white-space: nowrap;
}

.cdx-panel-diag__val {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--cdx-mist);
  text-align: right;
  line-height: 1.4;
}

/* ── Capability scan ── */

.cdx-panel-diag__scan-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cdx-ghost);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cdx-panel-diag__cap {
  display: flex;
  align-items: center;
  padding: 4px 0;
  opacity: 0;
  animation: diag-cap-in 320ms var(--ease-entrance) forwards;
}

.cdx-panel-diag__cap-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 246, 250, 0.72);
  white-space: nowrap;
}

.cdx-panel-diag__cap-dots {
  flex: 1;
  height: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  margin: 0 8px;
  position: relative;
  top: 1px;
}

.cdx-panel-diag__cap-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  color: rgba(244, 246, 250, 0.32);
  opacity: 0;
  animation: diag-status-in 200ms var(--ease-entrance) forwards;
  white-space: nowrap;
}

.cdx-panel-diag__cap-status--active {
  color: var(--cdx-accent);
}

/* Stagger: panel fully visible at ~740ms — rows cascade from 900ms */
.cdx-panel-diag__cap--1 { animation-delay: 0.90s; }
.cdx-panel-diag__cap--2 { animation-delay: 1.08s; }
.cdx-panel-diag__cap--3 { animation-delay: 1.26s; }
.cdx-panel-diag__cap--4 { animation-delay: 1.44s; }
.cdx-panel-diag__cap--5 { animation-delay: 1.62s; }
.cdx-panel-diag__cap--6 { animation-delay: 1.80s; }

/* Status badges resolve 280ms after their row */
.cdx-panel-diag__cap--1 .cdx-panel-diag__cap-status { animation-delay: 1.18s; }
.cdx-panel-diag__cap--2 .cdx-panel-diag__cap-status { animation-delay: 1.36s; }
.cdx-panel-diag__cap--3 .cdx-panel-diag__cap-status { animation-delay: 1.54s; }
.cdx-panel-diag__cap--4 .cdx-panel-diag__cap-status { animation-delay: 1.72s; }
.cdx-panel-diag__cap--5 .cdx-panel-diag__cap-status { animation-delay: 1.90s; }
.cdx-panel-diag__cap--6 .cdx-panel-diag__cap-status { animation-delay: 2.08s; }

/* ── Footer ── */

.cdx-panel-diag__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 196, 168, 0.03);
  opacity: 0;
  animation: diag-in 380ms ease 2.25s forwards;
}

.cdx-panel-diag__ready-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cdx-accent);
  animation: diag-pulse 3s ease-in-out 2.6s infinite;
}

.cdx-panel-diag__ready-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--cdx-accent);
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .cdx-panel-diag {
    display: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   INNER PAGE HERO SYSTEM
   Used on all service, about, contact, and partner pages.
   Left-aligned with breadcrumb path + headline accent border.
   ───────────────────────────────────────────────────────────── */

.cdx-inner-hero {
  position: relative;
  background: var(--navy-deep);
  padding-top: calc(var(--nav-height) + var(--bar-height) + 72px);
  padding-bottom: 80px;
  overflow: hidden;
}


.cdx-inner-hero__content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.cdx-inner-hero__path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-regular);
  letter-spacing: 0.04em;
  color: var(--cdx-ghost);
  margin-bottom: 28px;
}

.cdx-inner-hero__path-sep {
  opacity: 0.35;
}

.cdx-inner-hero__path-current {
  color: var(--cdx-accent);
  opacity: 0.85;
}

.cdx-inner-hero__headline {
  padding-left: 20px;
  border-left: 2px solid var(--cdx-accent);
}

.cdx-inner-hero__subhead {
  max-width: 560px;
  margin-top: 24px;
  margin-left: 22px;
}

.cdx-inner-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  margin-left: 22px;
}

.cdx-inner-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  margin-left: 22px;
}

@media (max-width: 768px) {
  .cdx-inner-hero {
    padding-top: calc(var(--nav-height) + var(--bar-height) + 48px);
    padding-bottom: 56px;
  }

  .cdx-inner-hero__headline {
    padding-left: 14px;
  }

  .cdx-inner-hero__subhead,
  .cdx-inner-hero__tags,
  .cdx-inner-hero__actions {
    margin-left: 16px;
  }
}


/* ─────────────────────────────────────────────────────────────
   PRECISION DIAGRAMS — inline SVG architecture schematics
   ───────────────────────────────────────────────────────────── */

.cdx-diagram-section {
  background: var(--navy-deep);
}

.cdx-diagram-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 24px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.cdx-diagram-wrap svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.cdx-diagram-caption {
  color: var(--cdx-ghost);
  font-size: var(--text-small);
  line-height: 1.65;
  margin-top: 8px;
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────────────────────
   METRICS STRIP — social proof block, dark section
   ───────────────────────────────────────────────────────────── */

.cdx-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cdx-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.cdx-metric:last-child {
  border-right: none;
}

.cdx-metric__value {
  font-family: var(--font-display);
  font-size: var(--text-metric);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--cdx-accent);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  transition: color 200ms;
}

.cdx-metric__label {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--cdx-mist);
  line-height: 1.55;
  max-width: 210px;
}

.cdx-metric__sublabel {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cdx-ghost);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .cdx-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .cdx-metric:nth-child(2) {
    border-right: none;
  }

  .cdx-metric:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 540px) {
  .cdx-metrics-strip {
    grid-template-columns: 1fr;
  }

  .cdx-metric {
    padding: 32px 24px;
    border-right: none;
  }

  .cdx-metric__value {
    font-size: 44px;
  }
}

/* ─────────────────────────────────────────────────────────────
   ANNOUNCEMENT BAR
   Slim availability signal above the nav
   ───────────────────────────────────────────────────────────── */

.cdx-announcement-bar {
  background: var(--navy-light);
  padding: 10px 24px;
  text-align: center;
}

.cdx-announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}

.cdx-announcement-bar__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cdx-accent);
  flex-shrink: 0;
  animation: cdx-pulse 2.4s ease-in-out infinite;
}

@keyframes cdx-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.cdx-announcement-bar__text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cdx-mist);
  margin: 0;
  line-height: 1.5;
}

.cdx-announcement-bar__link {
  color: var(--cdx-accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
  margin-left: 10px;
  white-space: nowrap;
}

.cdx-announcement-bar__link:hover {
  color: var(--cdx-hover);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cdx-announcement-bar {
    padding: 8px 16px;
  }
  .cdx-announcement-bar__text {
    font-size: 12px;
  }
  .cdx-announcement-bar__link {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
}

/* ─────────────────────────────────────────────────────────────
   PROOF / AUTHORITY STRIP  (replaces old credential-token row)
   ───────────────────────────────────────────────────────────── */

.cdx-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.cdx-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid var(--color-border);
}

.cdx-proof-item:last-child {
  border-right: none;
}

.cdx-proof-item__value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--weight-normal);
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cdx-proof-item__label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .cdx-proof-strip {
    grid-template-columns: 1fr;
  }
  .cdx-proof-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .cdx-proof-item:last-child {
    border-bottom: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   HOMEPAGE FAQ SECTION
   Accordion variant for homepage (no JS dependency — CSS only)
   ───────────────────────────────────────────────────────────── */

.cdx-home-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.cdx-home-faq__item {
  border-bottom: 1px solid var(--color-border);
}

.cdx-home-faq__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.cdx-home-faq__trigger:hover .cdx-home-faq__q {
  color: var(--cdx-accent);
}

.cdx-home-faq__q {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--color-text);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.cdx-home-faq__icon {
  color: var(--cdx-accent);
  flex-shrink: 0;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.cdx-home-faq__item.is-open .cdx-home-faq__icon {
  transform: rotate(180deg);
}

.cdx-home-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.cdx-home-faq__item.is-open .cdx-home-faq__answer {
  grid-template-rows: 1fr;
}

.cdx-home-faq__answer-inner {
  overflow: hidden;
}

.cdx-home-faq__a {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  padding-bottom: 20px;
  max-width: 640px;
}

/* ─────────────────────────────────────────────────────────────
   "WHO IS THIS FOR?" — SFCC page self-selection section
   ───────────────────────────────────────────────────────────── */

.cdx-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.cdx-who-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cdx-who-card__icon {
  color: var(--cdx-accent);
  font-size: 22px;
  margin-bottom: 4px;
}

.cdx-who-card__title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: 1.4;
}

.cdx-who-card__body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

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

/* ─────────────────────────────────────────────────────────────
   UPCOMING INSIGHTS PREVIEW CARDS
   Shown on homepage when no posts are published yet
   ───────────────────────────────────────────────────────────── */

.cdx-upcoming-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cdx-upcoming-card:hover {
  border-color: var(--cdx-accent);
  box-shadow: 0 4px 20px rgba(11, 143, 122, 0.08);
}

.cdx-upcoming-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cdx-accent);
}

.cdx-upcoming-card__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: 1.45;
}

.cdx-upcoming-card__meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-ghost);
}

/* ─────────────────────────────────────────────────────────────
   INLINE EMAIL CTA — used in closing CTA and service pages
   ───────────────────────────────────────────────────────────── */

.cdx-email-alt {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.cdx-email-alt a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cdx-email-alt a:hover {
  color: var(--cdx-accent);
  border-color: var(--cdx-accent);
}


/* ─────────────────────────────────────────────────────────────
   ARTICLE HERO SECTION
   ───────────────────────────────────────────────────────────── */

.cdx-article-hero {
  background: var(--navy-deep);
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 56px;
}

.cdx-article-hero--has-image {
  padding-bottom: 0;
}

/* Hero text constrained to readable width, centred */
.cdx-article-hero__text {
  max-width: 860px;
  margin: 0 auto;
}


/* ─────────────────────────────────────────────────────────────
   ARTICLE FEATURED IMAGE — dark→canvas gradient bridge
   ───────────────────────────────────────────────────────────── */

.cdx-article-feat-wrap {
  background: linear-gradient(to bottom, var(--navy-deep) 50%, var(--canvas) 50%);
}

/* Matches the two-column layout width so image aligns with content */
.cdx-article-feat-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.cdx-article-feat-img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.32);
}


/* ─────────────────────────────────────────────────────────────
   ARTICLE HEADER META — avatar chip inside dark hero
   ───────────────────────────────────────────────────────────── */

.cdx-article-meta__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cdx-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-medium);
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}

.cdx-article-meta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─────────────────────────────────────────────────────────────
   ARTICLE TWO-COLUMN LAYOUT
   [240px sticky TOC sidebar] + [1fr article content]
   ───────────────────────────────────────────────────────────── */

.cdx-article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 64px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

/* Sticky TOC column */
.cdx-toc-col {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
  align-self: start; /* essential for sticky inside grid */
  max-height: calc(100vh - var(--nav-height) - 80px);
  overflow-y: auto;
  /* hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cdx-toc-col::-webkit-scrollbar {
  display: none;
}

/* Right article column */
.cdx-article-main {
  min-width: 0; /* prevent overflow in grid */
}

/* Hide TOC column on narrower viewports; stack to single column */
@media (max-width: 1024px) {
  .cdx-article-layout {
    grid-template-columns: 1fr;
    max-width: 740px;
  }

  .cdx-toc-col {
    display: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   TABLE OF CONTENTS — sidebar style (no card border)
   ───────────────────────────────────────────────────────────── */

.cdx-toc {
  /* no outer border — integrated into the light page surface */
}

.cdx-toc__header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
}

.cdx-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.cdx-toc__item {
  counter-increment: toc-counter;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: opacity 0.2s;
}

.cdx-toc__item:last-child {
  border-bottom: none;
}

.cdx-toc__item::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-light);
  color: var(--cdx-accent);
  min-width: 20px;
  padding-top: 3px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.cdx-toc__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-regular);
  line-height: 1.5;
  color: var(--cdx-ghost);
  text-decoration: none;
  transition: color 0.2s;
}

.cdx-toc__link:hover {
  color: var(--cdx-mist);
}

.cdx-toc__item--active::before {
  color: var(--cdx-accent);
}

.cdx-toc__item--active .cdx-toc__link {
  color: var(--cdx-accent);
  font-weight: var(--weight-medium);
}

/* Light section overrides */
.light-section .cdx-toc__header {
  border-bottom-color: var(--light-border);
}

.light-section .cdx-toc__item {
  border-bottom-color: var(--light-border);
}

.light-section .cdx-toc__link {
  color: var(--light-ghost);
}

.light-section .cdx-toc__link:hover {
  color: var(--light-muted);
}

.light-section .cdx-toc__item--active .cdx-toc__link {
  color: var(--cdx-accent);
  font-weight: var(--weight-medium);
}


/* ─────────────────────────────────────────────────────────────
   AUTHOR CARD — replaces .cdx-author-block on single articles
   ───────────────────────────────────────────────────────────── */

.cdx-author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 32px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  margin-top: 48px;
}

.cdx-author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cdx-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdx-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdx-author-card__initial {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: var(--weight-medium);
  color: #fff;
  line-height: 1;
}

.cdx-author-card__body {
  flex: 1;
  min-width: 0;
}

.cdx-author-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cdx-author-card__name {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--cdx-white);
  margin: 0;
}

.cdx-author-card__role {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--cdx-ghost);
  margin: 4px 0 0;
}

.cdx-author-card__credential {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cdx-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 8px 0 0;
}

.cdx-author-card__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-ui);
  color: var(--cdx-ghost);
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}

.cdx-author-card__linkedin:hover {
  color: var(--cdx-white);
  border-color: var(--cdx-mist);
}

/* Light section overrides */
.light-section .cdx-author-card {
  border-color: var(--light-border);
}

.light-section .cdx-author-card__name {
  color: var(--light-text);
}

.light-section .cdx-author-card__role {
  color: var(--light-ghost);
}

.light-section .cdx-author-card__linkedin {
  border-color: var(--light-border);
  color: var(--light-ghost);
}

.light-section .cdx-author-card__linkedin:hover {
  color: var(--light-text);
  border-color: var(--light-text);
}

@media (max-width: 640px) {
  .cdx-author-card {
    flex-direction: column;
    padding: 24px 20px;
  }
}
