/* ==========================================================================
   WADECHERYL DESIGN SYSTEM
   98% Fidelity Reconstructed Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'Azeret Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Core Colors */
  --color-primary: #ff6a3d;
  --color-accent-hover: #e85a2c;
  --color-primary-light: #fef6f2;
  --color-primary-yellow: #ffc226;
  --color-primary-yellow-light: #fff5d0;
  --color-primary-purple: #7a7be6;
  --color-primary-purple-light: #f2edfe;
  --color-primary-green: #34b588;
  --color-primary-green-light: #def9e1;
  --color-primary-blue: #5183e5;
  --color-primary-blue-light: #f8faff;
  --color-primary-red: #fd6f6f;
  --color-primary-red-light: #ffe8e2;

  /* Neutral Dark / Ink System */
  --color-ink: #14201a;
  --color-ink-2: #1c2b22;
  --color-ink-3: #24352a;
  --color-rule: #1d2b22;
  --color-dark: #101010;
  --color-dark-semilight: #262626;

  /* Foreground / Linen Light System */
  --color-white: #ffffff;
  --color-fg: #f2ede2;
  --color-fg-dim: #a8a096;
  --color-fg-muted: #6e685e;
  --color-light: #f9f6f2;
  --color-gray: #39393f;
  --color-gray-light: #ebebeb;
  --color-gray-lighter: #f3f3f6;

  /* Sizing & Spacing */
  --spacing: 0.25rem;
  --site-max-width: 1280px;

  /* Type Scale */
  --text-h1: clamp(2.25rem, 4.5vw, 3.125rem);
  --text-h1-lh: 1.08;
  --text-h2: clamp(1.65rem, 3.2vw, 2rem);
  --text-h2-lh: 1.2;
  --text-h3: 1.1875rem;
  --text-h3-lh: 1.35;
  --text-h4: 0.9375rem;
  --text-h4-lh: 1.4;
  --text-h5: 0.75rem;
  --text-h5-lh: 1.5;
  --text-body: 1rem;
  --text-body-lh: 1.65;
  --text-body2: 0.9375rem;
  --text-body2-lh: 1.6;
  --text-body3: 0.8125rem;
  --text-body3-lh: 1.5;

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-flyout: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background-color: var(--color-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--color-dark);
  overflow-x: hidden;
  background-color: var(--color-white);
}

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

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

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.site-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Typography Classes */
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.text-h1 {
  font-size: var(--text-h1);
  line-height: var(--text-h1-lh);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.text-h2 {
  font-size: var(--text-h2);
  line-height: var(--text-h2-lh);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.text-h3 {
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
  letter-spacing: -0.01em;
  font-weight: 600;
}

.text-h4 {
  font-size: var(--text-h4);
  line-height: var(--text-h4-lh);
  font-weight: 600;
}

.text-body {
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
}

.text-body2 {
  font-size: var(--text-body2);
  line-height: var(--text-body2-lh);
}

.text-body3 {
  font-size: var(--text-body3);
  line-height: var(--text-body3-lh);
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-dark);
}

/* Color Backgrounds & Text */
.bg-ink { background-color: var(--color-ink); color: var(--color-fg); }
.bg-ink-2 { background-color: var(--color-ink-2); color: var(--color-fg); }
.bg-ink-3 { background-color: var(--color-ink-3); color: var(--color-fg); }
.bg-light { background-color: var(--color-light); }
.bg-white { background-color: var(--color-white); }
.bg-dark { background-color: var(--color-dark); color: var(--color-white); }

.text-primary { color: var(--color-primary); }
.text-fg { color: var(--color-fg); }
.text-fg-dim { color: var(--color-fg-dim); }
.text-fg-muted { color: var(--color-fg-muted); }
.text-dark { color: var(--color-dark); }
.text-dark-dim { color: rgba(16, 16, 16, 0.7); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-body2);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease-out;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
}

.btn svg {
  transition: transform 0.2s ease-out;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-orange {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-orange:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
}

.btn-black {
  background-color: var(--color-dark);
  color: #ffffff;
}

.btn-black:hover {
  background-color: #242424;
  color: #ffffff;
}

.btn-white {
  background-color: #ffffff;
  color: var(--color-dark);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: var(--color-light);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-fg);
  border: 1px solid rgba(242, 237, 226, 0.25);
}

