/* ── Fonts ────────────────────────────────────────────────── */
@font-face {
  font-family: 'Effra';
  src: url('assets/fonts/Effra Light/DesktopStaticFonts/Effra_Lt.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Effra';
  src: url('assets/fonts/Effra Regular/DesktopStaticFonts/Effra_Rg.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Effra';
  src: url('assets/fonts/Effra Medium/DesktopStaticFonts/Effra_Md.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Blue-navy palette */
  --navy:         #243C6E;   /* hero, CTA — vivid blue accent */
  --navy-dark:    #1C3060;
  --navy-mid:     #2D4B8A;
  --navy-light:   #30589E;

  /* Section backgrounds — grey-navy spectrum */
  --bg-base:      #14243A;   /* body / primary sections */
  --bg-alt:       #1B3050;   /* alt sections — slightly bluer */
  --bg-deep:      #0C1826;   /* stats, testimonials, footer */
  --bg-surface:   #1A2E45;   /* subtle card surface lift */

  --orange:       #FE6603;
  --orange-hover: #e55a00;
  --teal:         #03A5A5;
  --yellow:       #FFC100;
  --grey:         #808080;
  --white:        #FFFFFF;
  --text-muted:   rgba(255,255,255,0.62);
  --text-dim:     rgba(255,255,255,0.38);
  --border:       rgba(255,255,255,0.10);
  --border-light: rgba(255,255,255,0.07);
  --card-bg:      rgba(10,24,50,0.82);
  --card-hover:   rgba(15,32,62,0.92);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
  --shadow-glow:  0 0 32px rgba(254,102,3,0.18);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.15);
}

html { font-size: 16px; overflow-x: clip; }

body {
  font-family: 'Effra', 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden) so position:sticky on #hero works — hidden creates a scroll container that breaks sticky */
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Utility ──────────────────────────────────────────────── */
.lh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(254,102,3,0.35);
  background: rgba(254,102,3,0.10);
  color: var(--orange);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--white);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 16px;
}
.subtitle-wide {
  max-width: 100%;
}
@media (max-width: 640px) {
  .subtitle-wide { max-width: 600px; }
}

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  padding: 0 32px;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 20, 32, 0.68);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* Brand-coloured gradient hairline at bottom of scrolled bar */
#navbar.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(254,102,3,0.35) 25%,
    rgba(3,165,165,0.35) 75%,
    transparent 100%
  );
  pointer-events: none;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-cta {
  padding: 10px 22px;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 20px rgba(254,102,3,0.25);
}
.nav-cta:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(254,102,3,0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  margin-top: -1px;
  opacity: 0.55;
  transition: transform 0.22s ease, opacity 0.22s ease;
  flex-shrink: 0;
}
.nav-has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Invisible bridge so mouse can travel from link → panel without closing */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 264px;
  background: rgba(10, 20, 32, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.05) inset;
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.nav-drop-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-drop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-drop-all {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-radius: 0;
}
.nav-drop-all:hover {
  background: transparent !important;
  color: var(--orange-hover) !important;
}

/* Mobile nav accordion — handled in the 767px block below */

/* ── Hero scroll-scrubbed zone ────────────────────────────── */
#hero-scroll-wrapper {
  position: relative;  /* establishes stacking context for sticky children */
}

.hero-scroll-spacer {
  height: 75vh;        /* must match SPACER_VH in hero-bars.js — delays problem section until hero text starts moving */
  pointer-events: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh; /* mobile: excludes collapsing address bar */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
  background-color: #070F1A; /* matches SVG outer gradient — visible before JS paints */
  width: 100%;
  max-width: 100vw;
}

/* Animated SVG bars background */
#heroBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Left-to-right gradient: dark over text, opens up so video & network show through */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(20,36,58,0.96) 0%,
    rgba(20,36,58,0.82) 30%,
    rgba(20,36,58,0.42) 60%,
    rgba(20,36,58,0.08) 100%
  );
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 4;
  max-width: 720px;
  padding: 80px 32px 80px;
  margin-left: auto;
  margin-right: auto;
  will-change: transform;
}

/* Left-align on wider screens */
@media (min-width: 900px) {
  .hero-content {
    margin-left: max(32px, calc((100vw - 1200px)/2 + 32px));
    margin-right: 0;
    padding-left: 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(254,102,3,0.40);
  background: rgba(254,102,3,0.12);
  color: var(--orange);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--orange);
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 24px rgba(254,102,3,0.3);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(254,102,3,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 400;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ── Hero scroll indicator ───────────────────────────────── */
.hero-scroll {
  position: absolute;
  z-index: 4;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* ── Clients strip ────────────────────────────────────────── */
#clients-strip {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  overflow: hidden;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.client-name {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color var(--transition);
}
.client-name:hover { color: rgba(255,255,255,0.65); }

.client-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 108px 0;
}
.section-alt {
  background: var(--bg-alt);
}

/* ── Problem + Why sections — inside scroll wrapper ──────── */
/* Transparent so hero canvas persists as background throughout */
#problem,
#why {
  position: relative;
  z-index: 10;
  background: transparent;
}

