/* ============================================
   MH SOLICITORS — Design System
   Colors: Deep Navy + Gold
   Fonts: Plus Jakarta Sans + Inter
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette — Deep Navy (MH brand) */
  --navy-950: #00071a;
  --navy-900: #000d2a;
  --navy-800: #0a1834;
  --navy-700: #122247;
  --navy-600: #1d3463;
  --navy-500: #2c4a82;

  /* Accent — Gold */
  --gold-300: #f3d488;
  --gold-400: #ecc25a;
  --gold-500: #e2ab33;
  --gold-600: #c8901f;
  --gold-700: #a6741a;

  /* Legacy aliases (mapped to gold for existing rules) */
  --blue-600: var(--gold-600);
  --blue-500: var(--gold-500);
  --blue-400: var(--gold-400);
  --blue-300: var(--gold-300);
  --blue-200: #f6efe0;
  --teal-600: var(--gold-700);
  --teal-500: var(--gold-600);
  --teal-400: var(--gold-400);
  --teal-300: var(--gold-300);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #c9d3e3;
  --text-muted: #8a96ab;
  --text-tertiary: var(--text-muted);
  --text-on-light: var(--navy-900);
  --text-on-light-secondary: var(--navy-600);
  --cream: #f6efe0;

  /* Semantic tokens */
  --bg-primary: var(--navy-950);
  --bg-secondary: var(--navy-900);
  --bg-elevated: var(--navy-800);
  --bg-card: rgba(10, 24, 52, 0.55);
  --bg-card-hover: rgba(10, 24, 52, 0.85);
  --bg-glass: rgba(0, 13, 42, 0.75);

  --accent: var(--gold-500);
  --accent-hover: var(--gold-400);
  --accent-glow: rgba(226, 171, 51, 0.22);
  --secondary: var(--gold-600);
  --secondary-glow: rgba(200, 144, 31, 0.18);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(226, 171, 51, 0.35);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  --gradient-brand-hover: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  --gradient-text: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  --gradient-radial: radial-gradient(ellipse at 30% 20%, rgba(226, 171, 51, 0.1) 0%, transparent 60%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(226, 171, 51, 0.12) 0%, transparent 55%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', Times, serif;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing scale (8px base) */
  --sp-0: 0;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --sp-40: 10rem;

  /* Borders & Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Z-index scale */
  --z-base: 0;
  --z-card: 10;
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-progress: 400;
  --z-floating: 350;

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--sp-6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 156px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: white;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  display: inline-block;
  padding-bottom: 0.12em;
  line-height: 1.25;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  z-index: var(--z-progress);
  transition: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--sp-6) 0;
  transition: background var(--duration-base) var(--ease-smooth),
              padding var(--duration-base) var(--ease-smooth),
              backdrop-filter var(--duration-base) var(--ease-smooth);
}

.nav--scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5) 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: var(--z-nav);
}

.logo-cloud {
  color: var(--text-primary);
}

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

/* SVG wordmark (replaces .logo-cloud / .logo-computing text spans) */
.nav-logo__svg {
  display: block;
  height: 76px;
  width: auto;
  max-width: none;
  color: var(--text-primary);
}

.footer-brand .nav-logo__svg {
  height: 52px;
}

@media (max-width: 980px) {
  .nav-logo__svg {
    height: 58px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  justify-self: center;
}

.nav-link {
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--duration-base) var(--ease-smooth);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link--cta {
  background: var(--gradient-brand);
  color: white !important;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: transform var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 20px;
  z-index: var(--z-overlay);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-smooth),
              opacity var(--duration-fast) var(--ease-smooth);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-smooth);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
  justify-content: center;
}

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

.btn--primary:hover {
  background: var(--gradient-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn--full {
  width: 100%;
}

.btn__icon {
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

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

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--sp-32) + 2rem) var(--container-padding) var(--sp-16);
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-split {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

.hero-text {
  flex: 0 0 55%;
  max-width: 55%;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  margin-bottom: var(--sp-8);
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 4.5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  overflow: visible;
  padding-bottom: 0.14em;
}

.hero-title__gradient {
  display: inline-block;
  padding-bottom: 0.12em;
  line-height: 1.25;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ---------- Hero Stats Row ---------- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat__suffix {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat__label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  white-space: nowrap;
}

.hero-stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---------- Hero Illustration ---------- */
.hero-illustration {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 3D Hero Particle Cloud --- */
.hero-3d-wrapper {
  position: relative;
  overflow: visible;
  width: 100%;
  height: 420px;
  min-height: 380px;
}
.hero-3d-wrapper canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#hero3d canvas,
#hero3dCanvas {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

#hero-3d-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Ambient CSS glow behind the canvas */
.hero-3d-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(226, 171, 51, 0.15) 0%,
    rgba(200, 144, 31, 0.10) 30%,
    rgba(200, 144, 31, 0.05) 50%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* --- 3D Hero Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  #hero3dCanvas { display: none; }
  .hero-3d-glow { animation: none; }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin-top: var(--sp-16);
}

.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-8) var(--sp-10);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 2vw, var(--text-3xl));
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-2);
  font-weight: 500;
}

.stat__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---------- Section Common ---------- */
.section {
  padding: var(--sp-24) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--sp-16);
  overflow: visible;
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  overflow: visible;
  padding-bottom: 0.14em;
}

.section-title .text-gradient {
  line-height: 1.3;
  padding-bottom: 0.14em;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Services ---------- */
.services {
  background:
    var(--gradient-radial),
    var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: transform var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card--featured {
  border-color: var(--border-accent);
  background: rgba(226, 171, 51, 0.05);
}

.service-card--featured::before {
  opacity: 1;
}

.service-card__badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  background: var(--gradient-brand);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 171, 51, 0.1);
  border: 1px solid rgba(226, 171, 51, 0.2);
  border-radius: var(--radius-lg);
  color: var(--accent);
  margin-bottom: var(--sp-6);
  transition: background var(--duration-base) var(--ease-smooth);
}

.service-card:hover .service-card__icon {
  background: rgba(226, 171, 51, 0.15);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.service-card__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.service-card__features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: var(--sp-5);
  position: relative;
  line-height: 1.5;
}

.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

.service-card__footer {
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--duration-fast) var(--ease-smooth);
}

.service-card__link:hover {
  gap: var(--sp-3);
}

.service-card__link svg {
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.service-card__link:hover svg {
  transform: translateX(2px);
}

/* ---------- Why Us / Differentiators ---------- */
.why-us {
  background: var(--bg-secondary);
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.diff-card {
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.diff-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 144, 31, 0.1);
  border: 1px solid rgba(200, 144, 31, 0.2);
  border-radius: var(--radius-md);
  color: var(--secondary);
  margin-bottom: var(--sp-5);
}

.diff-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.diff-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Team ---------- */
.team {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(200, 144, 31, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 880px;
  margin: 0 auto var(--sp-16);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: left;
  transition: transform var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.team-card__photo {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-md);
}

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

.team-card__body > p:not(.team-card__role) {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.team-card__body > p:last-child {
  margin-bottom: 0;
}

.team-card__areas {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .team-card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-8);
    padding: var(--sp-8);
  }
  .team-card__photo {
    width: 240px;
    max-width: 240px;
    flex: 0 0 240px;
    margin-inline: 0;
    aspect-ratio: 4 / 5;
  }
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.team-card__avatar {
  margin-bottom: var(--sp-5);
}

.team-card__avatar-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 171, 51, 0.1);
  border: 2px solid rgba(226, 171, 51, 0.2);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
}

.team-card__avatar-placeholder--plus {
  background: rgba(200, 144, 31, 0.1);
  border-color: rgba(200, 144, 31, 0.2);
  color: var(--secondary);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.team-card__role {
  display: block;
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}

.team-card__specialities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.tag--cta {
  background: rgba(226, 171, 51, 0.1);
  border-color: rgba(226, 171, 51, 0.2);
  color: var(--accent);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth);
}

.tag--cta:hover {
  background: rgba(226, 171, 51, 0.2);
}

.team-card--growing {
  border-style: dashed;
  border-color: var(--border-hover);
}

/* ---------- Certifications Bar ---------- */
.certs-bar {
  text-align: center;
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.certs-bar__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--sp-6);
}

