/* ============================================================
   Nobility BPM — Multi-Theme Enterprise Design System
   Themes:
   1. [default / data-theme="light"] — Modern Clean Enterprise Light (Stripe / Thoughtworks)
   2. [data-theme="editorial"]       — Warm Editorial Consulting (McKinsey / Pentagram)
   3. [data-theme="navy"]            — Deep Royal Navy Corporate (IBM / Cisco)
   4. [data-theme="dark"]            — Obsidian Precision Dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================================
   ACTIVE THEME: WARM EDITORIAL CONSULTING (McKinsey / Pentagram)
   ============================================================ */
:root,
[data-theme="editorial"] {
  --base: #f7f5f0;
  --base-surface: #ffffff;
  --surface: #ffffff;
  --surface-raised: #eeeae0;
  --surface-hover: #e5e0d4;
  --surface-glass: rgba(247, 245, 240, 0.9);

  --line-subtle: #eeeae2;
  --line: #e3ded4;
  --line-strong: #c8c0b0;
  --line-accent: rgba(30, 58, 138, 0.35);

  --cyan: #1e3a8a;           /* Deep Classic Navy */
  --cyan-dim: rgba(30, 58, 138, 0.08);
  --indigo: #78350f;         /* Warm Amber / Leather */
  --indigo-dim: rgba(120, 53, 15, 0.08);
  --emerald: #14532d;        /* Deep Forest Green */
  --emerald-dim: rgba(20, 83, 45, 0.1);

  --text-primary: #1c1917;   /* Warm Stone 900 */
  --text-secondary: #57534e; /* Warm Stone 600 */
  --text-tertiary: #78716c;  /* Warm Stone 500 */
  --text-inverse: #ffffff;

  --card-bg: #ffffff;
  --card-shadow: 0 4px 16px -2px rgba(28, 25, 23, 0.05), 0 2px 4px rgba(28, 25, 23, 0.03);
  --card-shadow-hover: 0 14px 28px -4px rgba(28, 25, 23, 0.08);

  --gradient-brand: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  --gradient-text: linear-gradient(180deg, #1c1917 30%, #44403c 100%);
  --gradient-accent-text: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
  --gradient-cta: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  --cta-text-primary: #ffffff;
  --cta-text-secondary: #d6d3d1;

  --nav-bg: rgba(247, 245, 240, 0.9);
  --nav-scrolled: rgba(247, 245, 240, 0.98);
  --footer-bg: #ece7de;
  --grid-line-color: rgba(28, 25, 23, 0.03);

  --logo-text-color: #1c1917;
}

/* ============================================================
   ALTERNATIVE THEMES (COMMENTED OUT)
   Uncomment any theme below if you wish to switch back.
   ============================================================ */

/*
[data-theme="light"] {
  --base: #f8fafc;
  --base-surface: #ffffff;
  --surface: #ffffff;
  --surface-raised: #f1f5f9;
  --surface-hover: #e2e8f0;
  --surface-glass: rgba(255, 255, 255, 0.85);

  --line-subtle: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-accent: rgba(37, 99, 235, 0.3);

  --cyan: #2563eb;
  --cyan-dim: rgba(37, 99, 235, 0.08);
  --indigo: #4f46e5;
  --indigo-dim: rgba(79, 70, 229, 0.08);
  --emerald: #059669;
  --emerald-dim: rgba(5, 150, 105, 0.1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #ffffff;

  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);

  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --gradient-text: linear-gradient(180deg, #0f172a 30%, #334155 100%);
  --gradient-accent-text: linear-gradient(135deg, #2563eb 10%, #7c3aed 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-cta: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --cta-text-primary: #ffffff;
  --cta-text-secondary: #cbd5e1;

  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-scrolled: rgba(255, 255, 255, 0.98);
  --footer-bg: #f1f5f9;
  --grid-line-color: rgba(15, 23, 42, 0.03);

  --logo-text-color: #0f172a;
}

[data-theme="navy"] {
  --base: #0b1329;
  --base-surface: #101c3d;
  --surface: #132247;
  --surface-raised: #182b59;
  --surface-hover: #1e356e;
  --surface-glass: rgba(19, 34, 71, 0.85);

  --line-subtle: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --line-accent: rgba(56, 189, 248, 0.4);

  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.14);
  --indigo: #6366f1;
  --indigo-dim: rgba(99, 102, 241, 0.14);
  --emerald: #34d399;
  --emerald-dim: rgba(52, 211, 153, 0.14);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0b1329;

  --card-bg: linear-gradient(180deg, #132247 0%, #0f1a36 100%);
  --card-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 18px 36px -6px rgba(56, 189, 248, 0.15);

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --gradient-text: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  --gradient-accent-text: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-card: linear-gradient(180deg, #14234b 0%, #0d1733 100%);
  --gradient-cta: linear-gradient(135deg, #182b59 0%, #0e1834 100%);
  --cta-text-primary: #ffffff;
  --cta-text-secondary: #94a3b8;

  --nav-bg: rgba(11, 19, 41, 0.85);
  --nav-scrolled: rgba(11, 19, 41, 0.98);
  --footer-bg: #070d1e;
  --grid-line-color: rgba(255, 255, 255, 0.02);

  --logo-text-color: #ffffff;
}

[data-theme="dark"] {
  --base: #07090e;
  --base-surface: #0b0f17;
  --surface: #101622;
  --surface-raised: #151d2c;
  --surface-hover: #1a2436;
  --surface-glass: rgba(16, 22, 34, 0.8);

  --line-subtle: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-accent: rgba(47, 216, 255, 0.35);

  --cyan: #2fd8ff;
  --cyan-dim: rgba(47, 216, 255, 0.12);
  --indigo: #4f6bff;
  --indigo-dim: rgba(79, 107, 255, 0.12);
  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.12);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #05080f;

  --card-bg: linear-gradient(180deg, rgba(21, 29, 44, 0.8) 0%, rgba(11, 15, 23, 0.9) 100%);
  --card-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 20px 40px -8px rgba(47, 216, 255, 0.12);

  --gradient-brand: linear-gradient(135deg, #2fd8ff 0%, #4f6bff 100%);
  --gradient-text: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  --gradient-accent-text: linear-gradient(135deg, #2fd8ff 10%, #818cf8 100%);
  --gradient-card: linear-gradient(180deg, rgba(21, 29, 44, 0.8) 0%, rgba(11, 15, 23, 0.9) 100%);
  --gradient-cta: linear-gradient(145deg, rgba(20, 28, 44, 0.9) 0%, rgba(10, 14, 22, 0.95) 100%);
  --cta-text-primary: #ffffff;
  --cta-text-secondary: #94a3b8;

  --nav-bg: rgba(7, 9, 14, 0.8);
  --nav-scrolled: rgba(7, 9, 14, 0.96);
  --footer-bg: #05070a;
  --grid-line-color: rgba(255, 255, 255, 0.015);

  --logo-text-color: #ffffff;
}
*/

/* Global Variables */
:root {
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Base Reset & Setup */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Architectural Subtle Grid Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-size: 64px 64px;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--text-secondary); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--text-secondary); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-accent {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Layout Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.8rem);
  flex-wrap: wrap;
}