.problem-title {
  max-width: 100%; /* let first sentence breathe on desktop */
  text-shadow: 0 2px 24px rgba(7,15,26,0.9), 0 1px 4px rgba(7,15,26,0.7);
}
@media (max-width: 640px) {
  .problem-title { max-width: 520px; } /* wrap naturally on mobile */
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.problem-card {
  background: rgba(8, 20, 40, 0.52);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.problem-card:hover {
  background: rgba(8, 20, 40, 0.70);
  border-color: rgba(254,102,3,0.28);
}

.problem-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(254,102,3,0.14);
  border: 1px solid rgba(254,102,3,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.problem-icon svg { width: 22px; height: 22px; color: var(--orange); }

.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Differentiators ──────────────────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}

/* ── Flip card wrapper ── */
.diff-card {
  perspective: 1000px;
  min-height: 280px;
  cursor: pointer;
  outline: none;
}

.diff-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.diff-card:hover .diff-card-inner,
.diff-card.flipped .diff-card-inner {
  transform: rotateY(180deg);
}

/* ── Shared face styles ── */
.diff-card-front,
.diff-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Front face ── */
.diff-card-front {
  background: rgba(8, 20, 40, 0.52);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  justify-content: center;
  align-items: flex-start;
}

/* Icon pinned to top-left, out of the normal flow */
.diff-card-front .diff-icon {
  position: absolute;
  top: 28px;
  left: 28px;
}

/* ── Back face ── */
.diff-card-back {
  background: rgba(8, 20, 40, 0.70);
  border: 1px solid rgba(254, 102, 3, 0.32);
  transform: rotateY(180deg);
  gap: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(254,102,3,0.06);
}
.diff-card-back::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.diff-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(254,102,3,0.14);
  border: 1px solid rgba(254,102,3,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diff-icon svg { width: 22px; height: 22px; color: var(--orange); }

.diff-card-front h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.01em;
}
.diff-card-back p {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

/* ── Flip hint icon on card fronts ── */
.diff-card-front::after,
.engagement-card-front::after {
  content: '';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FE6603' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 8 16 13'/%3E%3Cline x1='21' y1='8' x2='9' y2='8'/%3E%3Cpolyline points='8 21 3 16 8 11'/%3E%3Cline x1='3' y1='16' x2='15' y2='16'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.2s ease;
}
.diff-card:hover .diff-card-front::after,
.engagement-card:hover .engagement-card-front::after {
  opacity: 0.7;
}

/* ── Services ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  background: var(--card-hover);
  border-color: rgba(254,102,3,0.30);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.service-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* 7th card spans 4 columns on last row — centre it */
.service-card:last-child:nth-child(4n+3) {
  grid-column: span 1;
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(254,102,3,0.14);
  border: 1px solid rgba(254,102,3,0.28);
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; color: var(--orange); }

.service-number {
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white);
  flex: 1;
}

.service-preview {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
  margin-top: 4px;
  transition: gap var(--transition);
}
.service-card:hover .service-arrow { gap: 10px; }
.service-arrow svg { width: 14px; height: 14px; }

/* ── Stats ────────────────────────────────────────────────── */
#stats {
  background: var(--bg-deep);
  padding: 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 56px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 180px;
}

.stat-client {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Case Studies preview ─────────────────────────────────── */
/* ── Case study grid & cards ──────────────────────────────── */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.cs-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  outline: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cs-card:hover, .cs-card:focus-visible {
  background: var(--card-hover);
  border-color: rgba(254,102,3,0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.cs-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cs-meta-svc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Industry label */
.cs-industry-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Service line pill */
.cs-svc-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 3px 10px;
}

.cs-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
  flex: 1;
}

.cs-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Large stat callout on card */
.cs-stat-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(254,102,3,0.07);
  border: 1px solid rgba(254,102,3,0.18);
  border-radius: 8px;
  flex-wrap: wrap;
}
.cs-stat-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cs-stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

.cs-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
  margin-top: auto;
  transition: gap var(--transition);
}
.cs-card:hover .cs-link { gap: 10px; }
.cs-link svg { width: 14px; height: 14px; }

/* Case study card image */
.cs-img {
  height: 168px;
  margin: -36px -32px 8px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.cs-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,24,38,0.10) 0%,
    rgba(12,24,38,0.40) 55%,
    rgba(27,48,80,0.95) 100%
  );
}