.certs-bar__logos {
  display: flex;
  justify-content: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.cert-badge:hover {
  color: var(--text-secondary);
}

.cert-badge svg {
  opacity: 0.5;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.testimonial-card {
  position: relative;
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.testimonial-card__quote {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  color: var(--accent);
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 171, 51, 0.1);
  border: 1px solid rgba(226, 171, 51, 0.2);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-card__name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-card__company {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(226, 171, 51, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.contact-detail svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.contact-detail a:hover {
  color: var(--accent);
}

/* ---------- Contact Form ---------- */
.contact-form {
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth),
              background var(--duration-fast) var(--ease-smooth);
  min-height: 48px;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255, 255, 255, 0.05);
}

.form-input:focus-visible {
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-select option {
  background: var(--navy-800);
  color: var(--text-primary);
}

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

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: var(--text-xs);
  color: #ef4444;
  margin-top: var(--sp-1);
}

.form-success {
  padding: var(--sp-4);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: #22c55e;
  font-size: var(--text-sm);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--sp-16) 0 var(--sp-8);
  background: var(--navy-950);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand__text {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-top: var(--sp-4);
  max-width: 300px;
}

.footer-links__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: var(--text-secondary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-bottom__links {
  display: flex;
  gap: var(--sp-6);
}

.footer-bottom__links a {
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-bottom__links a:hover {
  color: var(--text-primary);
}

/* ---------- Focus Styles ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Reduced Motion ---------- */
/* ============================================
   ANIMATED GLOW BORDER — Conic gradient trace
   Applied to cards on hover. Adapted from Unity First Group.
   ============================================ */
.glow-border {
  position: relative;
  overflow: hidden;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--accent, #ecc25a),
    var(--secondary, #c8901f),
    var(--accent, #ecc25a),
    var(--secondary, #c8901f),
    var(--accent, #ecc25a)
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -2;
  animation: glowRotate 4s linear infinite paused;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--navy-900, #000d2a);
  z-index: -1;
}

.glow-border:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes glowRotate {
  to { transform: rotate(360deg); }
}

/* Ensure card content sits above the pseudo-elements */
.glow-border > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   Animation system (shared motion vocabulary)
   ============================================ */
html.motion-ready {
  opacity: 0.86;
  transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.motion-ready.is-loaded {
  opacity: 1;
}

html.motion-ready :is(.js-reveal, .reveal, .js-reveal-up, .js-stagger-item, .js-image-reveal) {
  opacity: 0;
  transition:
    opacity 0.66s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.66s cubic-bezier(0.22, 0.61, 0.36, 1),
    clip-path 0.84s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.motion-ready :is(.js-reveal, .reveal) {
  transform: translate3d(0, 16px, 0);
}

html.motion-ready .js-reveal-up,
html.motion-ready .js-stagger-item {
  transform: translate3d(0, 28px, 0);
}

html.motion-ready .js-image-reveal {
  display: block;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
}

html.motion-ready .js-image-reveal:not(:has(img)) {
  overflow: visible;
  clip-path: none;
}

html.motion-ready :is(.js-reveal, .js-reveal-up, .reveal):has(:is(.section-title, .hero-title, h1, h2)) {
  overflow: visible;
}

html.motion-ready .js-image-reveal img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.08);
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.motion-ready :is(.js-reveal, .reveal, .js-reveal-up, .js-stagger-item, .js-image-reveal).is-inview,
html.motion-ready :is(.js-reveal, .reveal, .js-reveal-up, .js-stagger-item, .js-image-reveal).revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 0 0);
}

html.motion-ready .js-image-reveal.is-inview img,
html.motion-ready .js-image-reveal.revealed img {
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.hero-line-clip {
  display: block;
  overflow: hidden;
  line-height: inherit;
  padding-bottom: 0.14em;
}

.hero-line-clip:has(:is(.hero-title, .section-title)) {
  overflow: visible;
}

.hero-line {
  display: inline-block;
  will-change: transform, opacity;
}

html.motion-ready .hero--law .hero-bg-image {
  transform: scale(1.06);
  transition: transform 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.motion-ready.is-loaded .hero--law .hero-bg-image {
  transform: scale(1);
}

.animated-card {
  transition:
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animated-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.animated-card :is(svg, .practice-explorer__icon, .practice-explorer__chevron) {
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animated-card:hover :is(.practice-explorer__icon, .practice-explorer__chevron),
.animated-card:hover a svg {
  transform: translate3d(2px, -1px, 0);
}

.animated-card img {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animated-card:hover img {
  transform: scale(1.03);
}

.animated-button,
.btn.animated-button {
  transition:
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animated-button:hover {
  transform: translateY(-2px);
}

.animated-button:active {
  transform: translateY(0) scale(0.985);
}

.animated-button svg {
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animated-button:hover svg {
  transform: translateX(3px);
}

.animated-link {
  position: relative;
  text-decoration: none;
}

.animated-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.7;
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animated-link:hover::after,
.animated-link:focus-visible::after {
  transform: scaleX(1);
}

@media (hover: none) and (pointer: coarse) {
  .animated-card:hover,
  .animated-button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.motion-ready {
    opacity: 1 !important;
    transition: none !important;
  }

  html.motion-ready :is(.js-reveal, .reveal, .js-reveal-up, .js-stagger-item, .js-image-reveal, .hero-bg-image) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    clip-path: none !important;
    animation: none !important;
  }

  html.motion-ready .circle-flow-reveal {
    background: var(--navy-950) !important;
  }

  .circle-flow-circle {
    display: none !important;
  }

  .circle-flow-content {
    opacity: 1 !important;
    transform: none !important;
  }

  .glow-border::before,
  .hero-badge__dot {
    animation: none !important;
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ---------- max-width: 1280px ---------- */
/* Fix: benefits grid applies to cards container, not section */
.benefits-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.benefits-grid__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--sp-12);
}

.benefits-grid__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.benefits-grid__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Fix: process-steps wrapping section */
.process-steps .container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.process-steps__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--sp-12);
}

.process-steps__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.process-steps__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.process-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}

@media (max-width: 1280px) {
  :root {
    --container-padding: var(--sp-8);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .differentiators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
  }

  .contact-grid {
    gap: var(--sp-10);
  }
}

/* ---------- max-width: 980px (Danny's phone viewport) ---------- */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  /* Body class locks scroll — mirrors Keystone */
  body.mobile-nav-active {
    overflow: hidden;
  }

  /* When menu is open, kill backdrop-filter on nav so it doesn't create a
     containing block that traps the position:fixed menu inside it.
     Without this, scrolling-then-opening the menu makes it shrink to nav height. */
  body.mobile-nav-active .nav,
  body.mobile-nav-active .nav.nav--scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Menu hidden by default on mobile */
  .nav-links {
    display: none;
  }

  /* Menu becomes a full-screen overlay when body has the active class.
     Selector descends from body, NOT from .nav, so no containing-block trap.
     No width or max-width — inset:0 determines size from viewport. */
  body.mobile-nav-active .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    justify-self: stretch;
    align-self: stretch;
    background: var(--navy-900);
    z-index: 9999;
    overflow-y: auto;
    padding: 131px var(--sp-6) var(--sp-6);
    align-items: stretch;
    gap: 0;
  }

  /* Items: full-width clickable rows with bottom border on the LI */
  .nav-links > li {
    list-style: none;
    width: 100%;
  }

  body.mobile-nav-active .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  body.mobile-nav-active .nav-links > li:last-child {
    margin-top: auto;
    border-bottom: none;
  }

  body.mobile-nav-active .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) 0;
    width: 100%;
    color: #F4F1EB;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-bottom: none;
  }

  body.mobile-nav-active .nav-link::after {
    display: none;
  }

  body.mobile-nav-active .nav-link--cta {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: var(--sp-4) var(--sp-6);
    width: 100%;
    margin: var(--sp-3) 0 var(--sp-2);
  }

  /* Dropdown trigger inside overlay */
  body.mobile-nav-active .nav-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) 0;
    width: 100%;
    color: #F4F1EB;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  /* Dropdown sub-menu inside overlay */
  body.mobile-nav-active .nav-dropdown__menu {
    padding: 0 0 var(--sp-2) var(--sp-5);
  }

  body.mobile-nav-active .nav-dropdown__link {
    display: block;
    padding: var(--sp-3) 0;
    color: rgba(244, 241, 235, 0.7);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- max-width: 768px ---------- */
@media (max-width: 768px) {
  .section {
    padding: var(--sp-16) 0;
  }

  .section-header {
    margin-bottom: var(--sp-10);
  }

  .hero {
    padding-top: var(--sp-24);
    min-height: auto;
    padding-bottom: var(--sp-12);
  }

  .hero-split {
    flex-direction: column;
    gap: var(--sp-8);
  }

  .hero-text {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-illustration {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #hero3dCanvas {
    height: 350px;
  }

  .hero-title {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-5xl));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .differentiators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card:last-child {
    max-width: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--sp-4);
  }

  .hero-stat {
    flex: 0 0 calc(50% - var(--sp-4));
  }

  .hero-stat__divider {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }
}

/* ---------- max-width: 640px ---------- */
@media (max-width: 640px) {
  :root {
    --container-padding: var(--sp-4);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  #hero3dCanvas {
    height: 280px;
  }

  .hero-stats {
    gap: var(--sp-3);
  }

  .hero-stat__number {
    font-size: var(--text-xl);
  }

  .differentiators-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--sp-6);
  }

  .certs-bar__logos {
    gap: var(--sp-6);
  }
}

/* ---------- max-width: 375px ---------- */
@media (max-width: 375px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  #hero3dCanvas {
    height: 250px;
  }

  .stat__number {
    font-size: var(--text-2xl);
  }

  .stat__label {
    font-size: 0.625rem;
  }

  .contact-form {
    padding: var(--sp-5);
  }
}

/* ---------- Nav overlay backdrop ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-smooth),
              visibility var(--duration-base) var(--ease-smooth);
  z-index: calc(var(--z-nav) - 1);
}

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

/* ---------- Animation initial states ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* scroll-padding-top on html handles anchor offsets */

/* ============================================
   MULTI-PAGE ADDITIONS
   Nav Dropdown, Page Hero, Service Detail,
   Benefits Grid, Process Steps, Logo Marquee,
   CTA Block, Map Placeholder
   ============================================ */

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

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-smooth);
  position: relative;
  background: none;
  border: none;
  padding: 0;
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible {
  color: var(--text-primary);
}

.nav-dropdown__chevron {
  transition: transform var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}

.nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-smooth),
              visibility var(--duration-base) var(--ease-smooth);
  z-index: var(--z-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
}

.nav-dropdown__menu.active,
.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) var(--ease-smooth),
              background var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown__link.active {
  color: var(--accent);
  background: rgba(226, 171, 51, 0.08);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: var(--sp-40) var(--container-padding) var(--sp-20);
  text-align: center;
  background:
    var(--gradient-hero),
    radial-gradient(ellipse at 70% 80%, rgba(200, 144, 31, 0.06) 0%, transparent 50%),
    var(--bg-primary);
  overflow: hidden;
}

.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__description {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Service Detail ---------- */
.service-detail {
  padding: var(--sp-24) 0;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.service-detail__content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.service-detail__content p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.service-detail__content p:last-child {
  margin-bottom: 0;
}

.service-detail__aside {
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.service-detail__aside h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
}

.service-detail__aside ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.service-detail__aside li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: var(--sp-5);
  position: relative;
  line-height: 1.5;
}

.service-detail__aside li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* ---------- Benefits Grid ---------- */
.benefits-grid {
  padding: var(--sp-20) var(--sp-6);
}

.benefit-card {
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 171, 51, 0.1);
  border: 1px solid rgba(226, 171, 51, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent);
  margin-bottom: var(--sp-5);
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.benefit-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Process Steps ---------- */
.process-steps {
  padding: var(--sp-20) var(--sp-6);
}

.process-step {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  position: relative;
}

.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-5);
  background: var(--gradient-brand);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.process-step__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -12px;
  width: calc(var(--sp-6) - 4px);
  height: 2px;
  background: var(--border);
}

/* ---------- Logo Marquee ---------- */
.logos-section {
  padding: var(--sp-12) 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logos-section__label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--sp-8);
}

.logos-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logos-marquee::before,
.logos-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.logos-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.logos-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.logos-marquee__track {
  display: flex;
  gap: var(--sp-16);
  align-items: center;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

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

.logo-item {
  flex-shrink: 0;
}

.logo-item__svg {
  height: 48px;
  width: auto;
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.5;
  transition: filter var(--duration-base) var(--ease-smooth),
              opacity var(--duration-base) var(--ease-smooth);
}

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

/* Pause marquee on hover for accessibility */
.logos-marquee:hover .logos-marquee__track {
  animation-play-state: paused;
}

/* ---------- CTA Block ---------- */
.cta-section {
  padding: var(--sp-24) 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(226, 171, 51, 0.08) 0%, transparent 50%),
    var(--bg-secondary);
}

.cta-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--sp-16);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
}

.cta-block__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.cta-block__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--text-lg);
}

/* ---------- Section CTA ---------- */
.section-cta {
  text-align: center;
  margin-top: var(--sp-12);
}

/* ---------- Map Placeholder ---------- */
.map-section {
  padding: var(--sp-16) 0;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--text-tertiary);
}

.map-placeholder svg {
  opacity: 0.4;
}

.map-placeholder span {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ---------- Stat Card (for service pages) ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.stat-card {
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-card__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ---------- Featured Label ---------- */
.page-hero__featured {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--gradient-brand);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

/* ============================================
   MULTI-PAGE RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 1024px) {
  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .stat-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  /* Mobile dropdown */
  .nav-dropdown__menu {
    position: static;
    transform: none;
    min-width: auto;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: var(--radius-md);
    padding: 0 0 0 var(--sp-4);
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-smooth),
                padding var(--duration-slow) var(--ease-smooth);
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-dropdown__menu.active {
    max-height: 640px;
    padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown__menu {
    /* Disable hover on mobile, require click only */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transform: none;
  }

  .nav-dropdown__menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 640px !important;
    transform: none !important;
  }

  .page-hero {
    padding: var(--sp-32) var(--container-padding) var(--sp-16);
  }
}

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

  .process-steps {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: var(--sp-24) var(--container-padding) var(--sp-12);
  }

  .cta-block {
    padding: var(--sp-10);
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero__title {
    font-size: var(--text-3xl);
  }
}

/* ---------- Reduced motion: marquee ---------- */
@media (prefers-reduced-motion: reduce) {
  .logos-marquee__track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-8);
  }
}