.btn-outline-light:hover {
  border-color: var(--color-fg);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-dark);
  border: 1px solid rgba(16, 16, 16, 0.2);
}

.btn-outline-dark:hover {
  border-color: var(--color-dark);
  background-color: rgba(0, 0, 0, 0.03);
}

/* Header & Sticky Nav */
/* Header & Sticky Nav */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none; /* Allows clicks around the pill container when scrolled */
}

.navbar-dark {
  background-color: transparent;
  color: var(--color-fg);
  border-bottom: none;
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .nav-container {
    height: 4.5rem;
    padding: 0 2rem;
  }
}

/* Scrolled Floating Island Pill (Matches uploaded reference image) */
.navbar-scrolled {
  background-color: transparent;
  padding-top: 0.75rem;
}

.navbar-scrolled .nav-container {
  max-width: 1140px;
  height: 3.5rem;
  background-color: #d6d3cb;
  border-radius: 12px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.28), 0 2px 6px -1px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0 1.25rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .navbar-scrolled .nav-container {
    height: 3.75rem;
    padding: 0 1.5rem;
  }
}

.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.nav-logo-img {
  height: 26px;
  width: auto;
  transition: opacity 0.25s ease;
}

/* Dual Logo swap for Scrolled State */
.nav-logo-dark {
  display: none;
}

.nav-logo-white {
  display: block;
}

.navbar-scrolled .nav-logo-white {
  display: none;
}

.navbar-scrolled .nav-logo-dark {
  display: block;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1100px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-fg-dim);
  transition: color 0.15s ease;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.navbar-scrolled .nav-link {
  color: #333333;
  font-weight: 500;
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active {
  color: #101010;
}

.nav-link svg.chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-link svg.chevron,
.nav-item.open .nav-link svg.chevron {
  transform: rotate(180deg);
}

/* Scrolled Nav Action Button (Bright Orange Pill button from reference) */
.navbar-scrolled .btn-orange {
  box-shadow: 0 2px 8px rgba(255, 106, 61, 0.35);
}

/* Flyout Menus */
.flyout-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-flyout);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 1050;
  overflow: hidden;
}

.nav-item:hover .flyout-menu,
.nav-item.open .flyout-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.flyout-services {
  width: 580px;
}

.flyout-industries {
  width: 420px;
}

.flyout-grid {
  display: grid;
  padding: 0.75rem;
  gap: 0.25rem;
}

.flyout-grid-2col {
  grid-template-columns: 1fr 1fr;
}

.flyout-card {
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.flyout-card:hover {
  background-color: rgba(16, 16, 16, 0.04);
}

.flyout-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.flyout-card:hover .flyout-card-title {
  color: var(--color-primary);
}

.flyout-card-desc {
  font-size: 0.775rem;
  color: rgba(16, 16, 16, 0.6);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.flyout-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 1.25rem;
  background-color: #faf9f7;
}

.flyout-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  font-weight: 600;
  transition: color 0.15s ease;
}

.flyout-footer-link:hover {
  color: var(--color-primary);
}

.flyout-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  z-index: 1060;
  position: relative;
  border-radius: 6px;
}

@media (min-width: 1100px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.navbar-scrolled .hamburger-bar {
  background-color: #101010;
}

/* When drawer is open, hamburger bars become white X */
body.mobile-nav-open .hamburger-bar {
  background-color: #ffffff !important;
}

.hamburger-btn.active .hamburger-bar-top {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar-mid {
  opacity: 0;
}

.hamburger-btn.active .hamburger-bar-bot {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Menu - Full-Screen Fixed Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #0d1612;
  color: var(--color-fg);
  padding: 5rem 1.5rem 2.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  z-index: 1050;
  pointer-events: auto;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-inner {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-fg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sub-list {
  padding: 0.5rem 0 1rem 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-sub-list.open {
  display: flex;
}

.mobile-sub-link {
  font-size: 0.9375rem;
  color: var(--color-fg-dim);
  padding: 0.35rem 0;
  display: block;
}

.mobile-sub-link:hover {
  color: var(--color-primary);
}

/* Sections */
.section {
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-py-16 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .section-py-20 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--color-ink);
  color: var(--color-fg);
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero-section > .site-container {
  position: relative;
  z-index: 2;
}

.hero-pattern-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-pattern-glows {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 75% 70% at -5% 8%, rgba(255, 106, 61, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 65% -10%, rgba(255, 106, 61, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 108% 108%, rgba(255, 106, 61, 0.06) 0%, transparent 58%);
}

.hero-pattern-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-pattern-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-52deg, rgba(255, 255, 255, 0.022) 0px, rgba(255, 255, 255, 0.022) 1px, transparent 1px, transparent 24px);
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 7rem;
    padding-bottom: 6rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.hero-heading {
  max-width: 22ch;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-lead {
  max-width: 62ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-fg-dim);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  border-top: 1px solid var(--color-rule);
  padding-top: 1.5rem;
}

.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof-item svg {
  color: var(--color-primary);
}

/* Marquee / Trusted by */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  gap: 4rem;
  align-items: center;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 48px;
  padding: 0 1.25rem;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.marquee-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.marquee-logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-block;
}

.marquee-logo-name {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

/* "What are you trying to do?" Cards */
.routing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .routing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.routing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-editorial), box-shadow 0.2s var(--ease-editorial), border-color 0.2s;
  text-decoration: none;
  min-height: 240px;
}

.routing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 106, 61, 0.4);
}

.routing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.routing-step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-primary);
  font-weight: 600;
}