/* ── Case study expand overlay ────────────────────────────── */
/* ── Case study expanded card ────────────────────────────── */

/* Backdrop */
#csOverlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 10, 22, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  box-sizing: border-box;
  pointer-events: none;
  transition: background 0.38s ease;
}
#csOverlay.is-open {
  background: rgba(4, 10, 22, 0.78);
  pointer-events: auto;
}

/* The card itself */
.cso-inner {
  position: relative;
  width: 100%;
  max-width: 1140px;
  max-height: 92vh;
  background: #162d4a;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.55),
    0 4px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* animation driven by JS via --ox, --oy, --sx, --sy CSS vars */
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Hero image strip */
.cso-img-strip {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}
.cso-img-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22,45,74,0) 30%, rgba(22,45,74,0.95) 100%);
}

/* Close button */
.cso-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.cso-close:hover { background: rgba(0,0,0,0.55); transform: scale(1.08); }

/* Scrollable content */
.cso-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 28px 32px 36px;
  box-sizing: border-box;
}

.cso-header {
  margin-bottom: 28px;
}
.cso-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cso-svc-tag {
  font-size: 11px;
  color: var(--teal);
  background: rgba(3,165,165,0.10);
  border: 1px solid rgba(3,165,165,0.22);
  border-radius: 100px;
  padding: 3px 10px;
}
.cso-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--white);
}

/* ── At-a-glance panel ───────────────────────────────────── */
.cso-snapshot {
  margin: 0 0 20px;
  background: linear-gradient(135deg, rgba(254,102,3,0.18) 0%, rgba(8,20,40,0.95) 55%, rgba(3,165,165,0.12) 100%);
  border: 1px solid rgba(254,102,3,0.40);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(254,102,3,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}
.cso-snapshot-metrics {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(254,102,3,0.22);
}
.cso-snapshot-metric {
  flex: 1;
  padding: 18px 16px;
  text-align: center;
  position: relative;
}
.cso-snapshot-metric + .cso-snapshot-metric::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 1px;
  background: rgba(254,102,3,0.25);
}
.cso-snapshot-value {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
  word-break: break-word;
}
.cso-snapshot-value--text {
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-weight: 600;
}
.cso-snapshot-label {
  font-size: 10px;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.3;
}
.cso-snapshot-col--services {
  flex: 0 0 auto;
  min-width: 160px;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.cso-snapshot-services {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.cso-snapshot-svc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ffffff;
  background: rgba(3,165,165,0.10);
  border: 1px solid rgba(3,165,165,0.28);
  border-radius: 4px;
  padding: 4px 10px;
  line-height: 1;
  width: fit-content;
}

.cso-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 20px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
}
.cso-scroll-hint svg {
  stroke: rgba(255,255,255,0.25);
  animation: csoScrollBounce 1.8s ease-in-out infinite;
}
@keyframes csoScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.cso-snapshot-summary {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.cso-snapshot-col {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cso-snapshot-col + .cso-snapshot-col {
  border-left: 1px solid rgba(255,255,255,0.08);
}
.cso-snapshot-col-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.cso-snapshot-col-text {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  line-height: 1.55;
}

/* Two-column layout: situation+contribution left, results+quote right */
.cso-body {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.cso-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cso-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 22px;
}
.cso-section.teal-accent {
  border-top: 2px solid var(--teal);
}
.cso-section.orange-accent {
  border-top: 2px solid var(--orange);
}
.cso-section h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.cso-section.orange-accent h4 {
  color: var(--orange);
}
.cso-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
}
.cso-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cso-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.cso-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.cso-section.orange-accent .cso-list li::before {
  background: var(--orange);
}

/* Quote */
.cso-quote {
  background: rgba(254,102,3,0.06);
  border: 1px solid rgba(254,102,3,0.18);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cso-quote-mark {
  font-size: 40px;
  color: var(--orange);
  line-height: 0.75;
  font-family: Georgia, serif;
  opacity: 0.65;
  flex-shrink: 0;
}
.cso-quote-content { flex: 1; }
.cso-quote blockquote {
  font-size: 14px;
  color: var(--white);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}
.cso-quote cite {
  font-size: 11px;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .cso-body { flex-direction: column; }
  .cso-scroll { padding: 20px 20px 28px; }
}

/* ── Testimonials ─────────────────────────────────────────── */
/* ── Client Voices — Crossfade Spotlight ─────────────────── */
.cv-section {
  background: var(--bg-deep);
  padding: 108px 0 80px;
  overflow: hidden;
  position: relative;
}

.cv-stage {
  display: grid;
  min-height: 320px;
  padding: 0 clamp(24px, 8vw, 180px);
}

.cv-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.cv-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cv-qmark {
  font-size: 72px;
  line-height: 0.7;
  color: var(--orange);
  opacity: 0.35;
  font-family: Georgia, serif;
  margin-bottom: 24px;
  display: block;
  user-select: none;
}

.cv-slide blockquote {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.75;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  max-width: 820px;
}

.cv-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cv-role {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
}

.cv-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.6;
  flex-shrink: 0;
}

.cv-industry {
  font-size: 12px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* progress bar */
.cv-progress-bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  margin: 40px auto 0;
  overflow: hidden;
}
.cv-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 2px;
  transition: width linear;
}

