:root {
  /* Brand Colors */
  --primary-red: #C8233A;
  --dark-red: #8C0F22;
  --light-red-tint: #FDEDF0;
  --dark-navy: #1A0825;
  --white: #FFFFFF;
  --near-black: #1A0810;
  --body-text: #3D1520;
  --muted-text: #7A5560;
  --primary-red-hover: #FF204E;
  --page-black: #000000;
  --whatsapp-green: #25D366;

  /* Fonts */
  --font-display: 'Anek Latin', sans-serif;
  --font-body: 'Bricolage Grotesque', sans-serif;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Effects */
  --glass-bg: rgba(26, 8, 37, 0.6);
  --glass-bg-light: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-red: 0 8px 32px rgba(200, 35, 58, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 3px;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  background-attachment: fixed;
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--near-black);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.hero-subtext {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.page-hero {
  padding-top: calc(var(--space-xl) + 80px);
  padding-bottom: var(--space-xl);
  min-height: auto;
}

.headline-large {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
}

.headline-medium {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

.headline-small {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  letter-spacing: -0.01em;
}

p {
  font-weight: 400;
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.text-sm { font-size: 0.95rem; }
.text-lg { font-size: 1.25rem; }
.text-center { text-align: center; }
.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.font-body { font-family: var(--font-body); }
.text-primary { color: var(--primary-red); }
.text-white { color: var(--white) !important; }
.text-near-black { color: var(--near-black) !important; }
.text-muted { color: rgba(255,255,255,0.6); }

/* Force dark text on white mega-menus */
.mega-menu h4 { color: var(--near-black) !important; }
.mega-menu p, .mega-menu .text-muted { color: var(--muted-text) !important; }

.text-gradient {
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.pt-sm { padding-top: var(--space-sm); }
.pt-lg { padding-top: var(--space-lg); }
.pb-md { padding-bottom: var(--space-md); }
.p-xl { padding: var(--space-xl) var(--space-md); }

.max-w-sm { max-width: 400px; }
.max-w-lg { max-width: 800px; }
.block { display: block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.border-t { border-top: 1px solid var(--glass-border); }
.border-primary { border: 1px solid rgba(200, 35, 58, 0.3) !important; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200, 35, 58, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Inverted primary button for use directly on a red background */
.btn-white {
  background-color: var(--white);
  color: var(--primary-red);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background-color: var(--near-black);
  color: var(--white);
  transform: translateY(-2px);
}

.glass-card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform var(--transition-normal), background var(--transition-normal), border var(--transition-normal);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Light Section overrides */
.section-light {
  background-color: var(--light-red-tint);
  color: var(--body-text);
}

.section-light .btn-secondary {
  color: var(--near-black);
  border-color: rgba(0, 0, 0, 0.2);
}

.section-light .btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.4);
}
.section-light h2, .section-light h3, .section-light h4, .section-light h5 {
  color: var(--near-black);
}
.section-light .text-muted {
  color: var(--muted-text);
}
.section-light .glass-card {
  background: rgba(255,255,255,0.6);
  border-color: rgba(200, 35, 58, 0.1);
  box-shadow: 0 10px 30px rgba(26, 8, 16, 0.03);
}
.section-light .glass-card:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(200, 35, 58, 0.2);
}
.section-light .text-gradient {
  background: linear-gradient(135deg, var(--near-black) 0%, var(--primary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(200,35,58,0.08) 0%, rgba(26,8,37,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: -20%;
  right: -20%;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.header.mobile-menu-active {
  background-color: var(--page-black);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  color: var(--primary-red-hover);
}

.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* Dropdown & Mega Menu */
.dropdown {
  /* position static to allow full-width absolute children relative to header */
}
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: var(--space-xs);
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu {
  width: calc(100vw - 2rem);
  max-width: 1240px;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background-color: var(--white) !important;
  box-shadow: 0 20px 40px rgba(26, 8, 37, 0.4);
  border: none;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.mega-menu-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--body-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  padding: var(--space-sm);
}

.mega-menu-item:hover {
  background: var(--light-red-tint);
  transform: translateY(-2px);
}

.mega-menu-item:hover .mega-menu-title {
  color: var(--primary-red-hover);
}

.mega-menu-image {
  height: 140px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.mega-menu-image-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 10;
}

.mega-menu-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
  color: var(--near-black);
  font-weight: 600;
}

.mega-menu-desc {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.4;
  margin-bottom: 0;
}

.mega-menu-footer {
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: flex-end;
}

/* Abstract Card Shapes for Mega Menu */
.abstract-shape {
  position: absolute;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.mega-menu-item:hover .abstract-shape,
.resource-mega-item:hover .abstract-shape {
  transform: scale(1.2);
}

/* Card 1: Green (Rounded Rect) */
.card-1 { background: linear-gradient(135deg, #2A4634, #1B2D21); }
.card-1 .shape-1 {
  top: -30px;
  right: -20px;
  width: 100px;
  height: 120px;
  background: #17251B;
  border-radius: 24px;
}

/* Card 2: Maroon (Overlapping Bars) */
.card-2 { background: linear-gradient(135deg, #741D28, #4F131A); }
.card-2 .shape-2 {
  bottom: -40px;
  right: 0px;
  width: 200px;
  height: 80px;
  background: linear-gradient(135deg, #8B2533, #5F1720);
  transform: rotate(-35deg);
  border-radius: 12px;
}
.card-2 .shape-2::after {
  content: '';
  position: absolute;
  top: 30px;
  left: -20px;
  width: 180px;
  height: 80px;
  background: #410F15;
  border-radius: 12px;
}

/* Card 3: Navy/Blue (Geometric Shards) */
.card-3 { background: linear-gradient(135deg, #1B324D, #112133); }
.card-3 .shape-3 {
  top: -40px;
  left: 40px;
  width: 80px;
  height: 120px;
  background: #0C1724;
  transform: skewX(-20deg) rotate(15deg);
  border-radius: 8px;
}
.card-3 .shape-3::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -80px;
  width: 60px;
  height: 100px;
  background: #16293F;
  transform: skewX(20deg) rotate(-30deg);
  border-radius: 8px;
}

/* Card 4: Purple (Conic Sunburst) */
.card-4 { background: linear-gradient(135deg, #7A32A1, #552175); }
.card-4 .shape-4 {
  top: 50%;
  right: -50px;
  width: 150px;
  height: 150px;
  background: conic-gradient(from 180deg at 100% 50%, 
    transparent 0deg, transparent 15deg, #451A5F 15deg, #451A5F 25deg, 
    transparent 25deg, transparent 40deg, #451A5F 40deg, #451A5F 50deg,
    transparent 50deg, transparent 65deg, #451A5F 65deg, #451A5F 75deg,
    transparent 75deg, transparent 90deg, #451A5F 90deg, #451A5F 100deg,
    transparent 100deg, transparent 115deg, #451A5F 115deg, #451A5F 125deg,
    transparent 125deg, transparent 140deg, #451A5F 140deg, #451A5F 150deg,
    transparent 150deg, transparent 180deg
  );
  transform: translateY(-50%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mega-menu-item:hover .shape-4,
.resource-mega-item:hover .shape-4 {
  transform: translateY(-50%) scale(1.2);
}

/* Card 5: Dark Red/Maroon (Podcast Play) */
.card-5 { background: linear-gradient(135deg, #1A0810, #3D1520); }
.card-5 .shape-5 {
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #C8233A, #8C0F22);
  clip-path: polygon(15% 10%, 90% 50%, 15% 90%);
  transform: translate(-50%, -50%);
  border-radius: 8px; /* Does not apply well with clip-path but safe to leave */
}
.mega-menu-item:hover .shape-5,
.resource-mega-item:hover .shape-5 {
  transform: translate(-50%, -50%) scale(1.2);
}

.explore-link {
  color: var(--primary-red) !important;
  text-decoration: none;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  transition: gap var(--transition-fast);
  padding: 0 !important;
}

.explore-link:hover {
  gap: 0.5rem;
  background: transparent !important;
}

/* Custom Mega Menus (Industries & Resources) */
.industries-mega-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: var(--space-lg);
}

.industries-mega-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
}

.industry-mega-item {
  display: flex;
  gap: var(--space-sm);
  text-decoration: none;
  transition: transform var(--transition-fast);
  align-items: flex-start;
}

.industry-mega-item:hover {
  transform: translateX(4px);
}

.industry-mega-item h4 {
  transition: color var(--transition-fast);
}

.industry-mega-item:hover h4 {
  color: var(--primary-red);
}

.industry-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--light-red-tint);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.industry-icon.bg-primary {
  background: var(--primary-red);
  color: var(--white);
}

.industries-mega-cta {
  background: linear-gradient(135deg, var(--near-black), var(--body-text));
  border-radius: var(--radius-md);
  min-height: 250px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px;
}
.industries-mega-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.industries-mega-cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at center, rgba(200,35,58,0.35) 0%, transparent 60%);
  transition: transform 0.6s ease-out;
  z-index: 0;
  pointer-events: none;
}

.industries-mega-cta:hover::before {
  transform: scale(1.3) translate(-10%, 10%);
}

.industries-mega-cta > div {
  position: relative;
  z-index: 1;
}

.badge-primary {
  background: var(--primary-red);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.resources-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.resource-mega-item {
  text-decoration: none;
  transition: transform var(--transition-fast);
  display: block;
}

.resource-mega-item:hover {
  transform: translateY(-4px);
}

.resource-mega-item h4 {
  transition: color var(--transition-fast);
}

.resource-mega-item:hover h4 {
  color: var(--primary-red);
}
.resource-mega-item-static {
  cursor: default;
}
.resource-mega-item-static:hover {
  transform: none;
}
.resource-mega-item-static:hover h4 {
  color: var(--near-black);
}

.resource-image {
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

/* Canvas Particles */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: clamp(8rem, 14vh, 11rem) 0 4rem;
}
.hero-subtext {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 42rem;
}
.hero-content {
  width: min(100%, 58rem);
  margin-inline: auto;
}
.hero-ctas .btn {
  min-height: 3.25rem;
}
.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--near-black);
  box-shadow: none;
}
.btn-whatsapp:hover { background: #1ebe5d; color: var(--near-black); }
.trust-numbers {
  margin-top: clamp(3rem, 7vw, 6rem) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, var(--space-md));
}
.trust-stat {
  min-width: 0;
  padding: clamp(1rem, 2vw, var(--space-md));
}
.trust-stat h3 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 0;
}

/* About Section */
.about-text {
  max-width: 62ch;
}
.about-text p {
  max-width: 62ch;
}
.about-link {
  margin-top: var(--space-xs);
}
.about-proof {
  position: relative;
  min-height: 400px;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.about-proof::after {
  content: '';
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(200, 35, 58, 0.28);
  border-radius: 50%;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.about-proof:hover::after {
  transform: scale(1.12);
  border-color: rgba(200, 35, 58, 0.55);
}
.about-proof-label {
  margin-bottom: var(--space-sm);
  color: var(--primary-red);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-proof-number {
  color: var(--near-black);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.about-proof-number span {
  color: var(--primary-red);
}
.about-proof-copy {
  max-width: 16ch;
  margin: var(--space-sm) 0 var(--space-lg);
  color: var(--muted-text);
  font-size: 1.125rem;
  line-height: 1.4;
}
.about-proof-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  max-width: 25rem;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(200, 35, 58, 0.22);
  color: var(--body-text);
  font-size: 0.95rem;
}
.about-proof-sectors span:not(:last-child)::after {
  content: ' /';
  margin-left: var(--space-sm);
  color: var(--primary-red);
}

/* Services */
.service-icon {
  width: 60px; height: 60px;
  background: rgba(200, 35, 58, 0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-red);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-normal);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-red);
  color: var(--white);
}
.badge-accent {
  position: absolute;
  top: 1rem; right: -2rem;
  background: var(--primary-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 2rem;
  transform: rotate(45deg);
}

/* Why Us */
.why-us-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-lg);
}
.why-us-heading h2 {
  grid-column: 1 / span 7;
  max-width: 16ch;
  margin-bottom: 0;
  text-wrap: balance;
}
.why-us-heading h2 span {
  display: block;
  color: var(--primary-red);
}
.why-us-intro {
  grid-column: 9 / -1;
  max-width: 32ch;
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(200, 35, 58, 0.35);
  font-size: 1.125rem;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-lg);
  border-top: 1px solid rgba(200, 35, 58, 0.25);
}
.why-us-grid .feature-box {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(200, 35, 58, 0.25);
}
.why-us-grid h4 {
  margin-bottom: var(--space-xs);
}
.why-us-grid p {
  max-width: 48ch;
  margin-bottom: 0;
}
.why-us-proof-link {
  margin-top: var(--space-sm);
}
.why-us-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.why-us-cta p {
  margin: 0;
}

@media (max-width: 768px) {
  .why-us-heading,
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .why-us-heading h2,
  .why-us-intro {
    grid-column: auto;
  }
  .why-us-intro {
    max-width: 40ch;
    margin: 0;
  }
  .why-us-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .why-us-heading h2 {
    grid-column: 1 / span 8;
  }
  .why-us-intro {
    grid-column: 9 / -1;
  }
}

/* Tech Section */
.tech {
  overflow: hidden;
}
.tech-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.tech-intro h2,
.tech-intro p { margin: 0; }
.tech-emphasis { color: var(--primary-red); }
.tech-intro p {
  max-width: 38ch;
  font-size: 1.125rem;
  line-height: 1.6;
}
.signal-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  position: relative;
}
.signal-rail::before,
.signal-rail::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 1.05rem;
  right: 1.05rem;
  height: 1px;
}
.signal-rail::before { background: rgba(255, 255, 255, 0.16); }
.signal-rail::after {
  right: auto;
  width: calc(100% - 2.1rem);
  background: var(--primary-red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.signal-rail.active::after { transform: scaleX(1); }
.signal-step {
  position: relative;
  z-index: 1;
  padding-right: var(--space-md);
}
.signal-node {
  display: flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--page-black);
  color: var(--muted-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.signal-rail.active .signal-step:nth-child(1) .signal-node { transition-delay: 0.2s; }
.signal-rail.active .signal-step:nth-child(2) .signal-node { transition-delay: 0.45s; }
.signal-rail.active .signal-step:nth-child(3) .signal-node { transition-delay: 0.7s; }
.signal-rail.active .signal-step:nth-child(4) .signal-node { transition-delay: 0.95s; }
.signal-rail.active .signal-node,
.signal-step:hover .signal-node,
.signal-step:focus-within .signal-node {
  border-color: var(--primary-red);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(200, 35, 58, 0.12);
}
.signal-step h3 { margin-bottom: var(--space-xs); }
.signal-step p {
  max-width: 24ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.55;
}
.tech-proof {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}
.tech-proof p { margin: 0; }
.tech-proof-line {
  width: 3rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--primary-red);
}

/* Industries */
.industry-item {
  border-left: 4px solid var(--primary-red);
}

/* Case Studies */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(200, 35, 58, 0.1);
  color: var(--primary-red);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
}
.link-arrow {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-fast);
}
.link-arrow:hover { gap: 0.75rem; }

/* Testimonial */
.quote-icon {
  width: 48px; height: 48px;
  color: var(--primary-red);
  opacity: 0.5;
}

/* Team */
.avatar {
  width: 80px; height: 80px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.team-card {
  display: flex;
  flex-direction: column;
}
.team-card h4 { margin-bottom: 0.25rem; }

/* Footer */
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--muted-text); text-decoration: none; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--primary-red); }
.footer-contact { list-style: none; }
.span-2 { grid-column: span 2; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: transform var(--transition-fast);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
}

/* Animations & Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  text-wrap: balance;
}

.trust-stat {
  transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
}
.trust-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 35, 58, 0.35);
  background-color: rgba(255, 255, 255, 0.08);
}

/*@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 0.01ms !important;
    transform: none;
  }
  .hero-canvas { display: none; }
}*/

/* Responsive */
@media (max-width: 992px) {
  .nav-links, .nav-btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .span-2 { grid-column: span 1; }
  
  .hero { padding: clamp(7rem, 12vh, 9rem) 0 3rem; }
  .page-hero { padding-top: calc(var(--space-lg) + 20px); padding-bottom: var(--space-lg); }
  .headline-large { font-size: clamp(2.75rem, 6vw, 4rem); }
  .trust-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mobile-menu-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--page-black);
    padding: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
    align-items: flex-start;
  }
  .mobile-menu-active .nav-btn {
    display: flex;
    margin-top: var(--space-md);
    width: 100%;
    justify-content: center;
  }
  .mobile-menu-active .dropdown {
    width: 100%;
  }
  .mobile-menu-active .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-sm) 0;
  }
  .mobile-menu-active .dropdown-content {
    position: static !important;
    transform: none !important;
    left: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 0 0 var(--space-sm) !important;
    margin-top: 0 !important;
    display: block !important;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin-top 0.4s ease;
  }
  
  /* Disable desktop hover effect on mobile */
  .mobile-menu-active .dropdown:hover .dropdown-content {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0;
  }
  
  /* Only show dropdown when actively clicked */
  .mobile-menu-active .dropdown.active .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 800px;
    margin-top: var(--space-sm) !important;
  }
  
  .mobile-menu-active .mega-menu-grid, 
  .mobile-menu-active .resources-mega-grid,
  .mobile-menu-active .industries-mega-list,
  .mobile-menu-active .industries-mega-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  /* Logo adjustment */
  .logo img {
    transform: translate(-4px, 4px);
  }

  /* Hide mega menu decorative elements */
  .mobile-menu-active .mega-menu-image,
  .mobile-menu-active .mega-menu-desc,
  .mobile-menu-active .mega-menu-footer,
  .mobile-menu-active .industry-icon,
  .mobile-menu-active .industry-mega-item p,
  .mobile-menu-active .industries-mega-cta,
  .mobile-menu-active .resource-image,
  .mobile-menu-active .resource-mega-item p,
  .mobile-menu-active .badge-primary {
    display: none !important;
  }

  /* Cards for Products and Resources */
  .mobile-menu-active .mega-menu-item,
  .mobile-menu-active .resource-mega-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: 0;
    display: block;
    width: 100%;
    box-shadow: none;
  }
  
  .mobile-menu-active .mega-menu-title,
  .mobile-menu-active .resource-mega-item h4 {
    margin-bottom: 0 !important;
    font-size: 1rem;
    font-weight: 600;
  }

  .mobile-menu-active .mega-menu-grid .mega-menu-title,
  .mobile-menu-active .resource-mega-item h4 {
    color: var(--white) !important;
  }
  
  .mobile-menu-active .resource-mega-item p {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  /* Simple List for Industries (No Cards) */
  .mobile-menu-active .industry-mega-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: var(--space-xs) 0 !important;
    display: block;
    width: 100%;
  }

  .mobile-menu-active .industry-mega-item h4 {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
    color: var(--white) !important;
    font-weight: 400 !important;
  }
}

.about-featured-result {
  max-width: 48ch;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(200, 35, 58, 0.25);
}

.logo-mark {
  display: block;
  width: auto;
}
.logo-mark-header { height: 32px; }
.logo-mark-footer { height: 40px; }
.case-study-thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-coming-soon {
  display: block;
  color: var(--muted-text);
}

@media (max-width: 768px) {
  .tech-intro { grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-lg); }
  .signal-rail { grid-template-columns: 1fr; gap: var(--space-lg); padding-left: 0.25rem; }
  .signal-rail::before,
  .signal-rail::after { top: 1.05rem; bottom: 1.05rem; left: 1.3rem; right: auto; width: 1px; height: auto; }
  .signal-rail::before { background: rgba(255, 255, 255, 0.16); }
  .signal-rail::after { height: calc(100% - 2.1rem); width: 1px; transform: scaleY(0); transform-origin: top; }
  .signal-rail.active::after { transform: scaleY(1); }
  .signal-step { display: grid; grid-template-columns: 2.1rem 1fr; gap: var(--space-sm); padding-right: 0; }
  .signal-node { margin: 0; }
  .signal-step p { max-width: 42ch; }
  .tech-proof { align-items: flex-start; margin-top: var(--space-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .about-proof::after,
  .tech .reveal { opacity: 1; transform: none; transition: none; }
  .signal-rail::after { transition: none; }
  .signal-node { transition: none; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero {
    min-height: auto;
    padding: 7rem 0 2.5rem;
  }
  .hero-content h1 br { display: none; }
  .headline-large { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .hero-subtext { margin-bottom: 2rem; }
  .hero-ctas {
    flex-direction: column; 
    gap: 0.75rem;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .trust-numbers { margin-top: 3rem !important; }
  .about-proof { min-height: 300px; }
  .cta .flex {
    flex-direction: column;
    align-items: stretch;
  }
  .cta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .hero { padding-top: 6.5rem; }
  .container { padding-inline: 1rem; }
  .headline-large { font-size: 2.25rem; }
  .trust-stat { padding: 1rem; }
  .trust-stat h3 { font-size: 2rem; }
  .trust-stat p { font-size: 0.95rem; }
}

/* Corner Ribbon */
.corner-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  z-index: 10;
}
.corner-ribbon span {
  position: absolute;
  display: block;
  width: 225px;
  padding: 10px 0;
  background-color: var(--primary-red);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  right: -50px;
  top: 30px;
}

/* Typography Updates */
.feature-box h4 {
    font-size: 1.3rem;
}
.industry-item h4 {
    font-size: 1.3rem;
}
.industry-mega-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.industry-mega-item p {
    font-size: 0.75rem;
    line-height: 1.4;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-5 { grid-template-columns: 1fr; }
}

/* Missing utilities referenced across the site (completing existing patterns) */
.text-xs { font-size: 0.75rem; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.z-10 { z-index: 10; }

/* ============================
   Case Studies Page
   ============================ */

/* Filter Bar */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid rgba(200, 35, 58, 0.1);
  padding: var(--space-sm) 0;
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--near-black);
  background: var(--white);
  border: 1px solid rgba(200, 35, 58, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background: var(--light-red-tint);
  color: var(--primary-red);
  border-color: rgba(200, 35, 58, 0.3);
}

.filter-tab.active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-red);
}

/* Case Study Card (listing grid) */
.case-study-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200, 35, 58, 0.08);
  box-shadow: 0 10px 30px rgba(26, 8, 16, 0.05);
  text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.case-study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(26, 8, 16, 0.12);
  border-color: rgba(200, 35, 58, 0.2);
}

.case-study-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-md);
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.tag-outline {
  background: rgba(26, 8, 16, 0.04);
  color: var(--muted-text);
}