/* ============================================
   PHASE 3 ENRICHMENT — New Sections
   ============================================ */

/* ---------- Homepage Process Flow ---------- */
.homepage-process {
  padding: var(--sp-20) 0;
  position: relative;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500), var(--blue-500), var(--teal-500));
  opacity: 0.3;
  z-index: 0;
}

.process-flow__step {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 0.5rem;
}

.process-flow__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid rgba(226, 171, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(226, 171, 51, 0.15), rgba(200, 144, 31, 0.15));
  color: var(--blue-400);
  transition: all 0.4s ease;
}

.process-flow__step:hover .process-flow__number {
  border-color: var(--blue-400);
  background: linear-gradient(135deg, rgba(226, 171, 51, 0.25), rgba(200, 144, 31, 0.25));
  transform: scale(1.08);
}

.process-flow__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.process-flow__text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---------- Case Studies ---------- */
.case-studies {
  padding: var(--sp-20) 0;
  background: rgba(255, 255, 255, 0.015);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.case-study-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.case-study-card__image {
  height: 180px;
  background: linear-gradient(135deg, rgba(226, 171, 51, 0.15), rgba(200, 144, 31, 0.15));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(226, 171, 51, 0.2);
  color: var(--blue-300);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-card__metric {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-study-card__body {
  padding: 1.5rem;
}

.case-study-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.case-study-card__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.case-study-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, gap 0.2s;
}

.case-study-card__link:hover {
  color: var(--teal-400);
  gap: 0.6rem;
}

/* ---------- Industries ---------- */
.industries {
  padding: var(--sp-20) 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.industry-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.industry-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(226, 171, 51, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--blue-400);
}

.industry-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.industry-card__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Technologies Enhanced ---------- */
.tech-mastery {
  padding: var(--sp-20) 0;
  background: rgba(255, 255, 255, 0.015);
}

.tech-mastery__narrative {
  max-width: 700px;
  margin: 1rem auto 2.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  font-size: 1.05rem;
}

/* ---------- Our Impact (Stats) ---------- */
.impact-section {
  padding: var(--sp-20) 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.impact-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.impact-card:hover {
  border-color: var(--border-accent);
}

.impact-card__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.impact-card__suffix {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-card__label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* ---------- Related Services ---------- */
.related-services {
  padding: var(--sp-20) 0;
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.related-service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.related-service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(226, 171, 51, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue-400);
}

.related-service-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.related-service-card__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.related-service-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, gap 0.2s;
}

.related-service-card__link:hover {
  color: var(--teal-400);
  gap: 0.6rem;
}

/* ---------- Technologies Used (Service Pages) ---------- */
.tech-used {
  padding: var(--sp-16) 0;
}

.tech-used__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.tech-badge:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.tech-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
}

.tech-badge--teal .tech-badge__dot {
  background: var(--teal-500);
}

/* ---------- Footer Enhancements ---------- */
.footer-newsletter {
  margin-top: 1.5rem;
}

.footer-newsletter__form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-newsletter__input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.footer-newsletter__input::placeholder {
  color: var(--text-tertiary);
}

.footer-newsletter__input:focus {
  border-color: var(--blue-500);
}

.footer-newsletter__btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.footer-newsletter__btn:hover {
  opacity: 0.9;
}

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-cert__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-registration {
  text-align: center;
  padding-top: 1rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* ---------- Responsive: New Sections ---------- */
@media (max-width: 1024px) {
  .process-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .process-flow::before {
    display: none;
  }
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .process-flow {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-card__number {
    font-size: 2.5rem;
  }
  .footer-newsletter__form {
    flex-direction: column;
  }
  .footer-certs {
    justify-content: center;
  }
}


/* ============================================
   SERVICE DETAIL — Extended Styles
   ============================================ */

.service-detail__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.service-detail__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-detail__text p {
  margin-bottom: var(--sp-6);
}

.service-detail__text p:last-child {
  margin-bottom: 0;
}

.service-detail__stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  text-align: center;
  margin-bottom: var(--sp-4);
}

.service-detail__stat-card:last-child {
  margin-bottom: 0;
}

.service-detail__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-2);
}

.service-detail__stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Service Detail Sidebar Card (IT Support) */
.service-detail__sidebar {
  position: sticky;
  top: calc(var(--sp-24) + var(--sp-8));
}

.service-detail__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
}

.service-detail__card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
}

.service-detail__card ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.service-detail__card li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: var(--sp-6);
  position: relative;
  line-height: 1.5;
}

.service-detail__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-400));
  border-radius: 50%;
}

/* ============================================
   SERVICE VISUAL CARDS — Interactive Tiles
   ============================================ */

.service-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
}

.service-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.service-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(226, 171, 51, 0.1);
}

.service-visual-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(226, 171, 51, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.service-visual-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.service-visual-card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Stat Highlight Callout */
.stat-highlight {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  background: linear-gradient(135deg, rgba(226, 171, 51, 0.08), rgba(200, 144, 31, 0.05));
  border: 1px solid rgba(226, 171, 51, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-8);
  margin-top: var(--sp-6);
}

.stat-highlight__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-highlight__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Service Key Points List */
.service-key-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.service-key-point {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-key-point svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   INSIGHTS PAGE STYLES
   ============================================ */

.insights-hero {
  padding: calc(var(--sp-24) + var(--sp-16)) 0 var(--sp-16);
  text-align: center;
}

.insights-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.insights-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}

.insights-hero__description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Featured Article */
.featured-article {
  margin-bottom: var(--sp-16);
}

.featured-article__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.featured-article__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(226, 171, 51, 0.12);
}

.featured-article__visual {
  background: linear-gradient(135deg, rgba(226, 171, 51, 0.1), rgba(200, 144, 31, 0.08));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: var(--sp-8);
}

.featured-article__visual-inner {
  text-align: center;
}

.featured-article__visual-icon {
  width: 80px;
  height: 80px;
  background: rgba(226, 171, 51, 0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.featured-article__visual-stat {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-article__visual-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-2);
}

.featured-article__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-400);
  background: rgba(200, 144, 31, 0.1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.article-tag--blue {
  color: var(--blue-400);
  background: rgba(226, 171, 51, 0.1);
}

.article-tag--teal {
  color: var(--teal-400);
  background: rgba(200, 144, 31, 0.1);
}

.featured-article__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}

.featured-article__excerpt {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.featured-article__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-6);
}

.featured-article__meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--duration-normal) var(--ease-smooth);
}

.article-read-link:hover {
  gap: var(--sp-3);
  color: var(--accent-hover);
}

/* Article Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(226, 171, 51, 0.1);
}

.article-card__tag {
  margin-bottom: var(--sp-4);
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.article-card__meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--duration-normal) var(--ease-smooth);
}

.article-card__link:hover {
  gap: var(--sp-3);
  color: var(--accent-hover);
}

/* Newsletter CTA */
.newsletter-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(226, 171, 51, 0.06), rgba(200, 144, 31, 0.04));
  border: 1px solid rgba(226, 171, 51, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--sp-16) var(--sp-10);
}

.newsletter-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.newsletter-cta__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}

.newsletter-cta__form {
  display: flex;
  gap: var(--sp-3);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-cta__input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--duration-normal);
}

.newsletter-cta__input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-cta__btn {
  padding: var(--sp-3) var(--sp-6);
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: opacity var(--duration-normal), transform var(--duration-normal);
  white-space: nowrap;
}

.newsletter-cta__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================================
   INSIGHTS PAGE — Responsive
   ============================================ */