/* nav */
.cv-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.cv-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.cv-dot.is-active {
  background: var(--orange);
  transform: scale(1.4);
}

.cv-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.cv-arrow:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}
.cv-arrow svg { width: 15px; height: 15px; }

/* ── Insight card metadata row ───────────────────────────── */
.insight-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-dim);
}
.insight-card-byline {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}
.insight-card-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.insight-dot {
  opacity: 0.4;
}

/* ── Insights overlay ────────────────────────────────────── */
#insightsOverlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(4, 10, 22, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  box-sizing: border-box;
  pointer-events: none;
  transition: background 0.38s ease;
}
#insightsOverlay.is-open {
  background: rgba(4, 10, 22, 0.82);
  pointer-events: auto;
}

.insight-overlay-inner {
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
}

.insight-overlay-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}
.insight-overlay-meta strong { color: var(--white); }

/* ── Author bio box (inside article overlay) ─────────────── */
.insight-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  margin: 0 48px 36px;
  min-height: 80px;
}
.insight-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(254,102,3,0.35);
  background: rgba(254,102,3,0.08);
}
.insight-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}
.insight-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.insight-author-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}
.insight-author-role {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}
/* Floating vertical divider */
.insight-author-sep {
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  flex-shrink: 0;
  background: var(--orange);
  opacity: 0.45;
  border-radius: 1px;
}
/* Short bio on the right */
.insight-author-bio {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Article body typography inside overlay */
.insight-body {
  padding: 32px 48px 56px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-muted);
}
.insight-body h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.insight-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin: 26px 0 10px;
}
.insight-body p {
  margin: 0 0 18px;
}
.insight-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
}
.insight-body li {
  margin-bottom: 12px;
}
.insight-body strong {
  color: var(--white);
  font-weight: 500;
}

.insight-body ul ul {
  margin-top: 6px;
  margin-left: 20px;
}

.insight-download-wrap {
  padding: 0 48px 48px;
  display: flex;
}

.insight-download-wrap--top {
  padding: 32px 48px 0;
}

.insight-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s ease;
}

.insight-download-btn:hover {
  background: #e55a00;
  transform: translateY(-1px);
}

.insight-contact-link {
  display: inline-block;
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.insight-contact-link:hover {
  color: var(--orange);
}

@media (max-width: 640px) {
  .insight-body { padding: 24px 24px 40px; }
  .insight-download-wrap { padding: 0 24px 40px; }
  .insight-overlay-inner { max-height: 96vh; }
}

/* ── Articles preview (legacy, keep for now) ──────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  background: var(--card-hover);
  border-color: rgba(254,102,3,0.22);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.article-category {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--white);
  flex: 1;
}

.article-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-dim);
}

.article-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
  transition: gap var(--transition);
}
.article-card:hover .article-link { gap: 9px; }
.article-link svg { width: 13px; height: 13px; }

/* ── Article card image ───────────────────────────────────── */
.article-img {
  height: 136px;
  margin: -32px -28px 22px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.article-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,24,38,0.10) 0%,
    rgba(12,24,38,0.40) 55%,
    rgba(20,36,58,0.97) 100%
  );
}

/* ── Industries ───────────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: background var(--transition), border-color var(--transition);
}
.industry-card:hover {
  background: var(--card-hover);
  border-color: var(--border);
}

.industry-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(3,165,165,0.10);
  border: 1px solid rgba(3,165,165,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-icon svg { width: 22px; height: 22px; color: var(--teal); }

.industry-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}


/* ── Engagement models ────────────────────────────────────── */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.engagement-card {
  perspective: 1000px;
  min-height: 160px;
  cursor: pointer;
  outline: none;
  border-radius: var(--radius); /* match faces — prevents bg bleed at corners during flip */
}

.engagement-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.engagement-card:hover .engagement-card-inner,
.engagement-card.flipped .engagement-card-inner {
  transform: rotateY(180deg);
}

.engagement-card-front,
.engagement-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.engagement-card-front {
  background: rgba(8, 20, 40, 0.52);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
}