.case-study-title {
  color: var(--near-black);
  margin-bottom: 0.5rem;
}

.case-study-result {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.45;
  flex-grow: 1;
  margin-bottom: var(--space-sm);
}

.case-study-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg) 0;
}

/* Fixed column ratio regardless of filtered card count (no stretch-to-fill on partial rows) */
#case-studies-grid {
  grid-template-columns: repeat(3, 1fr);
  justify-items: stretch;
}

@media (max-width: 900px) {
  #case-studies-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  #case-studies-grid { grid-template-columns: 1fr; }
}

/* Stats Band (full red) */
.stats-band {
  background: var(--primary-red);
  color: var(--white);
}

.stats-band .stat-number {
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}

.stats-band p {
  color: rgba(255, 255, 255, 0.85);
}

/* Industries Strip */
.industries-strip {
  background: var(--light-red-tint);
}

.industries-strip-track {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .industries-strip-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }
}

.industries-strip-track .tag {
  flex-shrink: 0;
  background: var(--white);
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
}

/* At a Glance Strip */
.glance-strip {
  background: var(--white);
  border-top: 1px solid rgba(26, 8, 16, 0.08);
  border-bottom: 1px solid rgba(26, 8, 16, 0.08);
}

.glance-item {
  padding: var(--space-md) var(--space-sm);
  border-left: 1px solid rgba(26, 8, 16, 0.08);
  text-align: center;
}