@media (max-width: 1024px) {
  .featured-article__card {
    grid-template-columns: 1fr;
  }
  .featured-article__visual {
    min-height: 200px;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-visual-grid {
    grid-template-columns: 1fr;
  }
  .service-key-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .insights-hero__title {
    font-size: var(--text-3xl);
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-cta__form {
    flex-direction: column;
  }
  .stat-highlight {
    flex-direction: column;
    text-align: center;
  }
  .stat-highlight__number {
    white-space: normal;        /* allow wrapping on mobile so long headings don't overflow viewport */
    font-size: var(--text-3xl); /* slightly smaller on mobile */
  }
  .featured-article__card {
    padding: var(--sp-6);
  }
}

@media (max-width: 980px) {
  .benefits-grid__cards {
    grid-template-columns: 1fr;
  }
  .process-steps__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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


/* ============================================================
   PAGE HERO SPLIT LAYOUT (for SVG illustrations)
   ============================================================ */
.page-hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
  max-width: 1400px;
  margin: 0 auto;
}
.page-hero-split .page-hero__content {
  flex: 0 0 55%;
  max-width: 55%;
  text-align: left;
}
.page-hero-split .page-hero__content .page-hero__title {
  margin-left: 0;
  margin-right: 0;
}
.page-hero-split .page-hero__content .page-hero__description {
  margin-left: 0;
  margin-right: 0;
}
.page-hero-illustration {
  flex: 0 0 42%;
  max-width: 42%;
}
.page-hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1024px) {
  .page-hero-split {
    flex-direction: column;
    gap: var(--sp-8);
    text-align: center;
  }
  .page-hero-split .page-hero__content {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  .page-hero-split .page-hero__content .page-hero__title {
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero-split .page-hero__content .page-hero__description {
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero-illustration {
    flex: 1 1 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Insights hero illustration (centered below text) */
.insights-hero-illustration {
  max-width: 420px;
  margin: var(--sp-10) auto 0;
}
.insights-hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1024px) {
  .insights-hero-illustration {
    max-width: 280px;
  }
}

/* About team illustration (inline with team section) */
.about-team-illustration {
  max-width: 380px;
  margin: var(--sp-10) auto 0;
}
.about-team-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact illustration (smaller, beside form) */
.contact-illustration {
  max-width: 280px;
  margin: var(--sp-6) auto var(--sp-10);
}
.contact-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SVG ILLUSTRATION ANIMATIONS — shared across all pages
   ============================================================ */

/* Pulse glow — generic (used by all illustrations) */
@keyframes svgPulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

/* Orbital spin variants */
@keyframes svgOrbit1 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes svgOrbit2 {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Dash flow for connection lines */
@keyframes svgDashFlow {
  to { stroke-dashoffset: -28; }
}

/* Reverse dash flow (server to cloud) */
@keyframes svgDashFlowReverse {
  to { stroke-dashoffset: 28; }
}

/* Node appear with scale */
@keyframes svgNodeAppear {
  to { opacity: 1; transform: scale(1); }
}

/* Float up and down */
@keyframes svgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Float horizontal */
@keyframes svgFloatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* Pulse opacity */
@keyframes svgPulseOpacity {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Heartbeat for IT support */
@keyframes svgHeartbeat {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  15% { transform: scale(1.15); opacity: 1; }
  30% { transform: scale(1); opacity: 0.8; }
  45% { transform: scale(1.1); opacity: 1; }
  60% { transform: scale(1); opacity: 0.8; }
}

/* Scale pulse for status dots */
@keyframes svgStatusPulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 6; opacity: 0.6; }
}

/* Data block moving left to right (migration) */
@keyframes svgMigrateBlock {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(180px); opacity: 0; }
}
@keyframes svgMigrateBlock2 {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(180px); opacity: 0; }
}
@keyframes svgMigrateBlock3 {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(180px); opacity: 0; }
}

/* Signal waves for contact */
@keyframes svgSignalWave {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Expertise line radiate */
@keyframes svgRadiate {
  0%, 100% { stroke-dashoffset: 40; opacity: 0.3; }
  50% { stroke-dashoffset: 0; opacity: 1; }
}

/* Progress bar fill (migration) */
@keyframes svgProgressFill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Arrow bounce right */
@keyframes svgArrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* Stack layer float */
@keyframes svgStackFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Gear rotate slow */
@keyframes svgGearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   SVG ILLUSTRATION ELEMENT STYLES
   ============================================================ */

/* Shared pulse glow circle */
.svg-pulse-glow {
  animation: svgPulseGlow 3.5s ease-in-out infinite;
  transform-origin: 250px 185px;
}

/* Connection lines with dash flow */
.svg-conn-line {
  stroke-dasharray: 8 6;
  animation: svgDashFlow 2.5s linear infinite;
}
.svg-conn-line--1 { animation-delay: 0s; }
.svg-conn-line--2 { animation-delay: -0.5s; }
.svg-conn-line--3 { animation-delay: -1s; }
.svg-conn-line--4 { animation-delay: -1.5s; }
.svg-conn-line--5 { animation-delay: -2s; }
.svg-conn-line--6 { animation-delay: -0.7s; }

/* Reverse connection lines */
.svg-conn-line-rev {
  stroke-dasharray: 8 6;
  animation: svgDashFlowReverse 2.5s linear infinite;
}

/* Orbital rings */
.svg-orbit-1 {
  animation: svgOrbit1 25s linear infinite;
  transform-origin: center;
}
.svg-orbit-2 {
  animation: svgOrbit2 32s linear infinite;
  transform-origin: center;
}

/* Nodes that appear */
.svg-node {
  opacity: 0;
  transform: scale(0.7);
  animation: svgNodeAppear 0.6s ease-out forwards;
}
.svg-node--1 { animation-delay: 0.3s; }
.svg-node--2 { animation-delay: 0.5s; }
.svg-node--3 { animation-delay: 0.7s; }
.svg-node--4 { animation-delay: 0.9s; }
.svg-node--5 { animation-delay: 1.1s; }
.svg-node--6 { animation-delay: 1.3s; }

/* Floating elements */
.svg-float {
  animation: svgFloat 4s ease-in-out infinite;
}
.svg-float--slow {
  animation: svgFloat 6s ease-in-out infinite;
}
.svg-float-x {
  animation: svgFloatX 5s ease-in-out infinite;
}

/* Pulsing elements */
.svg-pulse {
  animation: svgPulseOpacity 3s ease-in-out infinite;
}
.svg-pulse--fast {
  animation: svgPulseOpacity 2s ease-in-out infinite;
}

/* Heartbeat (IT support shield) */
.svg-heartbeat {
  animation: svgHeartbeat 2.5s ease-in-out infinite;
  transform-origin: 250px 185px;
}

/* Status pulse dots */
.svg-status-pulse {
  animation: svgPulseOpacity 2s ease-in-out infinite;
}
.svg-status-pulse--1 { animation-delay: 0s; }
.svg-status-pulse--2 { animation-delay: 0.5s; }
.svg-status-pulse--3 { animation-delay: 1s; }

/* Migration data blocks */
.svg-migrate-block {
  animation: svgMigrateBlock 3s ease-in-out infinite;
}
.svg-migrate-block--2 {
  animation: svgMigrateBlock2 3s ease-in-out infinite;
  animation-delay: -1s;
}
.svg-migrate-block--3 {
  animation: svgMigrateBlock3 3s ease-in-out infinite;
  animation-delay: -2s;
}

/* Signal waves (contact) */
.svg-signal-wave {
  animation: svgSignalWave 2s ease-out infinite;
  transform-origin: center;
}
.svg-signal-wave--2 {
  animation: svgSignalWave 2s ease-out infinite;
  animation-delay: -0.6s;
  transform-origin: center;
}
.svg-signal-wave--3 {
  animation: svgSignalWave 2s ease-out infinite;
  animation-delay: -1.2s;
  transform-origin: center;
}

/* Expertise radiate lines */
.svg-radiate {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: svgRadiate 3s ease-in-out infinite;
}
.svg-radiate--2 { animation-delay: -0.5s; }
.svg-radiate--3 { animation-delay: -1s; }
.svg-radiate--4 { animation-delay: -1.5s; }
.svg-radiate--5 { animation-delay: -2s; }

/* Arrow bounce */
.svg-arrow-bounce {
  animation: svgArrowBounce 2s ease-in-out infinite;
}

/* Stack float layers */
.svg-stack-float--1 { animation: svgStackFloat 5s ease-in-out infinite; animation-delay: 0s; }
.svg-stack-float--2 { animation: svgStackFloat 5s ease-in-out infinite; animation-delay: -1s; }
.svg-stack-float--3 { animation: svgStackFloat 5s ease-in-out infinite; animation-delay: -2s; }

/* Gear spin */
.svg-gear {
  animation: svgGearSpin 15s linear infinite;
  transform-origin: center;
}
.svg-gear--reverse {
  animation: svgGearSpin 20s linear infinite reverse;
  transform-origin: center;
}


/* === PHASE 8: Enhanced illustration animations === */

/* Neural network layer pulse */
@keyframes svgNeuralPulse {
  0%, 100% { stroke-opacity: 0.3; filter: drop-shadow(0 0 2px rgba(59,130,246,0.3)); }
  50% { stroke-opacity: 0.9; filter: drop-shadow(0 0 8px rgba(59,130,246,0.6)); }
}
.svg-neural-pulse { animation: svgNeuralPulse 2.5s ease-in-out infinite; }
.svg-neural-pulse--2 { animation: svgNeuralPulse 2.5s ease-in-out infinite; animation-delay: -0.8s; }
.svg-neural-pulse--3 { animation: svgNeuralPulse 2.5s ease-in-out infinite; animation-delay: -1.6s; }

/* Data stream flow (faster, for AI page) */
@keyframes svgDataStream {
  0% { stroke-dashoffset: 40; opacity: 0.2; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: -40; opacity: 0.2; }
}
.svg-data-stream { stroke-dasharray: 4 8; animation: svgDataStream 1.8s linear infinite; }
.svg-data-stream--2 { stroke-dasharray: 4 8; animation: svgDataStream 1.8s linear infinite; animation-delay: -0.6s; }
.svg-data-stream--3 { stroke-dasharray: 4 8; animation: svgDataStream 1.8s linear infinite; animation-delay: -1.2s; }

/* Glow breathe for central elements */
@keyframes svgGlowBreathe {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(6,182,212,0.3)); opacity: 0.7; }
  50% { filter: drop-shadow(0 0 16px rgba(6,182,212,0.8)); opacity: 1; }
}
.svg-glow-breathe { animation: svgGlowBreathe 3s ease-in-out infinite; }

/* Geometric morph for insights */
@keyframes svgGeoRotate {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.05); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(0.95); }
  100% { transform: rotate(360deg) scale(1); }
}
.svg-geo-rotate { animation: svgGeoRotate 20s linear infinite; transform-origin: center; }
.svg-geo-rotate--reverse { animation: svgGeoRotate 25s linear infinite reverse; transform-origin: center; }

/* Shape morph shimmer */
@keyframes svgShimmer {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.08); }
}
.svg-shimmer { animation: svgShimmer 4s ease-in-out infinite; transform-origin: center; }
.svg-shimmer--2 { animation: svgShimmer 4s ease-in-out infinite; animation-delay: -1.3s; transform-origin: center; }
.svg-shimmer--3 { animation: svgShimmer 4s ease-in-out infinite; animation-delay: -2.6s; transform-origin: center; }

/* Sweep transition for migration */
@keyframes svgSweepRight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.svg-sweep { animation: svgSweepRight 4s ease-in-out infinite; }

/* Color shift gradient */
@keyframes svgColorShift {
  0%, 100% { stop-color: #ecc25a; }
  33% { stop-color: #c8901f; }
  66% { stop-color: #f3d488; }
}

/* Particle scatter */
@keyframes svgParticleFloat {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translate(var(--px, 10px), var(--py, -20px)); opacity: 0; }
}
.svg-particle { animation: svgParticleFloat 3s ease-in-out infinite; }

/* Node warm glow for about page */
@keyframes svgWarmGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(6,182,212,0.4)); }
  50% { filter: drop-shadow(0 0 12px rgba(6,182,212,0.7)); }
}
.svg-warm-glow { animation: svgWarmGlow 3.5s ease-in-out infinite; }
.svg-warm-glow--2 { animation: svgWarmGlow 3.5s ease-in-out infinite; animation-delay: -1.2s; }

/* Orbit ring 3 for AI */
@keyframes svgOrbit3 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.svg-orbit-3 { animation: svgOrbit3 40s linear infinite; transform-origin: center; }

/* Isometric layer separate float */
@keyframes svgLayerFloat1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes svgLayerFloat2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes svgLayerFloat3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes svgLayerFloat4 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.svg-layer-float--1 { animation: svgLayerFloat1 5s ease-in-out infinite; }
.svg-layer-float--2 { animation: svgLayerFloat2 5s ease-in-out infinite; animation-delay: -0.5s; }
.svg-layer-float--3 { animation: svgLayerFloat3 5s ease-in-out infinite; animation-delay: -1s; }
.svg-layer-float--4 { animation: svgLayerFloat4 5s ease-in-out infinite; animation-delay: -1.5s; }