.engagement-card-back {
  background: rgba(8, 20, 40, 0.70);
  border: 1px solid rgba(254,102,3,0.32);
  transform: rotateY(180deg);
  gap: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(254,102,3,0.06);
}
.engagement-card-back::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.engagement-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(254,102,3,0.14);
  border: 1px solid rgba(254,102,3,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.engagement-icon svg { width: 22px; height: 22px; color: var(--orange); }

.engagement-card-front h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.engagement-card-back p {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

/* ── CTA section ──────────────────────────────────────────── */
#contact {
  background: transparent;
}
#cta {
  padding: 108px 0;
}

.cta-inner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 80px 64px;
  background: linear-gradient(135deg, rgba(254,102,3,0.10) 0%, rgba(3,165,165,0.06) 60%, rgba(255,193,0,0.04) 100%);
  border: 1px solid rgba(254,102,3,0.20);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.cta-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254,102,3,0.08) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.cta-inner p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #0C1826;           /* explicit — not variable — ensures solid colour on every page */
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
  position: relative;            /* sit above fixed mesh-bg canvases on sub-pages */
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-cert {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-cert svg { width: 14px; height: 14px; color: var(--teal); }

.footer-cols {
  display: flex;
  gap: 0;                        /* gap handled by equal flex columns */
  flex-wrap: wrap;
  flex: 1;
}

/* Equal-width columns so all three headings are perfectly equidistant */
.footer-col {
  flex: 1;
  min-width: 140px;
  padding: 0 32px;               /* equal horizontal padding = equal spacing between headings */
}
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child  { padding-right: 0; }

.footer-col h5 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

/* LinkedIn icon — replaces the old text legal links */
.footer-linkedin {
  display: flex;
  align-items: center;
  opacity: 0.32;
  transition: opacity 0.25s ease;
  text-decoration: none;
}
.footer-linkedin:hover { opacity: 0.72; }
.footer-linkedin svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
  display: block;
}

/* ── Section dividers — travelling light ─────────────────── */
.sec-divider {
  position: relative;
  height: 6px;           /* tall enough for reliable IntersectionObserver */
  overflow: hidden;
  z-index: 2;
  flex-shrink: 0;
}

/* The visible baseline */
.sec-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 1px;
  background: rgba(255,255,255,0.10);
}

.sec-divider-light {
  position: absolute;
  top: 50%;
  left: -320px;
  transform: translateY(-50%);
  width: 320px;
  height: 6px;
  border-radius: 99px;
  will-change: transform;
  pointer-events: none;
}

.sec-divider.orange .sec-divider-light {
  background: linear-gradient(to right,
    transparent 0%,
    rgba(254,102,3,0.60) 20%,
    rgba(254,102,3,1)    50%,
    rgba(255,193,0,0.80) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 24px 4px rgba(254,102,3,0.60),
    0 0  8px 2px rgba(254,102,3,1.00);
}

.sec-divider.teal .sec-divider-light {
  background: linear-gradient(to right,
    transparent 0%,
    rgba(3,165,165,0.60) 20%,
    rgba(3,165,165,1)    50%,
    rgba(3,165,165,0.70) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 24px 4px rgba(3,165,165,0.60),
    0 0  8px 2px rgba(3,165,165,1.00);
}

.sec-divider.fired .sec-divider-light {
  animation: sec-light-run 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes sec-light-run {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(calc(100vw + 640px)); }
}

/* ── Section slide-up entrance ────────────────────────────── */
.sec-slide {
  transform: translateY(44px);
  opacity: 0;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.60s ease;
}
.sec-slide.sec-in {
  transform: translateY(0);
  opacity: 1;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ── Section background imagery ──────────────────────────── */

/* Why Loop Horizon — background handled by hero canvas (transparent section) */

/* ── What We Do — shared particle background wrapper ─────── */
#what-we-do-bg {
  position: relative;
  background: #1a3050;
}

#circuitBg,
.circuit-bg-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55;
}

/* Denser cards over the particle background */
#what-we-do-bg .service-card {
  background: rgba(8, 20, 40, 0.52);
  border-color: rgba(255,255,255,0.10);
}
#what-we-do-bg .service-card:hover {
  background: rgba(8, 20, 40, 0.70);
}
#what-we-do-bg .engagement-card {
  /* No background on the outer card — front/back faces have their own;
     a background here shows as a dark box behind the faces during the flip */
  background: transparent;
}
#what-we-do-bg .engagement-card:hover {
  background: transparent;
}

#services {
  position: relative;
  z-index: 1;
  background: transparent;
}