.glance-item:first-child {
  border-left: none;
}

.glance-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
  margin-bottom: 0.35rem;
}

.glance-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--near-black);
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .glance-strip .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(3) { border-left: none; }
}

/* Case Study Hero (detail page) — full-bleed image or brand-panel backdrop, 50% dark overlay */
.case-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: var(--space-lg);
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
}

.case-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 5, 7, 0.5);
  z-index: 1;
}

.case-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.case-hero-result {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Quick Facts strip reuses .glance-strip / .glance-item, defined above */

/* Situation illustration — reuses the existing morph-blob language from the
   homepage About section, scoped to its own class to avoid clashing with the
   mega-menu's overloaded .abstract-shape rules. */
.situation-visual {
  height: 340px;
  position: relative;
}

@media (max-width: 768px) {
  .situation-visual { height: 260px; }
}

/* What We Built — image gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 8, 16, 0.12);
}

.gallery-trigger img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.gallery-trigger.contain img {
  object-fit: contain;
  background: var(--white);
  padding: 2rem;
}

.gallery-trigger:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  font-size: 0.85rem;
  color: var(--muted-text);
  text-align: center;
  margin-top: 0.6rem;
}

/* What We Built — delivered bullets */
.deliverables-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(26, 8, 16, 0.08);
}