/* Migration sweep overlay */
@keyframes svgMigrationSweep {
  0% { x: 50; opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { x: 450; opacity: 0; }
}

/* Connector pulse (for about page people links) */
@keyframes svgConnectorPulse {
  0%, 100% { stroke-width: 1; stroke-opacity: 0.3; }
  50% { stroke-width: 2.5; stroke-opacity: 0.8; }
}
.svg-connector-pulse { animation: svgConnectorPulse 3s ease-in-out infinite; }
.svg-connector-pulse--2 { animation: svgConnectorPulse 3s ease-in-out infinite; animation-delay: -1s; }
.svg-connector-pulse--3 { animation: svgConnectorPulse 3s ease-in-out infinite; animation-delay: -2s; }

/* ============================================================
   prefers-reduced-motion support for all SVG animations
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .svg-pulse-glow,
  .svg-conn-line,
  .svg-conn-line-rev,
  .svg-orbit-1,
  .svg-orbit-2,
  .svg-node,
  .svg-float,
  .svg-float--slow,
  .svg-float-x,
  .svg-pulse,
  .svg-pulse--fast,
  .svg-heartbeat,
  .svg-status-pulse,
  .svg-migrate-block,
  .svg-migrate-block--2,
  .svg-migrate-block--3,
  .svg-signal-wave,
  .svg-signal-wave--2,
  .svg-signal-wave--3,
  .svg-radiate,
  .svg-arrow-bounce,
  .svg-stack-float--1,
  .svg-stack-float--2,
  .svg-stack-float--3,
  .svg-gear,
  .svg-gear--reverse,
  .svg-neural-pulse,
  .svg-neural-pulse--2,
  .svg-neural-pulse--3,
  .svg-data-stream,
  .svg-data-stream--2,
  .svg-data-stream--3,
  .svg-glow-breathe,
  .svg-geo-rotate,
  .svg-geo-rotate--reverse,
  .svg-shimmer,
  .svg-shimmer--2,
  .svg-shimmer--3,
  .svg-sweep,
  .svg-particle,
  .svg-warm-glow,
  .svg-warm-glow--2,
  .svg-orbit-3,
  .svg-layer-float--1,
  .svg-layer-float--2,
  .svg-layer-float--3,
  .svg-layer-float--4,
  .svg-connector-pulse,
  .svg-connector-pulse--2,
  .svg-connector-pulse--3 {
    animation: none !important;
  }
  .svg-node {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}

@media (max-width: 768px) {
  .hero-3d-wrapper {
    min-height: 280px;
    max-height: 350px;
  }
  #hero3d canvas {
    min-height: 280px;
    max-height: 350px;
  }
  .hero-split {
    flex-direction: column;
  }
  .hero-text {
    flex: none;
    max-width: 100%;
    text-align: center;
  }
}

/* Hero 3D — mobile sizing fix */
@media (max-width: 768px) {
  .hero-3d-wrapper {
    height: 280px !important;
    max-height: 280px !important;
    min-height: auto !important;
  }
  .hero-3d-wrapper canvas {
    height: 280px !important;
  }
  .hero-split {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .hero-text {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .hero-illustration {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    order: 2 !important;
  }
  .hero-buttons {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .hero-3d-wrapper {
    height: 220px !important;
    max-height: 220px !important;
  }
  .hero-3d-wrapper canvas {
    height: 220px !important;
  }
}

/* ============================================
   HERO — Full background particle cloud layout
   3D canvas sits behind centered text
   ============================================ */
.hero-3d-bg,
#hero-3d-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-3d-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.4) 60%, rgba(15,23,42,0.75) 100%);
  pointer-events: none;
}
.hero-content-centered {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--container-padding);
}
.hero-content-centered .hero-badge {
  margin-left: auto;
  margin-right: auto;
}
.hero-content-centered .hero-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content-centered .hero-actions {
  justify-content: center;
}
.hero-content-centered .hero-stats {
  justify-content: center;
}

/* ==================== CONTENT UPDATE 2026-05-08 ==================== */
/* ==================== TECH CATEGORIES GRID (replaces marquee) ==================== */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.tech-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.tech-category:hover {
  border-color: rgba(226, 171, 51, 0.35);
  background: rgba(255, 255, 255, 0.045);
}

.tech-category__title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f3d488;
  margin: 0 0 1rem;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.tech-chip:hover {
  background: rgba(226, 171, 51, 0.12);
  border-color: rgba(226, 171, 51, 0.4);
  transform: translateY(-1px);
}

.tech-chip__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-chip__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-chip--text {
  /* Same chip styling, no icon image */
}

@media (max-width: 640px) {
  .tech-categories {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tech-category {
    padding: 1.25rem;
  }
  .tech-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
  }
}

/* Hide the old marquee if it still exists anywhere */
.logos-marquee {
  display: none !important;
}

/* SQL Server version chips on database service page */
.db-version-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.db-version-chip--accent {
  background: rgba(226, 171, 51, 0.12);
  border-color: rgba(226, 171, 51, 0.35);
  color: #f3d488;
}

/* ==================== CONVERSION UPGRADE 2026-05-08 ==================== */

/* ---------- 10.1 ProofMetricStrip ---------- */
.proof-strip {
  padding: 2.5rem 0;
  background: rgba(0, 13, 42, 0.95);
  border-top: 1px solid rgba(226, 171, 51, 0.12);
  border-bottom: 1px solid rgba(226, 171, 51, 0.12);
  position: relative;
}

.proof-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(226, 171, 51, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

.proof-strip__item {
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.proof-strip__metric {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.proof-strip__label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .proof-strip__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .proof-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .proof-strip__metric {
    font-size: 1.35rem;
  }
  .proof-strip__label {
    font-size: 0.75rem;
  }
}

/* ---------- 10.2 ProofCard ---------- */
.proof-wall {
  padding: var(--sp-20) 0;
  background: var(--bg-primary);
}

.proof-wall__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.proof-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.proof-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 4px 0 0 4px;
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 171, 51, 0.25);
  box-shadow: 0 8px 32px rgba(226, 171, 51, 0.08);
}

.proof-card__pill {
  display: inline-block;
  background: rgba(226, 171, 51, 0.12);
  color: var(--blue-300);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.proof-card__metric {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.proof-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.proof-card__summary {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.proof-card__outcome {
  background: rgba(200, 144, 31, 0.06);
  border-left: 3px solid var(--teal-500);
  padding: 0.65rem 0.85rem;
  border-radius: 0 0.4rem 0.4rem 0;
}

.proof-card__outcome-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 0.2rem;
}

.proof-card__outcome-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.5;
}

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

@media (max-width: 640px) {
  .proof-wall__grid {
    grid-template-columns: 1fr;
  }
  .proof-card {
    padding: 1.5rem;
  }
}

/* ---------- 10.3 FeaturedCaseStudy ---------- */
.featured-case-study {
  padding: var(--sp-20) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(226, 171, 51, 0.03) 50%, transparent 100%);
}

.featured-case-study__panel {
  max-width: 1100px;
  margin: 3rem auto 0;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(226, 171, 51, 0.2);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.featured-case-study__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.featured-case-study__panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 0%, rgba(226, 171, 51, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.featured-case-study__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.featured-case-study__label {
  display: inline-block;
  background: rgba(226, 171, 51, 0.15);
  color: var(--blue-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.featured-case-study__title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-case-study__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-case-study__block {
  margin-bottom: 1.5rem;
}

.featured-case-study__block-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.featured-case-study__block-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.featured-case-study__what-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-case-study__what-list li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.featured-case-study__what-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.featured-case-study__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.featured-case-study__chip {
  background: rgba(226, 171, 51, 0.1);
  border: 1px solid rgba(226, 171, 51, 0.2);
  color: var(--blue-300);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.featured-case-study__outcome-banner {
  background: rgba(200, 144, 31, 0.08);
  border: 1px solid rgba(200, 144, 31, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}

.featured-case-study__outcome-banner h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.featured-case-study__outcome-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 768px) {
  .featured-case-study__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .featured-case-study__panel {
    padding: 2rem 1.5rem;
  }
  .featured-case-study__title {
    font-size: 1.35rem;
  }
}

/* ---------- 10.4 BuyerPathwayCard ---------- */
.buyer-pathways {
  padding: var(--sp-20) 0;
}

.buyer-pathways__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.buyer-pathway-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.buyer-pathway-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 171, 51, 0.25);
}

.buyer-pathway-card__industry {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.buyer-pathway-card__proof {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.buyer-pathway-card__proof strong {
  color: var(--text-primary);
  font-weight: 600;
}

.buyer-pathway-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue-400);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.buyer-pathway-card__cta:hover {
  color: var(--teal-400);
  gap: 0.55rem;
}

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

/* ---------- 10.5 AutomationProofCard ---------- */
.automation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 144, 31, 0.22);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.automation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ecc25a, #c8901f);
  border-radius: 4px 0 0 4px;
}

.automation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 144, 31, 0.4);
}

.automation-card__number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(200, 144, 31, 0.18);
  line-height: 1;
}

.automation-card__sector {
  display: inline-block;
  background: rgba(200, 144, 31, 0.12);
  color: #ecc25a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.automation-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.automation-card__desc {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.automation-card__gain {
  background: rgba(200, 144, 31, 0.08);
  border-left: 3px solid #ecc25a;
  padding: 0.75rem 1rem;
  border-radius: 0 0.4rem 0.4rem 0;
}

.automation-card__gain-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ecc25a;
  margin-bottom: 0.2rem;
}

.automation-card__gain-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.5;
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================== END CONVERSION UPGRADE CSS ==================== */

/* ==================== MH SOLICITORS — Extensions ==================== */
.section--alt {
  background: var(--navy-950);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--sp-4);
}

.mh-wordmark {
  width: auto;
  display: block;
}

.footer-brand .mh-wordmark {
  width: auto;
  display: block;
}

.nav--scrolled {
  border-bottom: 1px solid rgba(226, 171, 51, 0.2);
}

.hero--law {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero--law::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 13, 42, 0.82) 0%, rgba(0, 13, 42, 0.72) 55%, rgba(0, 13, 42, 0.86) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero--law .hero-3d-bg,
.hero--law .hero-3d-wrapper {
  display: none !important;
}

.hero--law .hero-overlay {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(226, 171, 51, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 13, 42, 0.24) 0%, rgba(0, 13, 42, 0.48) 100%);
  z-index: 3;
}

.hero--law .hero-badge__dot {
  background: var(--gold-500);
  box-shadow: 0 0 12px var(--accent-glow);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
  justify-content: center;
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
}

.trust-strip__icon {
  color: var(--gold-500);
  flex-shrink: 0;
}

.stats-band {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-12) 0;
}

.stats-band__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-8);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.stats-band__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.1;
}

.stats-band__label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--sp-2);
}

/* Practice Area Explorer */
#practice-areas .container {
  max-width: min(1180px, 100%);
}

.practice-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(var(--sp-8), 4vw, var(--sp-16));
  align-items: start;
}

.practice-explorer__intro {
  display: grid;
  gap: var(--sp-6);
  position: sticky;
  top: 120px;
}

.practice-explorer__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 2.6vw, var(--text-5xl));
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.practice-explorer__description {
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.7;
}

.practice-explorer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.practice-explorer__feature {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-5) var(--sp-5);
  border: 1px solid rgba(226, 171, 51, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(125deg, rgba(9, 29, 71, 0.82) 0%, rgba(0, 13, 42, 0.98) 100%);
}

.practice-explorer__feature-icon {
  color: var(--gold-500);
  flex-shrink: 0;
}

.practice-explorer__feature p {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
}

.practice-explorer__list {
  display: grid;
  gap: var(--sp-3);
}

.practice-explorer__item {
  border: 1px solid rgba(137, 159, 197, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8, 27, 68, 0.6) 0%, rgba(0, 13, 42, 0.88) 100%);
  overflow: hidden;
  transition:
    border-color 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-explorer__item:hover {
  border-color: rgba(226, 171, 51, 0.44);
}

.practice-explorer__item.is-open {
  border-color: rgba(226, 171, 51, 0.55);
  box-shadow: 0 14px 32px rgba(226, 171, 51, 0.12);
}

.practice-explorer__heading {
  margin: 0;
}