.section-head h2 { max-width: 22ch; }
.section-head .desc { max-width: 45ch; font-size: 1.02rem; }

/* ---------- Interactive Theme Switcher Bar ---------- */
/* 
.theme-picker-bar {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter);
  font-size: 0.82rem;
  position: relative;
  z-index: 101;
  transition: all 0.3s ease;
}

.theme-picker-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.theme-picker-label {
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-options {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.theme-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--line-strong);
}

.theme-btn.active {
  background: var(--cyan);
  color: var(--text-inverse);
  border-color: var(--cyan);
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.4);
}
*/

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: var(--nav-scrolled);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding 0.3s ease;
}

.nav.scrolled .nav-inner {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.01em;
  color: var(--logo-text-color);
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--cyan);
  border-radius: var(--radius-full);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-inverse);
  box-shadow: 0 2px 8px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--surface-raised);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.2s ease;
}

/* ---------- Hero Section ---------- */
.hero {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.4rem;
}

.hero .lead {
  max-width: 52ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.8rem, 3.5vw, 3rem);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 0.35rem;
  font-weight: 600;
}

/* ---------- Live Process Orchestration Viewport (Hero Visual) ---------- */
.orchestration-viewport {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: all 0.3s ease;
}

.viewport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.viewport-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.viewport-title-icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.viewport-status {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.pipeline-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.pipeline-node {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.pipeline-node:hover {
  border-color: var(--line-strong);
}

.pipeline-node.active {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.node-idx {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  width: 20px;
}

.node-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.node-tag {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

.node-metric {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
}

.viewport-footer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ---------- Client Brand Marquee ---------- */
.marquee-section {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

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

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

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

.marquee-track img {
  height: 26px;
  opacity: 0.75;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.marquee-track img:hover {
  opacity: 1;
}

[data-theme="dark"] .marquee-track img,
[data-theme="navy"] .marquee-track img {
  filter: brightness(0) invert(1) opacity(0.75);
}

[data-theme="dark"] .marquee-track img:hover,
[data-theme="navy"] .marquee-track img:hover {
  filter: brightness(0) invert(1) opacity(1);
}

/* ---------- Editorial Statement ---------- */
.statement {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  text-align: center;
}

.statement p.big {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3.8vw, 2.9rem);
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 26ch;
  margin: 0 auto;
}

/* ---------- Service Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.pillar-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.pillar h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ---------- Industry Bento Grid ---------- */
.industry-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

.industry-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.industry-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--cyan-dim);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.industry-icon {
  width: 24px;
  height: 24px;
  color: var(--cyan);
}

.industry-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.industry-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.industry-compliance {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.comp-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-tertiary);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.industry-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.industry-card:hover .industry-link {
  gap: 0.65rem;
}

/* ---------- Case Study Section ---------- */
.case-study-box {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  box-shadow: var(--card-shadow);
}

.case-study-box h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.case-study-metrics {
  display: flex;
  gap: clamp(1.8rem, 3.5vw, 3rem);
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.case-metric .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.1;
}

.case-metric .label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Architecture Breakdown Card */
.case-arch-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.case-arch-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
}

.arch-flow-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.arch-flow-item:first-child { border-top: none; }

.arch-flow-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.arch-flow-body h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.arch-flow-body p {
  font-size: 0.8rem;
  line-height: 1.45;
}

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

.testimonial {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
}

.testimonial .stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.testimonial p.quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-inverse);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.author-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.author-meta span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--gradient-cta);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}