.deliverables-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.deliverables-list li i {
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.deliverables-list strong {
  display: block;
  color: var(--near-black);
}

/* The Result — category-colored band (reuses the mega-menu's existing
   card-1/2/3 category colors: green = Digital Presence, crimson = Business
   Systems, navy = Capability Building). */
.result-band {
  text-align: center;
  color: var(--white);
}

.result-band .text-muted {
  color: rgba(255, 255, 255, 0.75);
}

/* Result Number Highlight */
.result-number {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.outcome-statement {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  color: var(--white);
  line-height: 1.35;
  max-width: 780px;
  margin: 0 auto;
}

/* Client Quote — white card floating on a dark section */
.quote-block {
  background: var(--dark-navy);
  color: var(--white);
}

.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--primary-red);
  display: block;
  margin-bottom: var(--space-sm);
}

.quote-card blockquote {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--near-black);
  margin-bottom: var(--space-md);
}

.quote-card .quote-author {
  color: var(--near-black);
}

.quote-card .quote-title {
  color: var(--muted-text);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 6, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/*@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay { transition: none; }
}*/

/* Next Project Teaser */
.next-project-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}

.next-project-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200, 35, 58, 0.1);
  transition: all var(--transition-normal);
}

.next-project-card:hover {
  border-color: rgba(200, 35, 58, 0.3);
  box-shadow: 0 20px 40px rgba(26, 8, 16, 0.08);
}