#engage {
  position: relative;
  z-index: 1;
  background: transparent;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .diff-grid        { grid-template-columns: repeat(3, 1fr); }
  .services-grid    { grid-template-columns: repeat(3, 1fr); }
  .engagement-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .problem-grid     { grid-template-columns: repeat(2, 1fr); }
  .diff-grid        { grid-template-columns: repeat(2, 1fr); }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .cs-grid          { grid-template-columns: 1fr; }
  .articles-grid    { grid-template-columns: repeat(2, 1fr); }
  .industries-grid  { grid-template-columns: repeat(2, 1fr); }
  .engagement-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-inner      { grid-template-columns: repeat(2, 1fr); }
  .stat-item        { padding: 40px 24px; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:last-child   { border-right: none; }
  .testimonial-card { min-width: calc(50% - 10px); }
}

@media (max-width: 640px) {
  .lh-container        { padding: 0 20px; }
  .hero-content     { padding-left: 20px; padding-right: 20px; }
  .section          { padding: 72px 0; }
  .problem-grid     { grid-template-columns: 1fr; }
  .diff-grid        { grid-template-columns: 1fr; }
  .diff-card,
  .diff-card-inner  { min-height: 190px; }
  /* Front: stack title directly below icon, no centering gap */
  .diff-card-front  { justify-content: flex-start; padding-top: 86px; padding-bottom: 44px; }
  /* Back: tighter padding so text fits the reduced height */
  .diff-card-back   { padding: 24px 24px; }
  .services-grid    { grid-template-columns: 1fr; }
  .articles-grid    { grid-template-columns: 1fr; }
  .industries-grid  { grid-template-columns: repeat(2, 1fr); }
  .engagement-grid  { grid-template-columns: 1fr; }
  .stats-inner      { grid-template-columns: repeat(2, 1fr); }
  .stat-item        { padding: 32px 16px; }
  .stat-value       { font-size: 32px; }
  .stat-label       { font-size: 13px; max-width: 140px; }
  .testimonial-card { min-width: 85vw; }
  .cta-inner        { padding: 48px 28px; }
  .footer-top       { flex-direction: column; }
  .sec-divider      { display: none; }

  #navbar           { padding: 0 16px; }
  .nav-links        { display: none; }
  .nav-toggle       { display: flex; }
  .nav-cta          { display: none; }
  .nav-logo img     { height: 26px; }

  /* nav-links.open overridden fully in the 767px block */
  .nav-link { width: 100%; }

  /* ── Hero-scroll-wrapper gets the dark hero colour so problem/why sections
       (transparent) don't fall back to the lighter body bg ── */
  #hero-scroll-wrapper {
    background: #070F1A;
  }


  /* ── Disable scroll-reveal and section-slide animations on mobile ── */
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 { transition-delay: 0s; }

  .sec-slide,
  .sec-slide.sec-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* ── Hero mobile — background fixed, text scrolls on main thread ── */
  #hero {
    position: relative;   /* normal flow — hero-content scrolls naturally */
    top: auto;
    min-height: 100svh;
    width: 100%;
    overflow: visible;    /* allow fixed children to escape clip */
  }

  /* Background layers pinned to viewport, sized to large-viewport height so iOS
     address-bar show/hide doesn't cause the SVG to rescale (zoom effect). */
  #heroBg, #heroCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100lvh;  /* large viewport: stable size regardless of browser chrome */
  }

  /* Overlay also fixed on mobile — extends through challenge/why sections */
  .hero-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100lvh;
    z-index: 3;
  }

  /* Kill badge-dot pulse on mobile — fully static hero */
  .hero-badge-dot { animation: none; }

  /* Text content scrolls with the page, above fixed backgrounds */
  .hero-content {
    position: relative;
    z-index: 10;
  }

  /* Spacer is only needed for sticky mode */
  .hero-scroll-spacer { display: none; }

  /* ── Stop the fixed hero bar-chart bleeding into the sections below ──
     On mobile #heroBg/#heroCanvas are position:fixed and, by stacking order,
     paint over the in-flow Challenge/Why sections. Give those sections their
     own opaque background and lift them above the fixed hero layers so they
     read as clean, self-contained dark sections. */
  #problem {
    position: relative;
    z-index: 5;
    background: #101C2E;   /* navy, slightly darker than before */
  }
  #why {
    position: relative;
    z-index: 5;
    background: #070F1A;   /* darker */
  }

}