.cta-band h2 {
  max-width: 22ch;
  margin: 0 auto 1rem;
  color: var(--cta-text-primary);
}

.cta-band p {
  max-width: 45ch;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
  color: var(--cta-text-secondary);
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2.5rem;
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin: 1.1rem 0 1.5rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  background: var(--surface);
}

.social-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

.page-hero .lead {
  max-width: 55ch;
}

/* ---------- Delivery Process (services.html) ---------- */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  padding: 2.8rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.25s ease;
}

.step:hover {
  padding-left: 0.75rem;
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.step-body h3 {
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.step-body p {
  max-width: 60ch;
  font-size: 0.98rem;
}

/* ---------- Values Grid (about.html) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.value-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Team Grid (about.html) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.team-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.team-photo {
  aspect-ratio: 4/3;
  background: var(--surface-raised);
  overflow: hidden;
}

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

.team-info {
  padding: 1.6rem;
}

.team-info .role {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.team-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.team-info p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Contact Page Layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.contact-info-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.contact-info-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-info-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.contact-info-item .ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan);
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.contact-info-item p {
  font-size: 0.9rem;
}

.contact-form-box {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--card-shadow);
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 2px var(--cyan-dim);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* ---------- Industry Detail Layout (industries.html) ---------- */
.industries-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.industries-nav {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}

.industries-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 0.6rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.industries-nav a::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 1rem;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: all 0.2s ease;
}

.industries-nav a:hover {
  color: var(--text-secondary);
}

.industries-nav a.is-active {
  color: var(--cyan);
  font-weight: 700;
}

.industries-nav a.is-active::before {
  width: 16px;
  height: 2px;
  left: -1.3rem;
  background: var(--cyan);
}

.industries-content {
  display: flex;
  flex-direction: column;
}

.industry-detail {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  scroll-margin-top: 130px;
}

.industry-detail:first-child {
  border-top: none;
  padding-top: 0;
}

.industry-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.industry-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.use-case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.6rem;
}

.use-case-list li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.use-case-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.use-case-list li::before {
  content: '→';
  font-family: var(--font-display);
  color: var(--cyan);
  font-weight: 700;
}

.mini-case {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
}

.mini-case h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.mini-case .metrics {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.mini-case .metric .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--emerald);
  font-size: 1.4rem;
  line-height: 1.1;
}

.mini-case .metric .label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* ---------- Utility ---------- */
.mt-lg { margin-top: 2.5rem; }
.text-center { text-align: center; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orchestration-viewport { max-width: 580px; }
  .pillars { grid-template-columns: 1fr; }
  .industry-bento { grid-template-columns: 1fr 1fr; }
  .case-study-box { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .industry-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .mobile-toggle { display: flex; }

  .industries-layout { grid-template-columns: 1fr; }
  .industries-nav {
    position: sticky; top: 110px; z-index: 10; flex-direction: row; overflow-x: auto;
    border-left: none; border-bottom: 1px solid var(--line); padding: 0.75rem var(--gutter);
    background: var(--nav-bg); backdrop-filter: blur(16px);
    margin: 0 calc(var(--gutter) * -1) 1.5rem;
  }
  .industries-nav a { white-space: nowrap; padding: 0.4rem 0.9rem; font-size: 0.85rem; }
  .industries-nav a::before { display: none; }
  .industries-nav a.is-active { background: var(--cyan-dim); border-radius: var(--radius-full); }

  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .industry-bento { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0.75rem; }
}