.next-project-card .case-study-image {
  aspect-ratio: 16 / 10;
  width: 40%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .next-project-card { flex-direction: column; }
  .next-project-card .case-study-image { width: 100%; }
}

/* Testimonial Slider */
.fade-anim {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@media (max-width: 768px) {
  .testimonial-flex {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* --- CAREERS PAGE REDESIGN STYLES --- */

/* Career Hero Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
}
.stat-block {
  padding: 1.5rem;
  text-align: center;
  border-right: 1px solid var(--glass-border);
}
.stat-block:last-child {
  border-right: none;
}
.stat-block .stat-num {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.25rem;
}
.stat-block .stat-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-block:nth-child(2) {
    border-right: none;
  }
  .stat-block:nth-child(1), .stat-block:nth-child(2) {
    border-bottom: 1px solid var(--glass-border);
  }
}

/* Job Filter Tabs (Dark Background) */
#vacancies .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
  justify-content: center;
}
#vacancies .filter-tab {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
#vacancies .filter-tab:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: rgba(255, 255, 255, 0.05);
}
#vacancies .filter-tab.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

/* Job Cards */
.job-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all var(--transition-normal);
  margin-bottom: 1.5rem;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.job-card .text-muted {
  color: #4b5563; /* Ensures text is visible on the white card background */
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.job-tag {
  background: rgba(0,0,0,0.05);
  color: var(--near-black);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.job-details-content {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  animation: fadeUp 0.3s ease;
}
.job-card.expanded .job-details-content {
  display: block;
}
.job-card.expanded .apply-btn {
  display: none;
}
.job-details-content h4 {
  color: var(--near-black);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.job-details-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--body-text);
}
.job-details-content ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .job-card-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(0,0,0,0.02);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0,0,0,0.1);
}