.practice-explorer__trigger {
  width: 100%;
  min-height: 76px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font: inherit;
}

.practice-explorer__trigger:focus-visible {
  outline-color: var(--gold-500);
  outline-offset: -2px;
}

.practice-explorer__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--gold-500);
  background: rgba(226, 171, 51, 0.12);
  border: 1px solid rgba(226, 171, 51, 0.22);
  flex-shrink: 0;
}

.practice-explorer__number {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--gold-400);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.practice-explorer__title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.practice-explorer__name {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(var(--text-base), 1.05vw, var(--text-xl));
  line-height: 1.25;
}

.practice-explorer__summary {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.practice-explorer__chevron {
  color: var(--gold-400);
  display: inline-flex;
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-explorer__item.is-open .practice-explorer__chevron {
  transform: rotate(180deg);
}

.practice-explorer__panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-explorer__item.is-open .practice-explorer__panel-wrap {
  grid-template-rows: 1fr;
}

.practice-explorer__panel {
  min-height: 0;
}

.practice-explorer__panel-inner {
  margin: 0 var(--sp-5) var(--sp-5);
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  border-top: 1px solid rgba(226, 171, 51, 0.22);
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-explorer__item.is-open .practice-explorer__panel-inner {
  opacity: 1;
  transform: translateY(0);
}

.practice-explorer__panel-inner p {
  margin: 0;
}

.practice-explorer__panel-actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.practice-explorer__panel-actions .btn {
  min-height: 44px;
  padding-inline: var(--sp-4);
  font-size: var(--text-sm);
}

@media (max-width: 1080px) {
  .practice-explorer {
    grid-template-columns: 1fr;
  }

  .practice-explorer__intro {
    position: static;
  }
}

@media (max-width: 768px) {
  .practice-explorer__title {
    font-size: clamp(var(--text-2xl), 8vw, var(--text-4xl));
  }

  .practice-explorer__description {
    font-size: var(--text-sm);
  }

  .practice-explorer__trigger {
    min-height: 82px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
  }

  .practice-explorer__icon {
    width: 30px;
    height: 30px;
  }

  .practice-explorer__number {
    font-size: 11px;
  }

  .practice-explorer__name {
    font-size: var(--text-base);
  }

  .practice-explorer__summary {
    font-size: 12px;
  }

  .practice-explorer__panel-inner {
    margin: 0 var(--sp-4) var(--sp-4);
    padding: var(--sp-4) 0 var(--sp-1);
    font-size: var(--text-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-explorer__item,
  .practice-explorer__chevron,
  .practice-explorer__panel-wrap,
  .practice-explorer__panel-inner {
    transition: none !important;
  }
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.practice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--duration-base), transform var(--duration-base);
}

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

.practice-card__icon {
  color: var(--gold-500);
  margin-bottom: var(--sp-4);
}

.practice-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.practice-card__desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.practice-card__link {
  color: var(--gold-400);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.practice-card__link:hover {
  color: var(--gold-300);
}

/* Circle flow reveal (wabi-sabi style) - normal document flow, NO sticky/pin.
   The section scrolls naturally; a dark circle scales up driven by the
   section's position in the viewport, settling it from a lighter navy to the
   site's deep navy. JS sets the circle transform + content fade. No-JS and
   reduced-motion fall back to a plain static dark section. */
.circle-flow-reveal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-950);
}
html.motion-ready .circle-flow-reveal {
  background: var(--navy-600);
  transition: background-color 0.5s ease;
}
.circle-flow-circle {
  display: none;
  position: absolute;
  left: 50%;
  top: 55%;
  width: 34vmin;
  height: 34vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--navy-900) 0%, var(--navy-950) 72%);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
html.motion-ready .circle-flow-circle { display: block; }
.circle-flow-content {
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .circle-flow-circle { width: 44vmin; height: 44vmin; }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.value-card {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0, 13, 42, 0.4);
}

.value-card__icon {
  color: var(--gold-500);
  margin-bottom: var(--sp-4);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--sp-6);
  border-left: 2px solid rgba(226, 171, 51, 0.35);
}

.process-step__num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold-500);
  margin-bottom: var(--sp-2);
}

.testimonial-card--placeholder .testimonial-card__text {
  font-style: italic;
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--gold-500);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.15em;
}

/* Homepage hero: full-bleed clickable accreditation trust bar */
.hero:has(.hero-accred-bar) {
  overflow-x: clip;
}

.hero-accred-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  max-width: 100vw;
  margin: var(--sp-5) calc(50% - 50vw) var(--sp-2);
  padding: clamp(0.81rem, 2.5vw, 1.13rem) clamp(0.6rem, 2.5vw, 1.25rem);
  background: #ffffff;
  border-width: 2px 0;
  border-style: solid;
  border-image: linear-gradient(90deg, var(--gold-400), var(--gold-600), var(--gold-400)) 1;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.hero-accred-bar:hover {
  opacity: 0.97;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hero-accred-bar:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* About page: tighten spacing around the hero/team image */
.about-media {
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-6);
}
.about-media .section-media {
  margin-bottom: 0;
}
.accred-section {
  padding-top: var(--sp-12);
}

.hero-accred-bar img {
  display: block;
  height: clamp(40px, 14vw, 84px);
  width: auto;
  max-width: 32%;
  object-fit: contain;
}

.accreditation-badge {
  display: block;
  max-width: 150px;
  height: auto;
  margin: 0 0 var(--sp-6);
}

/* ---------- About: Accreditations & Regulation ---------- */
.accred-section .why__eyebrow {
  margin-bottom: var(--sp-4);
}

.accred-section .section-title {
  margin-top: var(--sp-2);
}

.accred-section .section-description {
  margin-bottom: var(--sp-12);
}

.accred-banner {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem);
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.accred-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(111px, 22.5vw, 180px);
}

.accred-logo img {
  height: clamp(81px, 12vw, 111px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.accred-notes {
  list-style: none;
  margin: var(--sp-10) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 760px;
}

.accred-notes li {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-secondary);
}

.accred-notes li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.accred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(var(--sp-6), 3vw, var(--sp-10));
}

.accred-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(var(--sp-6), 2.5vw, var(--sp-8));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(152deg, rgba(29, 52, 99, 0.72) 0%, rgba(10, 24, 52, 0.70) 56%, rgba(0, 11, 36, 0.74) 100%);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.accred-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(125% 90% at 50% 0%, rgba(226, 171, 51, 0.1) 0%, rgba(226, 171, 51, 0) 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.accred-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 171, 51, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), 0 0 28px rgba(226, 171, 51, 0.12);
}

.accred-card:hover::before {
  opacity: 1;
}

.accred-card__chip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.accred-card__chip img {
  display: block;
  max-width: 100%;
  height: auto;
}

.accred-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--sp-3);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.accred-card__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

.accreditation-placeholder,
.sra-badge-placeholder {
  border: 2px solid var(--gold-600);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-8);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
  min-width: 180px;
  background: rgba(0, 13, 42, 0.5);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.office-card__city {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: var(--sp-3);
}

.office-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
}

.office-card a {
  color: var(--gold-400);
}

.footer-sra {
  margin-top: var(--sp-10);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  align-items: center;
  justify-content: space-between;
}

.footer-sra__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex: 1 1 280px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  justify-content: center;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border);
}

.footer-legal a {
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--gold-400);
}

.footer-strapline {
  color: var(--gold-500);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--sp-2);
}

.conversion-float {
  position: fixed;
  bottom: calc(var(--sp-6) + 64px);
  right: var(--sp-6);
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.conversion-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform var(--duration-fast), background var(--duration-fast);
}

.conversion-float__btn:hover {
  background: var(--gold-400);
  transform: scale(1.05);
}

.conversion-float__btn--whatsapp {
  background: var(--navy-800);
  color: var(--gold-400);
  border: 1px solid var(--border-accent);
}

.conversion-float__note {
  position: absolute;
  right: 60px;
  bottom: 0;
  white-space: nowrap;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--navy-900);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}

.conversion-float__wrap:hover .conversion-float__note {
  opacity: 1;
}

@media (min-width: 769px) {
  .conversion-float__btn--call {
    display: none;
  }
}

.page-stub {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
}

.page-stub__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.page-stub__text {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.breadcrumb a {
  color: var(--gold-400);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  background: rgba(0, 13, 42, 0.35);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item__trigger:hover,
.faq-item__trigger:focus-visible {
  color: var(--gold-400);
  outline: none;
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--gold-500);
  transition: transform var(--duration-base);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__panel {
  display: none;
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.faq-item.is-open .faq-item__panel {
  display: block;
}

.enquiry-form {
  max-width: 640px;
  margin: 0 auto;
}

.enquiry-form .form-group {
  margin-bottom: var(--sp-5);
}

.enquiry-form label {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy-950);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-color: var(--border-accent);
}

.enquiry-form .form-checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
@media (min-width: 680px) {
  .sub-services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
  }
}

.sub-service-card {
  position: relative;
  overflow: hidden;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
  will-change: transform;
}

/* top accent bar (draws across on hover/tap) */
.sub-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* sheen sweep */
.sub-service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.sub-service-card__icon {
  position: relative;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 171, 51, 0.12);
  color: var(--gold-500);
  margin-bottom: var(--sp-3);
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.sub-service-card h3,
.sub-service-card p {
  position: relative;
  z-index: 2;
}

/* combined hover / mobile-tap state: lift + shadow + accent bar + icon fill + sheen.
   transform uses !important to beat the higher-specificity stagger-reveal
   ".revealed" rule that otherwise pins these cards' transform. */
.sub-service-card:hover,
.sub-service-card.is-active {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(226, 171, 51, 0.4);
  background: rgba(18, 34, 71, 0.6);
}

.sub-service-card:hover::before,
.sub-service-card.is-active::before {
  transform: scaleX(1);
}

.sub-service-card:hover::after,
.sub-service-card.is-active::after {
  animation: subServiceSheen 0.9s ease;
}

.sub-service-card:hover .sub-service-card__icon,
.sub-service-card.is-active .sub-service-card__icon {
  background: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-2px);
}

@keyframes subServiceSheen {
  from { left: -130%; }
  to { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  .sub-service-card,
  .sub-service-card::before,
  .sub-service-card::after,
  .sub-service-card__icon {
    transition: none !important;
    animation: none !important;
  }
  .sub-service-card:hover,
  .sub-service-card.is-active {
    transform: none !important;
  }
}

.sub-service-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.sub-service-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.btn--outline-gold {
  background: transparent;
  border: 2px solid var(--gold-500);
  color: var(--gold-400);
}

.btn--outline-gold:hover {
  background: rgba(226, 171, 51, 0.1);
  color: var(--gold-300);
}

.page-hero--practice {
  padding: calc(130px + var(--sp-4)) 0 var(--sp-16);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.page-hero--with-photo {
  position: relative;
  overflow: hidden;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

.page-hero--with-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 13, 42, 0.82) 0%, rgba(0, 13, 42, 0.7) 55%, rgba(0, 13, 42, 0.84) 100%);
  z-index: 0;
}

.page-hero--with-photo > .container {
  position: relative;
  z-index: 1;
}