.routing-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

.routing-card:hover .routing-arrow-circle {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateX(3px);
}

.routing-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.routing-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(16, 16, 16, 0.7);
}

/* Case Study Proof Cards */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  transition: box-shadow 0.25s var(--ease-editorial), transform 0.25s var(--ease-editorial);
}

@media (min-width: 992px) {
  .case-study-card {
    grid-template-columns: 1.15fr 1fr;
  }
}

.case-study-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.case-study-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .case-study-content {
    padding: 3rem;
  }
}

.case-study-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.case-study-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.metric-number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.8125rem;
  color: rgba(16, 16, 16, 0.65);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.case-study-visual {
  position: relative;
  background-color: #f4f3f0;
  min-height: 280px;
  overflow: hidden;
}

.case-study-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-editorial);
}

.case-study-card:hover .case-study-visual img {
  transform: scale(1.03);
}

/* 4-Step Process Section */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-card {
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  position: relative;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.process-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(16, 16, 16, 0.7);
}

/* Industry Tabs */
.industry-tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.5rem;
}

.industry-tab-btn {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: rgba(16, 16, 16, 0.6);
  transition: all 0.2s ease;
  background: none;
}

.industry-tab-btn:hover {
  color: var(--color-dark);
  background-color: rgba(0, 0, 0, 0.04);
}

.industry-tab-btn.active {
  color: #ffffff;
  background-color: var(--color-ink);
}

.industry-tab-panel {
  display: none;
}

.industry-tab-panel.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .industry-tab-panel.active {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* Metrics & Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  padding: 2rem 1.5rem;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(16, 16, 16, 0.7);
  font-weight: 500;
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  background-color: #faf9f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e5e5e5;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
}

.testimonial-role {
  font-size: 0.75rem;
  color: rgba(16, 16, 16, 0.6);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  padding: 2.25rem 2rem;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(255, 106, 61, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.pricing-price {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
  margin: 1rem 0 0.5rem;
}

.pricing-features {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(16, 16, 16, 0.8);
}

.pricing-feature-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color 0.15s ease;
}

.faq-trigger:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, background-color 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background-color: var(--color-primary);
  color: #ffffff;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-editorial), padding-bottom 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(16, 16, 16, 0.75);
}

.faq-item.open .faq-content {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  position: relative;
  background-color: var(--color-ink);
  color: var(--color-fg-dim);
  padding-top: 4rem;
  padding-bottom: 3rem;
  overflow: hidden;
  border-top: 1px solid var(--color-rule);
}

.footer-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 106, 61, 0.6) 35%, rgba(255, 106, 61, 0.3) 65%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-fg-dim);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-col-divider {
  width: 20px;
  height: 1px;
  background-color: rgba(255, 106, 61, 0.4);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--color-fg-dim);
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 16, 16, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease-editorial);
  position: relative;
}

.modal-backdrop.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-dark);
  transition: background-color 0.15s ease;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--color-dark);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.15);
}

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

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: var(--color-fg-muted);
}

.breadcrumb a {
  color: var(--color-fg-dim);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* Responsive Helper Utilities */
@media (min-width: 768px) {
  .md-flex-row {
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  .md-grid-2col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .lg-grid-2col {
    grid-template-columns: 1fr 1fr !important;
  }
}