/* Trust Signals */
.trust-signal {
  background: var(--light-red-tint);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.trust-signal .icon {
  color: var(--primary-red);
  margin-bottom: 0.75rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1E293B;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  color: #1E293B;
  font-family: inherit;
  transition: all 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(200, 35, 58, 0.1);
}
.form-file-wrap {
  position: relative;
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: #F8FAFC;
  transition: all 0.3s;
}
.form-file-wrap:hover {
  border-color: var(--primary-red);
  background: var(--light-red-tint);
}
.form-file-wrap input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.form-success-message {
  display: none;
  text-align: center;
  padding: 3rem;
  background: var(--light-red-tint);
  border-radius: var(--radius-md);
}
.form-success-message.active {
  display: block;
}

/* ==========================================================================
   Blog & Knowledge Base Styles
   ========================================================================== */

/* Search Bar */
.blog-search-container {
  max-width: 600px;
  margin: 0 auto;
}
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: white;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}
.search-bar .search-icon {
  position: absolute;
  right: 1.5rem;
  color: var(--gray-500);
  pointer-events: none;
}
.search-bar .clear-btn {
  position: absolute;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
.search-bar .clear-btn:hover {
  color: var(--primary-red);
}
.search-bar .clear-btn.hidden {
  display: none;
}

/* Filter Tabs */
.filter-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}
.filter-tabs-wrapper::-webkit-scrollbar {
  height: 4px;
}
.filter-tabs-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 4px;
}
.filter-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  min-width: max-content;
}
.filter-tab {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  background: white;
  color: var(--near-black);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.filter-tab:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}