.page-hero--with-photo .page-hero__title,
.page-hero--with-photo .page-hero__description,
.page-hero--with-photo .breadcrumb,
.page-hero--with-photo .breadcrumb a,
.page-hero--with-photo .breadcrumb span {
  color: var(--text-primary);
}

.section-media {
  margin-bottom: var(--sp-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.section-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cta-section--consultation {
  background:
    linear-gradient(120deg, rgba(0, 13, 42, 0.84) 0%, rgba(0, 13, 42, 0.72) 60%, rgba(0, 13, 42, 0.86) 100%),
    url('../assets/img/consultation.jpg') center/cover no-repeat;
}

.cta-section--consultation .cta-block {
  background: rgba(0, 13, 42, 0.7);
  border-color: rgba(226, 171, 51, 0.28);
  backdrop-filter: blur(2px);
}

.reviews-note {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--sp-8);
}


.language-switcher select {
  background: rgba(0, 13, 42, 0.9);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.nav-dropdown__link--active {
  color: var(--gold-400);
}

.footer-social {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-social a,
.footer-social span {
  color: var(--gold-400);
  font-size: var(--text-sm);
}

.map-placeholder {
  margin-top: 0.9rem;
  padding: 0.8rem;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.hours-note {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.blog-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.blog-placeholder-card,
.legal-stub-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.sitemap-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sitemap-list a {
  color: var(--gold-400);
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.blog-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.blog-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(226, 171, 51, 0.1);
}

.blog-list-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-list-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 13, 42, 0.2), rgba(0, 13, 42, 0.65));
  pointer-events: none;
}

.blog-list-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-list-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-list-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}

.blog-list-card__summary {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  flex-grow: 1;
}

.blog-list-card__meta {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-3);
}

.blog-post {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post__hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-8);
}

.blog-post__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 13, 42, 0.15), rgba(0, 13, 42, 0.72));
  pointer-events: none;
}

.blog-post__hero-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.blog-post__byline {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-6);
}

.blog-post h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin: var(--sp-8) 0 var(--sp-4);
}

.blog-post h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1.3;
  margin: var(--sp-6) 0 var(--sp-3);
}

.blog-post p,
.blog-post li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.blog-post ul,
.blog-post ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.35rem;
}

.blog-post__disclaimer {
  background: rgba(200, 144, 31, 0.1);
  border: 1px solid rgba(226, 171, 51, 0.35);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-top: var(--sp-8);
}

.blog-post__cta {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 13, 42, 0.45);
}

.blog-post__cta p {
  margin-bottom: var(--sp-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .nav-links {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  body.mobile-nav-active .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  body.mobile-nav-active .nav-links > li {
    opacity: 1;
    transform: translateY(0);
  }

  body.mobile-nav-active .nav-links > li:nth-child(1) { transition-delay: 0.02s; }
  body.mobile-nav-active .nav-links > li:nth-child(2) { transition-delay: 0.04s; }
  body.mobile-nav-active .nav-links > li:nth-child(3) { transition-delay: 0.06s; }
  body.mobile-nav-active .nav-links > li:nth-child(4) { transition-delay: 0.08s; }
  body.mobile-nav-active .nav-links > li:nth-child(5) { transition-delay: 0.1s; }
  body.mobile-nav-active .nav-links > li:nth-child(6) { transition-delay: 0.12s; }
  body.mobile-nav-active .nav-links > li:nth-child(7) { transition-delay: 0.14s; }
  body.mobile-nav-active .nav-links > li:nth-child(8) { transition-delay: 0.16s; }
  body.mobile-nav-active .nav-links > li:nth-child(9) { transition-delay: 0.18s; }
}

/* ===== MH MOBILE OVERLAY (Wabi Sabi-style) — 2026-05-30 ===== */
@media (max-width: 980px) {
  body.mobile-nav-active {
    overflow: hidden;
  }

  body.mobile-nav-active .nav,
  body.mobile-nav-active .nav.nav--scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Full-viewport overlay — animatable (no display:none) */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    inset: 0;
    z-index: 1200;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--navy-950);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
  }

  .nav-links.active,
  body.mobile-nav-active .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Injected header / footer — no item stagger */
  .mh-mobile-overlay__header,
  .mh-mobile-overlay__footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    border-bottom: none;
  }

  .mh-mobile-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid rgba(226, 171, 51, 0.18);
    list-style: none;
  }

  .mh-mobile-overlay__header .nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    pointer-events: auto;
  }

  .mh-mobile-overlay__header .nav-logo__svg {
    height: 52px;
    width: auto;
  }

  .mh-mobile-overlay__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(226, 171, 51, 0.28);
    border-radius: var(--radius-full);
    background: transparent;
    color: #f5f7fb;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
  }

  .mh-mobile-overlay__close:hover,
  .mh-mobile-overlay__close:focus-visible {
    border-color: rgba(226, 171, 51, 0.55);
    background: rgba(226, 171, 51, 0.1);
    color: var(--text-primary);
    outline: none;
  }

  .mh-mobile-overlay__close svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  /* Menu list body */
  .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer) {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0 var(--sp-6);
    border-bottom: 1px solid rgba(226, 171, 51, 0.14);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer) {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(2),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(2) {
    transition-delay: 0.06s;
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(3),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(3) {
    transition-delay: 0.12s;
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(4),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(4) {
    transition-delay: 0.18s;
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(5),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(5) {
    transition-delay: 0.24s;
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(6),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(6) {
    transition-delay: 0.3s;
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(7),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(7) {
    transition-delay: 0.36s;
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(8),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(8) {
    transition-delay: 0.42s;
  }

  .nav-links.active > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(9),
  body.mobile-nav-active .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer):nth-child(9) {
    transition-delay: 0.48s;
  }

  /* Top-level links */
  .nav-links.active .nav-link,
  body.mobile-nav-active .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sp-5) 0;
    color: #f5f7fb;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4.8vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
    border-bottom: none;
  }

  .nav-links.active .nav-link::after,
  body.mobile-nav-active .nav-link::after {
    display: none;
  }

  /* CTA in list — kept in DOM; footer shows primary CTA */
  .nav-links > li:has(.nav-link--cta) {
    display: none;
  }

  /* Practice Areas accordion trigger */
  .nav-links.active .nav-dropdown__trigger,
  body.mobile-nav-active .nav-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sp-5) 0;
    color: #f5f7fb;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4.8vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .nav-links.active .nav-dropdown__chevron,
  body.mobile-nav-active .nav-dropdown__chevron {
    width: 18px;
    height: 18px;
    color: rgba(226, 171, 51, 0.85);
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .nav-links.active .nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__chevron,
  body.mobile-nav-active .nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__chevron {
    transform: rotate(180deg);
  }

  /* Accordion submenu */
  .nav-links .nav-dropdown__menu {
    position: static;
    transform: none;
    min-width: auto;
    margin: 0;
    padding: 0 0 0 var(--sp-5);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 220ms ease,
                padding 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .nav-links .nav-dropdown__menu.active {
    opacity: 1;
    visibility: visible;
    max-height: 720px;
    padding: 0 0 var(--sp-4) var(--sp-5);
  }

  .nav-links .nav-dropdown:hover .nav-dropdown__menu:not(.active) {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
  }

  .nav-links.active .nav-dropdown__link,
  body.mobile-nav-active .nav-dropdown__link {
    display: block;
    padding: var(--sp-3) 0;
    color: rgba(245, 247, 251, 0.78);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    border-bottom: 1px solid rgba(226, 171, 51, 0.1);
  }

  .nav-links.active .nav-dropdown__link:last-child,
  body.mobile-nav-active .nav-dropdown__link:last-child {
    border-bottom: none;
  }

  .nav-links.active .nav-dropdown__link:hover,
  .nav-links.active .nav-dropdown__link:focus-visible,
  body.mobile-nav-active .nav-dropdown__link:hover,
  body.mobile-nav-active .nav-dropdown__link:focus-visible {
    color: var(--gold-500);
    background: transparent;
  }

  /* Injected footer */
  .mh-mobile-overlay__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: var(--sp-8) var(--sp-6) var(--sp-10);
    border-top: 1px solid rgba(226, 171, 51, 0.22);
    list-style: none;
  }

  .mh-mobile-overlay__footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }

  .mh-mobile-overlay__contact-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(245, 247, 251, 0.88);
    text-decoration: none;
    transition: color 200ms ease;
  }

  .mh-mobile-overlay__contact-link:hover,
  .mh-mobile-overlay__contact-link:focus-visible {
    color: var(--gold-500);
    outline: none;
  }

  .mh-mobile-overlay__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: var(--sp-2);
    padding: var(--sp-4) var(--sp-6);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-950);
    text-decoration: none;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .mh-mobile-overlay__cta:hover,
  .mh-mobile-overlay__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    outline: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 980px) {
  .nav-links,
  .nav-links > li:not(.mh-mobile-overlay__header):not(.mh-mobile-overlay__footer) {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    transform: none !important;
  }

  .nav-links .nav-dropdown__menu,
  .nav-links .nav-dropdown__chevron {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Why Choose MH Solicitors — editorial split + soft halo
   (2026-05-30) — layered into the existing .circle-flow-reveal
   ============================================================ */
.why-section {
  padding-block: clamp(var(--sp-20), 9vw, var(--sp-32));
}
.why {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(var(--sp-10), 5vw, var(--sp-24));
  align-items: start;
}

/* ---------- Left: intro ---------- */
.why__intro { max-width: 30rem; padding-top: clamp(28px, 3.4vw, 48px); }
.why__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.why__eyebrow::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: var(--sp-3);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), rgba(226, 171, 51, 0));
}
.why__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: var(--sp-6) 0 0;
  color: var(--text-primary);
}
.why__lead {
  margin: var(--sp-6) 0 0;
  max-width: 30rem;
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
}
.why__cta { margin-top: var(--sp-8); }

/* ---------- Right: benefit cards ---------- */
.why__cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: clamp(var(--sp-5), 2.4vw, var(--sp-8));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  /* solid premium panel so nothing behind it bleeds through */
  background:
    linear-gradient(152deg, rgba(29, 52, 99, 0.72) 0%, rgba(10, 24, 52, 0.70) 56%, rgba(0, 11, 36, 0.74) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
  outline: none;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    opacity 0.4s var(--ease-out);
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(125% 90% at 88% 0%, rgba(226, 171, 51, 0.11) 0%, rgba(226, 171, 51, 0) 56%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.why-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(226, 171, 51, 0.38);
  background: rgba(226, 171, 51, 0.04);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--gold-400);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.why-card__body { min-width: 0; }
.why-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
.why-card__title::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: var(--sp-2);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width 0.4s var(--ease-out);
}
.why-card__desc {
  margin: var(--sp-2) 0 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-muted);
}
.why-card__icon {
  flex: none;
  color: rgba(226, 171, 51, 0.55);
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.why-card__icon svg { display: block; width: 30px; height: 30px; }

/* ---------- Active / hover / focus ---------- */
.why-card:hover,
.why-card:focus-visible,
.why-card.is-active {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), 0 0 28px rgba(226, 171, 51, 0.16);
}
.why-card:hover::before,
.why-card:focus-visible::before,
.why-card.is-active::before { opacity: 1; }
.why-card:hover .why-card__icon,
.why-card:focus-visible .why-card__icon,
.why-card.is-active .why-card__icon { color: var(--gold-400); }
.why-card:hover .why-card__num,
.why-card:focus-visible .why-card__num,
.why-card.is-active .why-card__num {
  background: rgba(226, 171, 51, 0.12);
  border-color: var(--accent);
  color: var(--gold-300);
}
.why-card:hover .why-card__title::after,
.why-card:focus-visible .why-card__title::after,
.why-card.is-active .why-card__title::after { width: 42px; }