/* ── Kill all entrance animations on mobile (all phones, portrait + landscape) ── */
@media (max-width: 767px) {
  .reveal,
  .reveal.visible,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4,
  .sec-slide,
  .sec-slide.sec-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0s !important;
  }

  /* Restore flip card transitions */
  .engagement-card-inner,
  .diff-card-inner {
    transition-duration: 0.65s !important;
  }

  /* ── Mobile nav: hamburger ── */
  .nav-toggle {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .nav-toggle span {
    width: 26px !important;
    height: 2.5px !important;
  }

  /* ── Mobile nav: remove backdrop-filter when menu open so fixed children
       position relative to viewport (backdrop-filter creates a containing block) ── */
  #navbar.nav-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* ── Mobile nav: full-width panel ── */
  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(100vh - 64px) !important;
    background: #080F1C !important;
    backdrop-filter: none !important;
    padding: 8px 0 32px !important;
    gap: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    border-bottom: none !important;
    align-items: stretch !important;
    overflow-y: auto !important;
    z-index: 999 !important;
  }

  /* ── Mobile nav: rows ── */
  .nav-links > li {
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    position: static !important;
  }
  .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 24px !important;
    height: 56px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.85) !important;
    border-radius: 0 !important;
    border-left: 3px solid transparent !important;
    background: none !important;
    box-sizing: border-box !important;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    border-left-color: var(--orange) !important;
    background: rgba(255,255,255,0.03) !important;
    border-radius: 0 !important;
  }

  /* ── Mobile nav: services submenu inline accordion ── */
  .nav-dropdown::before { display: none !important; }
  .nav-has-dropdown:hover .nav-dropdown { opacity: 0 !important; pointer-events: none !important; transform: none !important; }
  .nav-has-dropdown .nav-dropdown {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    background: rgba(3,165,165,0.05) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 0 !important;
    padding: 4px 0 8px !important;
    margin: 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.22s ease, max-height 0.28s ease !important;
  }
  .nav-has-dropdown.dd-open .nav-dropdown {
    opacity: 1 !important;
    max-height: 480px !important;
    pointer-events: auto !important;
  }
  .nav-has-dropdown.dd-open .nav-chevron {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
  }
  .nav-drop-all {
    font-size: 11px !important;
    padding: 12px 24px 8px !important;
    height: auto !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(254,102,3,0.15) !important;
    margin-bottom: 4px !important;
  }
  .nav-drop-item {
    padding: 0 24px 0 44px !important;
    height: 48px !important;
    font-size: 15px !important;
    border-radius: 0 !important;
    border-left: 3px solid transparent !important;
    white-space: normal !important;
  }
  .nav-drop-item:hover {
    border-left-color: var(--teal) !important;
    background: rgba(3,165,165,0.07) !important;
    border-radius: 0 !important;
  }

  /* ── Article overlay: author bio stacks below image + name ── */
  .insight-author-box {
    flex-wrap: wrap;
    margin: 0 0 28px;
    align-items: center;
    gap: 12px 20px;
  }
  .insight-author-avatar {
    order: 1;
  }
  .insight-author-info {
    order: 2;
    flex: 1;
    min-width: 0;
  }
  .insight-author-sep { display: none !important; }
  .insight-author-bio {
    order: 3;
    flex: 0 0 100%;
    margin-top: 0;
  }

  /* ── Footer: services left, company + policies stacked right ── */
  .footer-cols {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 28px 20px;
  }
  .footer-col {
    padding: 0 !important;
    flex: none !important;
  }
  .footer-col:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .footer-col:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .footer-col:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .footer-col a {
    font-size: 13px !important;
  }

  /* ── Case study overlay: kill scroll hint bounce ── */
  .cso-scroll-hint svg {
    animation: none !important;
  }

  /* ── Case study overlay: metrics grid ── */
  .cso-snapshot-metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .cso-snapshot-metric + .cso-snapshot-metric::before {
    display: none !important;
  }
  .cso-snapshot-metric:nth-child(odd) {
    border-right: 1px solid rgba(254,102,3,0.15);
  }
  .cso-snapshot-metric {
    border-bottom: 1px solid rgba(254,102,3,0.15);
  }
  /* Odd total: last metric spans full width */
  .cso-snapshot-metric:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
  }

  /* ── Case study overlay: summary columns stack vertically ── */
  .cso-snapshot-summary {
    flex-direction: column !important;
  }
  .cso-snapshot-col + .cso-snapshot-col {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* ── Case study overlay: body columns stack vertically ── */
  .cso-body {
    flex-direction: column !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   CLIENT VOICES — Option B (Industry Switcher)
═══════════════════════════════════════════════════════════ */
#voices-contact-bg {
  position: relative;
  background: #1a3050;
}

#testimonials {
  position: relative;
  background: transparent;
  padding: 72px 0;
}
.cv-b-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
}
.cv-b-header {
  margin-bottom: 40px;
}
.cv-b-widget {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 500px;
  border: 1px solid rgba(254,102,3,0.12);
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, #0e1e35 0%, #060e1a 65%);
  box-shadow: 0 0 80px rgba(254,102,3,0.07), inset 0 0 60px rgba(254,102,3,0.02);
}
/* Left panel */
.cv-b-left {
  background: rgba(0,0,0,0.25);
  border-right: 1px solid rgba(254,102,3,0.08);
  display: flex;
  flex-direction: column;
}
.cv-b-left-header {
  padding: 28px 24px 18px;
  border-bottom: 1px solid rgba(254,102,3,0.07);
  flex-shrink: 0;
}
.cv-b-left-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.cv-b-left-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.cv-b-tabs {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.cv-b-tabs::-webkit-scrollbar { width: 3px; }
.cv-b-tabs::-webkit-scrollbar-track { background: transparent; }
.cv-b-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.cv-b-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: color 0.2s, background 0.25s, border-color 0.2s;
  line-height: 1.3;
}
.cv-b-tab:hover { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.02); }
.cv-b-tab.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(254,102,3,0.13), transparent 80%);
  border-left-color: var(--orange);
}
.cv-b-tab-count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.cv-b-tab.active .cv-b-tab-count {
  background: rgba(254,102,3,0.18);
  color: rgba(254,102,3,0.8);
}
/* Right panel */
.cv-b-right {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 52px 36px;
}
.cv-b-industry-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(254,102,3,0.65);
  margin-bottom: 24px;
  flex-shrink: 0;
}
.cv-b-big-q {
  font-size: 68px;
  font-family: Georgia, serif;
  color: rgba(254,102,3,0.08);
  line-height: 0.75;
  margin-bottom: 12px;
  user-select: none;
  flex-shrink: 0;
}
.cv-b-quote-area {
  flex: 1;
  position: relative;
  min-height: 180px;
}
.cv-b-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.cv-b-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.cv-b-slide.exit   { opacity: 0; transform: translateX(-20px); }
.cv-b-quote-text {
  font-size: clamp(15px, 1.35vw, 20px);
  font-style: italic;
  line-height: 1.65;
  color: #fff;
  margin-bottom: 24px;
  max-width: 680px;
}
.cv-b-rule {
  width: 36px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 12px;
}
.cv-b-role-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cv-b-role-text {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cv-b-sub-chip {
  font-size: 10px;
  color: var(--teal);
  border: 1px solid rgba(3,165,165,0.25);
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Navigation */
.cv-b-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cv-b-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.cv-b-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), rgba(254,102,3,0.55));
  border-radius: 2px;
  transition: width 0.35s ease;
  width: 0%;
}
.cv-b-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-b-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.cv-b-nav-btn:hover { border-color: var(--orange); color: var(--orange); }
.cv-b-nav-btn:disabled { opacity: 0.2; pointer-events: none; }
.cv-b-counter {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin-left: auto;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ── Client Voices — mobile layout (must come after desktop rules) ─── */
@media (max-width: 640px) {
  .cv-b-inner { padding: 0 20px; }
  .cv-b-widget {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cv-b-left {
    border-right: none;
    border-bottom: 1px solid rgba(254,102,3,0.08);
    max-height: 48px;
    overflow: hidden;
  }
  .cv-b-left-header { display: none; }
  .cv-b-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    flex: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cv-b-tabs::-webkit-scrollbar { display: none; }
  .cv-b-tab {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 14px;
    white-space: nowrap;
    font-size: 12px;
  }
  .cv-b-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--orange);
    background: linear-gradient(180deg, rgba(254,102,3,0.10), transparent 80%);
  }
  .cv-b-tab-count { display: none; }
  .cv-b-right { padding: 24px 20px 28px; }
  .cv-b-big-q { font-size: 40px; }
  .cv-b-quote-area { min-height: 200px; }
  .cv-b-quote-text { font-size: 15px; max-width: 100%; }
}

/* ── Flip card tap indicator — touch devices only ─────────── */
@media (hover: none) {
  /* Make the flip icon permanently visible and larger */
  .diff-card-front::after,
  .engagement-card-front::after {
    width: 20px;
    height: 20px;
    opacity: 0.70;
    bottom: 38px;
    right: 14px;
  }

  /* "Tap to flip" label via ::before */
  .diff-card-front::before,
  .engagement-card-front::before {
    content: 'Tap to flip';
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 10px;
    font-family: 'Effra', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange);
    opacity: 0.65;
    pointer-events: none;
  }

  /* Hide on back face (already flipped) */
  .diff-card.flipped .diff-card-front::after,
  .diff-card.flipped .diff-card-front::before,
  .engagement-card.flipped .engagement-card-front::after,
  .engagement-card.flipped .engagement-card-front::before {
    opacity: 0;
  }
}