.filter-tab.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}
@media (max-width: 768px) {
  .filter-tabs {
    justify-content: flex-start;
  }
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Article Card */
.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  color: inherit;
}
.article-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-image img {
  transform: scale(1.05);
}
.article-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.75rem 0;
  color: var(--near-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  display: inline-block;
}
.article-card:hover .article-card-title {
  text-decoration: underline;
  text-decoration-color: var(--primary-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.article-card-excerpt {
  font-family: var(--font-body);
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.article-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-card-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Featured Article */
.featured-article .article-card {
  flex-direction: row;
}
.featured-article .article-card-image {
  width: 50%;
  height: auto;
  min-height: 400px;
}
.featured-article .article-card-content {
  width: 50%;
  padding: 3rem;
  justify-content: center;
}
.featured-article .article-card-title {
  font-size: 2rem;
  -webkit-line-clamp: unset;
}
.featured-article .article-card-excerpt {
  font-size: 1.1rem;
  -webkit-line-clamp: unset;
}
@media (max-width: 992px) {
  .featured-article .article-card {
    flex-direction: column;
  }
  .featured-article .article-card-image {
    width: 100%;
    min-height: 300px;
  }
  .featured-article .article-card-content {
    width: 100%;
    padding: 1.5rem;
  }
  .featured-article .article-card-title {
    font-size: 1.5rem;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.3s;
}
.page-link:hover {
  background: var(--gray-200);
  color: var(--near-black);
}
.page-link.active {
  background: var(--primary-red);
  color: white;
}

/* Newsletter Section */
.newsletter-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.newsletter-form {
  max-width: 500px;
  width: 100%;
}
.newsletter-input {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-red);
}
@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form button {
    width: 100%;
  }
}

/* Individual Article Page Layout */
.article-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-content p {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}
.article-content ul, .article-content ol {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content blockquote {
  border-left: 4px solid var(--primary-red);
  background: rgba(200, 35, 58, 0.1);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-content blockquote p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0;
}

/* Sticky TOC */
.toc-list li {
  list-style: none;
}
.toc-list a {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .hidden-mobile {
    display: none;
  }
  .article-layout {
    flex-direction: column;
  }
}