@media (hover: hover) and (pointer: fine) {
  .why__cards:hover .why-card:not(:hover) { opacity: 0.82; }
}

/* ---------- Soft atmospheric halo (no hard ring) ---------- */
/* A diffuse warm-gold glow that reads as background lighting, sits BEHIND
   the layout (z-index 0, pointer-events none) and is pushed left so its
   centre never falls under the right-hand cards. */
.why__halo {
  position: absolute;
  left: 44%;
  top: 50%;
  width: min(96vmin, 1180px);
  height: min(78vmin, 760px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  /* wide, flat, very-low-opacity wash sitting in the gap between the columns;
     long gradual falloff + only light blur, so it never reads as a disc/cloud. */
  background: radial-gradient(ellipse closest-side at 50% 50%,
    rgba(226, 171, 51, 0.060) 0%,
    rgba(226, 171, 51, 0.022) 40%,
    rgba(226, 171, 51, 0.006) 58%,
    rgba(226, 171, 51, 0) 74%);
  filter: blur(8px);
  transition: background 0.6s var(--ease-out);
}
.why.is-card-active .why__halo {
  /* understated lift, nudged toward the right-hand card stack */
  background: radial-gradient(ellipse closest-side at 56% 50%,
    rgba(243, 212, 136, 0.10) 0%,
    rgba(226, 171, 51, 0.035) 42%,
    rgba(226, 171, 51, 0.009) 60%,
    rgba(226, 171, 51, 0) 76%);
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .why {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    align-items: start;
  }
  .why__intro { max-width: 40rem; padding-top: 0; }
  /* mobile: soft navy/gold glow behind the heading — no ring, very subtle */
  .why__halo {
    left: 50%;
    top: 4%;
    width: min(150vw, 620px);
    height: min(46vh, 360px);
    transform: translate(-50%, 0);
    filter: blur(10px);
    /* faint wide warm gradient behind the heading only — no patch, no disc */
    background: radial-gradient(ellipse closest-side at 50% 50%,
      rgba(226, 171, 51, 0.035) 0%,
      rgba(226, 171, 51, 0.012) 46%,
      rgba(226, 171, 51, 0.004) 64%,
      rgba(226, 171, 51, 0) 80%);
  }
  .why.is-card-active .why__halo {
    background: radial-gradient(ellipse closest-side at 50% 50%,
      rgba(243, 212, 136, 0.052) 0%,
      rgba(226, 171, 51, 0.017) 48%,
      rgba(226, 171, 51, 0.005) 66%,
      rgba(226, 171, 51, 0) 82%);
  }
}
@media (max-width: 640px) {
  .why__cards { gap: var(--sp-4); }
  .why-card {
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius-lg);
  }
  .why-card__num { width: 40px; height: 40px; font-size: var(--text-sm); }
  .why-card__title { font-size: var(--text-lg); }
  .why-card__desc { margin-top: var(--sp-1); font-size: var(--text-sm); line-height: 1.5; }
  .why-card__icon svg { width: 24px; height: 24px; }
}

/* floating quick-contact buttons: smaller + tucked away on phones so they
   never crowd the benefit cards */
@media (max-width: 768px) {
  .conversion-float { gap: var(--sp-2); right: var(--sp-4); bottom: calc(var(--sp-5) + 52px); }
  .conversion-float__btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .why-card { transition: border-color 0.2s linear, background 0.2s linear; }
  .why-card:hover, .why-card.is-active, .why-card:focus-visible { transform: none; }
  .why__halo { transition: none; }
}


/* ===== Why Choose — featured "Experience" credibility card ===== */
.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: clamp(18px, 2vw, 26px);
  align-items: center;
  width: 100%;
  padding: clamp(20px, 2vw, 24px) clamp(20px, 2.1vw, 26px);
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(226, 171, 51, 0.55);
  background: linear-gradient(135deg, rgba(18, 39, 92, 0.96), rgba(7, 23, 66, 0.985));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.30);
  overflow: hidden;
}
.experience-card__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100%;
  padding-right: 0;
  border-right: 1px solid rgba(226, 171, 51, 0.18);
}
.experience-card__crest {
  position: relative;
  width: clamp(46px, 4.2vw, 54px);
  height: clamp(46px, 4.2vw, 54px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.experience-card__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.experience-card__number {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.3vw, 31px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #f6dd93 0%, #e2ab33 55%, #c08d28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.experience-card__content { position: relative; min-width: 0; }
.experience-card__title {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.85vw, 20px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.experience-card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.5;
  max-width: 46ch;
}
@media (max-width: 768px) {
  .experience-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .experience-card__stat {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 0;
    border-right: 0;
    padding-right: 0;
  }
  .experience-card__crest { width: 58px; height: 58px; }
  .experience-card__number { font-size: 36px; }
  .experience-card__content { padding-top: 0; }
  .experience-card__title { font-size: clamp(16px, 4.6vw, 19px); margin-bottom: 8px; }
  .experience-card__text { font-size: 14px; }
}

/* Injected mobile-overlay header(logo clone)+footer(contact) must never show in the desktop horizontal nav. They render only inside the <=980px overlay. */
@media (min-width: 981px) {
  .mh-mobile-overlay__header,
  .mh-mobile-overlay__footer { display: none; }
}

/* ---------- Contact page: Our offices (info / photo / map rows) ---------- */
.offices {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.offices__head {
  text-align: center;
  margin-bottom: var(--sp-2);
}

.offices__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.offices__eyebrow::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: var(--sp-3);
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(226, 171, 51, 0), var(--gold-500), rgba(226, 171, 51, 0));
}

.offices__head .section-title {
  margin-top: var(--sp-4);
  margin-bottom: 0;
}

.offices__sub {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 620px;
  margin: var(--sp-4) auto 0;
}

.office-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: var(--sp-6);
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}

.office-row__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

.office-pin {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.office-pin__icon {
  flex-shrink: 0;
  color: var(--gold-400);
}

.office-pin__city {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-400);
  margin: 0;
  line-height: 1.2;
}

.office-row__line {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

.office-contact {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.office-contact__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--gold-400);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.office-contact__row svg {
  flex-shrink: 0;
}

.office-contact__row a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.office-contact__row a:hover,
.office-contact__row a:focus-visible {
  color: var(--gold-400);
}

.office-row__photo {
  align-self: start;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  min-width: 0;
}

.office-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.office-row__map {
  display: flex;
  align-self: start;
  min-width: 0;
}

.office-map-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--gold-400);
  transition:
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

.office-map-card:hover,
.office-map-card:focus-visible {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.office-map-card__graphic {
  /* Map column is 0.9x the photo column (1fr vs 0.9fr). The photo is aspect-ratio 4/3.
     0.9 width / (6/5) = 0.75 = the photo's height, so 6/5 makes the map IMAGE the same
     height as the office photo. The "View on map" footer sits below this, outside the image. */
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 6 / 5;
  display: block;
  object-fit: cover;
}

.office-map-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-400);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

@media (max-width: 900px) {
  .office-row {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .office-row__photo,
  .office-row__map {
    width: 100%;
  }

  .office-map-card__graphic {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Call-us office picker modal ---------- */
button.btn { -webkit-appearance: none; appearance: none; }
body.call-lock { overflow: hidden; }

.call-picker {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s var(--ease-out);
}
.call-picker.is-open { opacity: 1; visibility: visible; }

.call-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 26, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.call-picker__dialog {
  position: relative;
  width: min(400px, 100%);
  background: linear-gradient(160deg, #001023 0%, #000d2a 55%, #0a1834 100%);
  border: 1px solid rgba(226, 171, 51, 0.38);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  padding: clamp(1.5rem, 5vw, 2rem);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
}
.call-picker.is-open .call-picker__dialog { transform: translateY(0) scale(1); opacity: 1; }

.call-picker__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 171, 51, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f7ff;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.call-picker__close:hover { background: rgba(226, 171, 51, 0.18); border-color: var(--gold-500); }
.call-picker__close svg { width: 18px; height: 18px; }

.call-picker__eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.call-picker__title {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}
.call-picker__sub {
  margin: 0 0 var(--sp-5);
  font-size: 0.92rem;
  color: #9fb0cc;
}

.call-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.call-office {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(226, 171, 51, 0.16);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.call-office:hover,
.call-office:focus-visible {
  transform: translateY(-2px);
  background: rgba(226, 171, 51, 0.08);
  border-color: var(--gold-500);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.call-office__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
}
.call-office__icon svg { width: 20px; height: 20px; }

.call-office__text { display: flex; flex-direction: column; min-width: 0; }
.call-office__name { font-family: var(--font-heading); font-weight: 700; color: #f5f7ff; font-size: 1rem; line-height: 1.2; }
.call-office__note { font-size: 0.78rem; color: #8fa0bd; margin-top: 2px; }
.call-office__num { margin-left: auto; color: var(--gold-400); font-weight: 600; white-space: nowrap; font-size: 0.95rem; }

@media (max-width: 380px) {
  .call-office { gap: var(--sp-3); padding: var(--sp-3); }
  .call-office__note { display: none; }
  .call-office__num { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .call-picker, .call-picker__dialog, .call-office { transition: none; }
  .call-picker__dialog { transform: none; }
}

/* ---------- Book-a-consultation enquiry popup ---------- */
body.enquiry-lock { overflow: hidden; }

.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s var(--ease-out);
}
.enquiry-modal.is-open { opacity: 1; visibility: visible; }

.enquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 26, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.enquiry-modal__dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #001023 0%, #000d2a 55%, #0a1834 100%);
  border: 1px solid rgba(226, 171, 51, 0.38);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  transform: translateY(16px) scale(0.985);
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
}
.enquiry-modal.is-open .enquiry-modal__dialog { transform: none; opacity: 1; }

.enquiry-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 171, 51, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f7ff;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.enquiry-modal__close:hover { background: rgba(226, 171, 51, 0.18); border-color: var(--gold-500); }
.enquiry-modal__close svg { width: 18px; height: 18px; }

.enquiry-modal__eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.enquiry-modal__title {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}
.enquiry-modal__sub {
  margin: 0 0 var(--sp-5);
  font-size: 0.92rem;
  color: #9fb0cc;
}
.enquiry-modal .enquiry-form .form-group { margin-bottom: var(--sp-4); }
.enquiry-modal .enquiry-form .form-group:last-of-type { margin-bottom: var(--sp-5); }

@media (prefers-reduced-motion: reduce) {
  .enquiry-modal, .enquiry-modal__dialog { transition: none; }
  .enquiry-modal__dialog { transform: none; }
}
