/* ==========================================================================
   Modelink Zambia Limited - Enterprise Stylesheet
   Doing IT Right. On Time. Every time.
   ========================================================================== */

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

:root {
  color-scheme: light dark;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Palette */
  --color-primary: #1b62d6;        /* Cerulean Blue */
  --color-primary-dark: #154db0;   /* Deep Blue */
  --color-primary-light: #5aa2ff;  /* Sky Blue */
  --color-navy: #0b192c;          /* Corporate Midnight */
  --color-navy-dark: #060d17;     /* Deep Space */
  --color-accent: #f97316;        /* Innovation Orange */
  --color-cyan: #06b6d4;          /* Cyber Cyan */
  --color-emerald: #10b981;       /* Energy Emerald */

  /* Neutral Theme Variables (Default Dark) */
  --bg-main: #070e18;
  --bg-card: rgba(15, 27, 45, 0.75);
  --bg-card-hover: rgba(22, 40, 68, 0.85);
  --bg-surface: #0f1d30;
  --border-color: rgba(90, 162, 255, 0.15);
  --border-hover: rgba(90, 162, 255, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --navbar-bg: rgba(7, 14, 24, 0.88);
  --glow-color: rgba(27, 98, 214, 0.25);
  --badge-bg: rgba(27, 98, 214, 0.12);
  --badge-text: #5aa2ff;
  --nav-pill-bg: rgba(148, 163, 184, 0.07);
  --nav-hover-bg: rgba(148, 163, 184, 0.14);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --grad-blue: linear-gradient(135deg, #5aa2ff 0%, #1b62d6 50%, #3b82f6 100%);
  --grad-orange: linear-gradient(135deg, #fb923c 0%, #f97316 60%, #ea580c 100%);
  --grad-emerald: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
  --orb-a: rgba(27, 98, 214, 0.16);
  --orb-b: rgba(249, 115, 22, 0.08);
}

[data-theme="light"] {
  color-scheme: light;
  --bg-main: #f4f7fb;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-surface: #ffffff;
  --border-color: #d5dee9;
  --border-hover: rgba(27, 98, 214, 0.55);
  --text-main: #0f172a;
  --text-muted: #3f4c5f;
  --text-dim: #566275;
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --glow-color: rgba(27, 98, 214, 0.18);
  --badge-bg: #d9e8ff;
  --badge-text: #133f8c;
  --nav-pill-bg: #eef3f9;
  --nav-hover-bg: #dfe8f2;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --grad-blue: linear-gradient(135deg, #1b62d6 0%, #154db0 50%, #1d4ed8 100%);
  --grad-orange: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #047857 100%);
  --orb-a: rgba(27, 98, 214, 0.13);
  --orb-b: rgba(249, 115, 22, 0.09);

  /* Light-mode stand-ins for the dark-first Tailwind utilities used in the markup */
  --u-white: #0f172a;
  --u-s100: #0f172a;
  --u-s200: #1e293b;
  --u-s300: #334155;
  --u-s400: #475569;
  --u-s500: #566275;
  --u-s600: #64748b;
  --u-sky300: #133f8c;
  --u-sky400: #154db0;
  --u-cyan300: #155e75;
  --u-cyan400: #0c6a84;
  --u-emerald400: #047857;
  --u-amber300: #92400e;
  --u-amber400: #a14a07;
  --u-rose400: #be123c;
  --u-blue400: #1d4ed8;
  --u-purple400: #7e22ce;
  --u-red400: #b91c1c;
  --u-indigo400: #4338ca;
  --u-orange400: #c2410c;
  --u-bg-s950: #e9eff6;
  --u-bg-s900: #ffffff;
  --u-bg-s800: #eef3f9;
  --u-bg-hover: #e2e9f2;
  --u-bg-sky950: #d9e8ff;
  --u-bg-cyan950: #cffafe;
  --u-bg-amber950: #fef3c7;
  --u-bg-emerald950: #d1fae5;
  --u-bd-s700: #c3cfdd;
  --u-bd-s800: #d5dee9;
  --u-bd-sky: #a9c9f7;
}

[data-theme="dark"] {
  color-scheme: dark;
}

/* Areas that stay dark in light mode (photo heroes, top bar, CTA band, footer):
   restore the original dark values so their text stays light. */
[data-theme="light"] :is(.on-dark, footer, .bg-brand-950, .lightbox-backdrop) {
  --bg-main: #070e18;
  --bg-card: rgba(15, 27, 45, 0.75);
  --bg-card-hover: rgba(22, 40, 68, 0.85);
  --bg-surface: #0f1d30;
  --border-color: rgba(90, 162, 255, 0.15);
  --border-hover: rgba(90, 162, 255, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --glow-color: rgba(27, 98, 214, 0.25);
  --badge-bg: rgba(27, 98, 214, 0.12);
  --badge-text: #5aa2ff;
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --grad-blue: linear-gradient(135deg, #5aa2ff 0%, #1b62d6 50%, #3b82f6 100%);
  --grad-orange: linear-gradient(135deg, #fb923c 0%, #f97316 60%, #ea580c 100%);
  --grad-emerald: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
  --u-white: #ffffff;
  --u-s100: #f1f5f9;
  --u-s200: #e2e8f0;
  --u-s300: #cbd5e1;
  --u-s400: #94a3b8;
  --u-s500: #64748b;
  --u-s600: #475569;
  --u-sky300: #8fc1ff;
  --u-sky400: #5aa2ff;
  --u-cyan300: #67e8f9;
  --u-cyan400: #22d3ee;
  --u-emerald400: #34d399;
  --u-amber300: #fcd34d;
  --u-amber400: #fbbf24;
  --u-rose400: #fb7185;
  --u-blue400: #60a5fa;
  --u-purple400: #c084fc;
  --u-red400: #f87171;
  --u-indigo400: #818cf8;
  --u-orange400: #fb923c;
  --u-bg-s950: #020617;
  --u-bg-s900: rgba(15, 23, 42, 0.8);
  --u-bg-s800: rgba(30, 41, 59, 0.55);
  --u-bg-hover: rgba(30, 41, 59, 0.5);
  --u-bg-sky950: rgba(11, 33, 71, 0.75);
  --u-bg-cyan950: rgba(8, 51, 68, 0.8);
  --u-bg-amber950: rgba(69, 26, 3, 0.8);
  --u-bg-emerald950: rgba(2, 44, 34, 0.4);
  --u-bd-s700: rgba(51, 65, 85, 0.6);
  --u-bd-s800: #1e293b;
  --u-bd-sky: rgba(18, 53, 111, 0.5);
  color: var(--text-main);
}

/* Solid-colour surfaces keep white text in light mode */
[data-theme="light"] :is(.btn-primary, .btn-accent, .filter-pill.active, .nav-link.is-active,
  .bg-emerald-600, .bg-emerald-500, .bg-sky-500, .bg-cyan-600, .bg-amber-600, .bg-amber-500, .bg-orange-500),
[data-theme="light"] :is([class*="hover:bg-emerald-"], [class*="hover:bg-sky-500"], [class*="hover:bg-cyan-500"], [class*="hover:bg-amber-500"]):hover {
  --u-white: #ffffff;
}

/* Base Document */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-primary) 45%, var(--bg-main));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 18px 40px -16px var(--glow-color);
  transform: translateY(-3px);
}

.glass-nav {
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
}

/* Gradient text utility */
.gradient-text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Glow Badges */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border-color);
}

/* Animated Background Mesh */
.bg-tech-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(27, 98, 214, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(249, 115, 22, 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(90, 162, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(90, 162, 255, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .bg-grid-pattern {
  background-image: linear-gradient(to right, rgba(27, 98, 214, 0.06) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(27, 98, 214, 0.06) 1px, transparent 1px);
}

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

.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  animation: marquee 35s linear infinite;
  align-items: center;
}

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

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Floating Animation */
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatY 5s ease-in-out infinite;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1b62d6 0%, #154db0 100%);
  box-shadow: 0 4px 18px rgba(27, 98, 214, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 98, 214, 0.5);
  background: linear-gradient(135deg, #2b7df0 0%, #1b62d6 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--bg-card-hover);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
  transition: all 0.25s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

/* Modal Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.25rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Filter Tab Pills */
.filter-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--color-primary);
}

.filter-pill.active {
  background: linear-gradient(135deg, #1b62d6 0%, #154db0 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(27, 98, 214, 0.35);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 300px;
  max-width: 420px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Accordion Item */
.accordion-header {
  cursor: pointer;
  user-select: none;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
  max-height: 800px;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

/* Interactive Hexagon Map / Tech Nodes */
.tech-hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s ease;
}

.tech-hex:hover {
  transform: scale(1.05);
}

/* Print Friendly Styles */
@media print {
  .glass-nav, .mobile-drawer, .btn-primary, .theme-toggle, footer {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   Light Mode: readable text on light surfaces
   The markup uses dark-first Tailwind utilities (text-white, bg-slate-900...).
   In light mode they are re-pointed at the --u-* variables defined above.
   ========================================================================== */
[data-theme="light"] .text-white { color: var(--u-white); }
[data-theme="light"] .text-slate-100 { color: var(--u-s100); }
[data-theme="light"] .text-slate-200 { color: var(--u-s200); }
[data-theme="light"] .text-slate-300 { color: var(--u-s300); }
[data-theme="light"] .text-slate-400 { color: var(--u-s400); }
[data-theme="light"] .text-slate-500 { color: var(--u-s500); }
[data-theme="light"] .text-slate-600 { color: var(--u-s600); }
[data-theme="light"] .text-sky-300 { color: var(--u-sky300); }
[data-theme="light"] :is(.text-sky-400, .text-sky-400\/80) { color: var(--u-sky400); }
[data-theme="light"] .text-cyan-300 { color: var(--u-cyan300); }
[data-theme="light"] :is(.text-cyan-400, .text-cyan-500) { color: var(--u-cyan400); }
[data-theme="light"] :is(.text-emerald-400, .text-emerald-400\/80) { color: var(--u-emerald400); }
[data-theme="light"] .text-amber-300 { color: var(--u-amber300); }
[data-theme="light"] :is(.text-amber-400, .text-amber-400\/80, .text-amber-500) { color: var(--u-amber400); }
[data-theme="light"] .text-rose-400 { color: var(--u-rose400); }
[data-theme="light"] .text-blue-400 { color: var(--u-blue400); }
[data-theme="light"] .text-purple-400 { color: var(--u-purple400); }
[data-theme="light"] .text-red-400 { color: var(--u-red400); }
[data-theme="light"] .text-indigo-400 { color: var(--u-indigo400); }
[data-theme="light"] .text-orange-400 { color: var(--u-orange400); }

[data-theme="light"] .hover\:text-white:hover { color: var(--u-white); }
[data-theme="light"] .hover\:text-slate-200:hover { color: var(--u-s200); }
[data-theme="light"] .hover\:text-slate-300:hover { color: var(--u-s300); }
[data-theme="light"] :is(.hover\:text-sky-400:hover, .group:hover .group-hover\:text-sky-400) { color: var(--u-sky400); }
[data-theme="light"] :is(.hover\:text-cyan-400:hover, .group:hover .group-hover\:text-cyan-400) { color: var(--u-cyan400); }
[data-theme="light"] :is(.hover\:text-amber-400:hover, .group:hover .group-hover\:text-amber-400) { color: var(--u-amber400); }
[data-theme="light"] :is(.hover\:text-emerald-400:hover, .group:hover .group-hover\:text-emerald-400) { color: var(--u-emerald400); }
[data-theme="light"] .hover\:text-rose-300:hover { color: var(--u-rose400); }
[data-theme="light"] .group:hover .group-hover\:text-purple-400 { color: var(--u-purple400); }
[data-theme="light"] .group:hover .group-hover\:text-blue-400 { color: var(--u-blue400); }
[data-theme="light"] .placeholder-slate-500::placeholder { color: var(--u-s500); }

[data-theme="light"] :is(.bg-slate-950, .bg-slate-950\/60, .bg-slate-950\/70, .bg-slate-950\/80, .bg-slate-950\/90) { background-color: var(--u-bg-s950); }
[data-theme="light"] :is(.bg-slate-900, .bg-slate-900\/60, .bg-slate-900\/80, .bg-slate-900\/90) { background-color: var(--u-bg-s900); }
[data-theme="light"] :is(.bg-slate-800, .bg-slate-800\/50, .bg-slate-800\/60) { background-color: var(--u-bg-s800); }
[data-theme="light"] :is(.hover\:bg-slate-800\/30, .hover\:bg-slate-800\/40, .hover\:bg-slate-800\/50, .hover\:bg-slate-700\/50):hover { background-color: var(--u-bg-hover); }
[data-theme="light"] :is(.bg-sky-950\/40, .bg-sky-950\/70, .bg-sky-950\/80) { background-color: var(--u-bg-sky950); }
[data-theme="light"] .bg-cyan-950\/80 { background-color: var(--u-bg-cyan950); }
[data-theme="light"] .bg-amber-950\/80 { background-color: var(--u-bg-amber950); }
[data-theme="light"] .bg-emerald-950\/40 { background-color: var(--u-bg-emerald950); }
[data-theme="light"] section.bg-gradient-to-b.from-slate-950:not(.on-dark) { background-image: linear-gradient(to bottom, #e9eff6, var(--bg-main)); }

[data-theme="light"] :is(.border-slate-700, .border-slate-700\/50, .border-slate-700\/60, .border-slate-700\/80, .hover\:border-slate-700:hover) { border-color: var(--u-bd-s700); }
[data-theme="light"] :is(.border-slate-800, .border-slate-800\/80, .border-slate-900) { border-color: var(--u-bd-s800); }
[data-theme="light"] .divide-slate-800\/60 > :not([hidden]) ~ :not([hidden]) { border-color: var(--u-bd-s800); }
[data-theme="light"] :is(.border-sky-900\/40, .border-sky-800\/60, .border-cyan-800\/60, .border-amber-800\/60) { border-color: var(--u-bd-sky); }

[data-theme="light"] .btn-secondary:hover { color: var(--color-primary-dark); }
[data-theme="light"] .on-dark .btn-secondary:hover { color: var(--color-primary-light); }
[data-theme="light"] .filter-pill { box-shadow: var(--card-shadow); }
[data-theme="light"] .modal-container { box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35); }
[data-theme="light"] .toast { box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2); }
[data-theme="light"] .mobile-drawer { box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18); }

/* ==========================================================================
   Top Bar + Header + Navigation
   ========================================================================== */
.topbar {
  display: none;
  background: #061423;
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(90, 162, 255, 0.12);
}
@media (min-width: 768px) { .topbar { display: block; } }

.topbar__row,
.topbar__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.topbar a,
.topbar__address {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}
.topbar a:hover { color: #8fc1ff; }
.topbar i { color: #5aa2ff; }
.topbar__address { display: none; color: #94a3b8; }
@media (min-width: 1024px) { .topbar__address { display: inline-flex; } }
.topbar__clock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
  color: #8fc1ff;
}
.topbar__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(2, 8, 20, 0.55); }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 4.5rem;
  transition: height 0.25s ease;
}
.site-header.is-scrolled .site-header__row { height: 3.75rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand img {
  height: 2.6rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.brand:hover img { transform: scale(1.06) rotate(-2deg); }
.brand__text { display: none; flex-direction: column; line-height: 1.1; }
@media (min-width: 480px) { .brand__text { display: flex; } }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--text-main);
}
.brand__sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--badge-text);
  margin-top: 0.2rem;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem;
  border-radius: 9999px;
  background: var(--nav-pill-bg);
  border: 1px solid var(--border-color);
}
@media (min-width: 1180px) { .main-nav { display: flex; } }

.nav-link {
  position: relative;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-link:hover {
  color: var(--text-main);
  background: var(--nav-hover-bg);
}
.nav-link.is-active,
.nav-link.is-active:hover {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, #1b62d6 0%, #154db0 100%);
  box-shadow: 0 6px 16px -6px rgba(27, 98, 214, 0.7);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  color: var(--text-muted);
  background: var(--nav-pill-bg);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}
.icon-btn:hover {
  color: var(--text-main);
  background: var(--nav-hover-bg);
  border-color: var(--border-hover);
}
.nav-cta {
  display: none;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
}
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
.nav-cta i { font-size: 0.7rem; transition: transform 0.2s ease; }
.nav-cta:hover i { transform: translateX(3px); }
@media (min-width: 1180px) { .nav-burger { display: none; } }

/* Mobile drawer contents */
.mobile-drawer { padding: 1.25rem; overflow-y: auto; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-color);
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 0;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
}
.drawer-link i {
  width: 1.25rem;
  text-align: center;
  color: var(--badge-text);
}
.drawer-link.is-active i { color: #ffffff; }
.drawer-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.drawer-contact i { color: var(--badge-text); margin-right: 0.4rem; }

/* ==========================================================================
   Photo / Video Hero Backgrounds
   ========================================================================== */
.home-hero,
.page-hero,
.cta-band {
  background-color: #050b14;
  color: #f8fafc;
  isolation: isolate;
}
.page-hero { border-bottom: 1px solid rgba(90, 162, 255, 0.18); }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-media__img,
.hero-media__video,
.hero-media__canvas,
.hero-media__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media__img {
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) blur(1.5px);
  opacity: 0.55;
  transform: scale(1.08);
  animation: heroDrift 28s ease-in-out infinite alternate;
}
.hero-media__video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-media.has-video .hero-media__video { opacity: 0.6; }
.hero-media.has-video .hero-media__img { opacity: 0; }
.hero-media__canvas { opacity: 0.7; }
.hero-media__shade {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(27, 98, 214, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(249, 115, 22, 0.16) 0%, transparent 50%),
    linear-gradient(180deg, rgba(5, 11, 20, 0.72) 0%, rgba(5, 11, 20, 0.6) 45%, rgba(5, 11, 20, 0.92) 100%);
}
.home-hero .hero-media__shade {
  background:
    radial-gradient(ellipse at 10% 10%, rgba(27, 98, 214, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(249, 115, 22, 0.14) 0%, transparent 50%),
    linear-gradient(100deg, rgba(5, 11, 20, 0.93) 0%, rgba(5, 11, 20, 0.72) 55%, rgba(5, 11, 20, 0.5) 100%);
}
.cta-band .hero-media__img { opacity: 0.7; background-position: right center; }
.cta-band .hero-media__shade {
  background: linear-gradient(100deg, rgba(4, 20, 38, 0.95) 0%, rgba(4, 28, 54, 0.82) 55%, rgba(3, 60, 110, 0.55) 100%);
}

@keyframes heroDrift {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(-1.5%, -2%, 0); }
}

/* ==========================================================================
   Page Polish: section accents, reveals, progress bar, back-to-top
   ========================================================================== */
section:not(.on-dark) {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}
section:not(.on-dark)::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  max-width: 80vw;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  background: var(--orb-a);
  top: -6rem;
  right: -10rem;
}
section:not(.on-dark):nth-of-type(even)::before {
  background: var(--orb-b);
  top: auto;
  right: auto;
  bottom: -8rem;
  left: -12rem;
}

footer {
  position: relative;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(27, 98, 214, 0.14) 0%, transparent 60%);
}
footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1b62d6 30%, #f97316 70%, transparent);
}

.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #1b62d6, #06b6d4 55%, #f97316);
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1b62d6 0%, #154db0 100%);
  box-shadow: 0 10px 24px -8px rgba(27, 98, 214, 0.7);
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity 0.3s ease, translate 0.3s ease, transform 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media__img,
  .animate-float,
  .animate-pulse-glow,
  .marquee-content { animation: none; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* Light surfaces nested inside a solid-colour element (e.g. tooltips) go back to dark text */
[data-theme="light"] :is(.bg-slate-900, .bg-slate-900\/60, .bg-slate-900\/80, .bg-slate-900\/90, .bg-slate-800, .bg-slate-950):not(:is(.on-dark, footer, .bg-brand-950), :is(.on-dark, footer, .bg-brand-950) *) {
  --u-white: #0f172a;
}

/* Footer small print: lift the dimmest grey so it stays legible on the dark footer */
footer .text-slate-500 { color: #8b9ab0; }

/* Hide the off-canvas drawer shadow until the drawer is open */
.mobile-drawer:not(.active) { box-shadow: none !important; visibility: hidden; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.35s; }

/* ==========================================================================
   Redesign v2: split heroes, framed photos, logo walls
   ========================================================================== */
:root { --page-bg: #070e18; }
[data-theme="light"] { --page-bg: #f4f7fb; }

/* Curved bottom edge on heroes */
.page-hero,
.home-hero { border-bottom: 0; }
.page-hero { padding-top: 4.5rem; padding-bottom: 7rem; }
.page-hero::after,
.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(40px, 6vw, 90px);
  background: var(--page-bg);
  z-index: 2;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0 62 C 260 8 520 8 760 46 S 1220 92 1440 28 V90 H0 Z' fill='black'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0 62 C 260 8 520 8 760 46 S 1220 92 1440 28 V90 H0 Z' fill='black'/></svg>") center / 100% 100% no-repeat;
}

/* Split hero layout */
.hero-split {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 1.05fr 1fr; gap: 4.5rem; }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero-copy { align-items: flex-start; text-align: left; }
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.65rem);
  line-height: 1.06;
  margin-top: 0.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }

/* Framed, crisp hero imagery */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  perspective: 1400px;
}
.hero-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0.45rem;
  border-radius: 1.6rem;
  background: linear-gradient(145deg, rgba(90, 162, 255, 0.55), rgba(255, 255, 255, 0.06) 45%, rgba(249, 115, 22, 0.45));
  box-shadow: 0 45px 80px -35px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-visual:hover .hero-frame { transform: rotateY(0) rotateX(0); }
.hero-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  background: #0b1626;
}
.hero-frame--glow { background: #0b1626; }
.hero-frame--glow::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 55%, #5aa2ff 70%, #f97316 82%, transparent 92%);
  animation: frameSpin 7s linear infinite;
}
@keyframes frameSpin { to { transform: rotate(360deg); } }

.hero-visual--stack { padding-bottom: 3rem; }
.hero-visual--stack .hero-frame:first-child { width: 88%; }
.hero-visual--stack .hero-frame--small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  transform: rotate(4deg);
}
.hero-visual--stack:hover .hero-frame--small { transform: rotate(0deg) translateY(-6px); }

.hero-visual--mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.hero-visual--mosaic .hero-frame { transform: none; padding: 0.3rem; border-radius: 1.1rem; }
.hero-visual--mosaic .hero-frame:nth-child(even) { translate: 0 2rem; }
.hero-visual--mosaic .hero-frame img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0.85rem; }
.hero-visual--mosaic .hero-frame:hover { transform: translateY(-5px); }

.hero-visual--logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 2.5rem;
}
.hero-visual--logos .logo-tile:nth-child(3n + 2) { margin-top: 1.75rem; }

/* Floating info chips */
.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border-radius: 1rem;
  color: #f8fafc;
  background: rgba(9, 20, 38, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(143, 193, 255, 0.25);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.85);
  animation: floatY 6s ease-in-out infinite;
  white-space: nowrap;
}
.hero-chip i {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1b62d6, #5aa2ff);
}
.hero-chip i.fa-whatsapp { background: linear-gradient(135deg, #059669, #10b981); }
.hero-chip i.fa-bolt,
.hero-chip i.fa-solar-panel { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.hero-chip strong { display: block; font-size: 0.85rem; line-height: 1.2; }
.hero-chip span { display: block; font-size: 0.7rem; color: #a3b3c9; }
.hero-chip--a { left: -1.25rem; bottom: 1.25rem; }
.hero-chip--b { right: -1rem; top: 1.25rem; animation-delay: -3s; }
.hero-visual--mosaic .hero-chip--a { bottom: -1.25rem; }
@media (max-width: 640px) {
  .hero-chip--a { left: 0.25rem; }
  .hero-chip--b { right: 0.25rem; }
}

/* Logo tiles */
.logo-tile {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.5rem;
  padding: 0.9rem 1.2rem;
  overflow: hidden;
  background: #ffffff;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 14px 30px -20px rgba(15, 23, 42, 0.55);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.3rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(90deg, #154db0, #1b62d6);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 44px -22px rgba(27, 98, 214, 0.65), 0 0 0 2px rgba(90, 162, 255, 0.7);
}
.logo-tile:hover img { transform: translateY(-0.55rem) scale(0.9); }
.logo-tile:hover figcaption { transform: none; }
.logo-tile--float {
  height: 5.5rem;
  animation: floatY 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.7s);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1rem;
}

/* Two-row moving logo band */
.logo-band { overflow: hidden; }
.logo-marquee {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
  animation: logoScroll 70s linear infinite;
}
.logo-marquee--reverse .logo-marquee__track { animation-direction: reverse; animation-duration: 60s; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee .logo-tile { width: 11rem; height: 5.5rem; flex-shrink: 0; }
@keyframes logoScroll { to { transform: translateX(calc(-100% - 1rem)); } }

/* Eyebrow label with rules either side */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--badge-text);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 2.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.section-eyebrow::after { transform: scaleX(-1); }

/* Partners grouped by practice */
.partner-groups { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .partner-groups { grid-template-columns: 1fr 1fr; } }
.partner-group { padding: 1.5rem; border-radius: 1.5rem; }
.partner-group__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.partner-group__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1b62d6, #5aa2ff);
  box-shadow: 0 10px 20px -10px rgba(27, 98, 214, 0.8);
}
.partner-group h3 {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}
.partner-group__count {
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--badge-bg);
  color: var(--badge-text);
}
.partner-group__logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
}
.partner-group .logo-tile { height: 5rem; padding: 0.7rem 0.9rem; }

/* Cursor spotlight on cards */
.glass-panel {
  background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(90, 162, 255, 0.13), transparent 45%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-chip,
  .logo-tile--float,
  .logo-marquee__track,
  .hero-frame--glow::before { animation: none; }
}

/* Logo walls: centred rows so a short last row never leaves a lone tile hanging left */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; }
.logo-wall .logo-tile { flex: 0 1 11.5rem; height: 7rem; padding: 0.65rem 0.9rem; }
.partner-group__logos { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .partner-group__logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .partner-group__logos { grid-template-columns: repeat(4, 1fr); } }
.hero-visual--logos .hero-chip--a { left: -1.5rem; bottom: -0.75rem; }

/* ==========================================================================
   Brand v3: vector logo, ambient motion, hero grid floor, slideshows
   ========================================================================== */
:root { --brand-accent: #4f9bff; }
[data-theme="light"] { --brand-accent: #1b62d6; }
[data-theme="light"] :is(.on-dark, footer, .bg-brand-950) { --brand-accent: #4f9bff; }

.brand__mark {
  height: 2.6rem;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(27, 98, 214, 0.45));
}
.brand__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-main);
}
.brand__accent { color: var(--brand-accent); }
.brand__sub { font-size: 0.58rem; letter-spacing: 0.24em; margin-top: 0.3rem; }
.brand--footer { display: flex; align-items: center; gap: 0.8rem; }
.brand--footer .brand__text { display: flex; }
.brand--footer .brand__sub { letter-spacing: 0.14em; color: #8fc1ff; }
.brand--stacked { flex-direction: column; justify-content: center; gap: 0.5rem; }
.brand--stacked .brand__mark { height: 3.6rem; }
.brand--stacked .brand__name { font-size: 2.1rem; }

/* Zambian-owned chip in the top bar */
.topbar__flag {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #e2e8f0;
}
@media (min-width: 1024px) { .topbar__flag { display: inline-flex; } }
.flag-bars {
  display: inline-flex;
  height: 0.8rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.flag-bars i { width: 0.3rem; }
.flag-bars i:nth-child(1) { background: #198a00; }
.flag-bars i:nth-child(2) { background: #de2010; }
.flag-bars i:nth-child(3) { background: #000000; }
.flag-bars i:nth-child(4) { background: #ef7d00; }

/* Ambient moving background behind every page */
body[class] { background-color: transparent !important; }
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  will-change: transform;
  animation: ambientDrift 40s ease-in-out infinite alternate;
}
.ambient__blob--1 { top: -22vmax; left: -18vmax; background: radial-gradient(circle, rgba(27, 98, 214, 0.42), transparent 62%); }
.ambient__blob--2 { top: 25%; right: -24vmax; background: radial-gradient(circle, rgba(6, 182, 212, 0.26), transparent 62%); animation-duration: 48s; animation-delay: -14s; }
.ambient__blob--3 { bottom: -30vmax; left: 20%; background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 62%); animation-duration: 56s; animation-delay: -28s; }
[data-theme="light"] .ambient__blob { opacity: 0.55; }
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(143, 193, 255, 0.16) 1px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 80%);
}
[data-theme="light"] .ambient::after { background-image: radial-gradient(rgba(27, 98, 214, 0.13) 1px, transparent 1.3px); }
@keyframes ambientDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(9vmax, 7vmax, 0) scale(1.15); }
  100% { transform: translate3d(-7vmax, 11vmax, 0) scale(0.92); }
}

/* Hero motion: perspective grid floor + sweeping light beam */
.hero-media::after {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -8%;
  height: 62%;
  background-image:
    linear-gradient(rgba(90, 162, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 162, 255, 0.4) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 85%);
          mask-image: linear-gradient(to top, #000 5%, transparent 85%);
  animation: gridFlow 3.5s linear infinite;
}
@keyframes gridFlow { to { background-position: 0 64px, 0 0; } }
.hero-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgba(143, 193, 255, 0.12), transparent);
  transform: skewX(-15deg);
  animation: beamSweep 9s ease-in-out infinite;
}
@keyframes beamSweep {
  0% { left: -40%; }
  60%, 100% { left: 120%; }
}

/* Crossfading photo slideshows */
.slides { position: relative; display: block; overflow: hidden; border-radius: inherit; }
.slides > img { transition: opacity 1.4s ease; }
.slides > img.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.slides > img.is-hidden { opacity: 0; }
.slides > img.slide.is-active { opacity: 1; }
.hero-frame .slides { border-radius: 1.2rem; }
.slide-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.8rem;
  display: flex;
  gap: 0.35rem;
  translate: -50% 0;
}
.slide-dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.4s ease, background-color 0.4s ease;
}
.slide-dots i.is-active { width: 1.3rem; background: #ffffff; }

@media (prefers-reduced-motion: reduce) {
  .ambient__blob,
  .hero-media::after,
  .hero-media::before { animation: none; }
}

/* Let the background videos read through the shading a little more */
.hero-media.has-video .hero-media__video { opacity: 0.78; }

/* ==========================================================================
   Imagery v4: real logos beside company names, photo framing, field gallery
   ========================================================================== */
.vendor-logos {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.3rem;
}
.vendor-logos img {
  height: 1.45rem;
  width: auto;
  max-width: 4.8rem;
  object-fit: contain;
  padding: 0.15rem 0.35rem;
  border-radius: 0.4rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), 0 4px 10px -6px rgba(15, 23, 42, 0.5);
}
.vendor-logos--table img { height: 1.9rem; max-width: 6.5rem; padding: 0.2rem 0.45rem; }
.vendor-line { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.35rem; }

.card-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), 0 10px 22px -14px rgba(15, 23, 42, 0.6);
}
.card-logo img { height: 100%; width: auto; max-width: 7.5rem; object-fit: contain; }

/* Stock photos: consistent landscape framing, never stretched */
img[src*="/photos/"] { aspect-ratio: 3 / 2; object-fit: cover; }

/* Real field-project photos: square tiles close to native size, a little extra punch */
.field-gallery__photo { aspect-ratio: 1 / 1; }
.field-gallery img,
.hero-visual--mosaic img { filter: contrast(1.06) saturate(1.12); }

/* Vector cybersecurity wheel */
.cyber-wheel {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 25px 45px rgba(27, 98, 214, 0.35));
}
.hero-frame--wheel { padding: 1.5rem; }
.hero-frame--wheel img { background: transparent; }

/* Logos fill their tile but always keep their own proportions (never stretched) */
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.vendor-logos img,
.card-logo img { object-position: center; }

/* Uniform badge boxes so wide and compact logos read at a similar visual size */
.vendor-logos img {
  width: 3.9rem;
  height: 1.55rem;
  max-width: none;
  object-fit: contain;
  padding: 0.2rem 0.35rem;
  box-sizing: border-box;
}
.vendor-logos--table img { width: 5.6rem; height: 2.1rem; padding: 0.3rem 0.5rem; }

/* ==========================================================================
   Power & Solar: capabilities gallery + real project strip
   ========================================================================== */
.capability-gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) { .capability-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capability-gallery { grid-template-columns: repeat(4, 1fr); } }
.capability-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  isolation: isolate;
}
.capability-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.capability-card:hover img { transform: scale(1.05); }
.capability-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 11, 20, 0.92) 100%);
  pointer-events: none;
}
.capability-card figcaption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.2rem;
  color: #ffffff;
}
.capability-card figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
}
.capability-card figcaption span { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: #cbd5e1; }
.capability-card figcaption::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 0.6rem;
  border-radius: 3px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  transition: width 0.4s ease;
}
.capability-card:hover figcaption::before { width: 3.5rem; }

.project-strip {
  margin-top: 4rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.project-strip__head { text-align: center; margin-bottom: 1.25rem; }
.project-strip__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
}
.project-strip figure { margin: 0; }
.project-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.85rem;
  cursor: zoom-in;
  filter: contrast(1.06) saturate(1.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-strip img:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.8); }
.project-strip figcaption { margin-top: 0.4rem; font-size: 0.7rem; text-align: center; color: var(--text-muted); }

/* ==========================================================================
   Cybersecurity: interactive 6-pillar defence network
   ========================================================================== */
.pillar-orbit {
  position: relative;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.pillar-orbit__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pillar-orbit__ring {
  fill: none;
  stroke: rgba(90, 162, 255, 0.35);
  stroke-width: 0.4;
  stroke-dasharray: 1 2.2;
  transform-origin: 50% 50%;
  animation: orbitSpin 60s linear infinite;
}
.pillar-orbit__ring--inner { stroke: rgba(103, 232, 249, 0.3); animation-direction: reverse; animation-duration: 40s; }
.pillar-orbit__hex {
  fill: rgba(27, 98, 214, 0.06);
  stroke: rgba(90, 162, 255, 0.25);
  stroke-width: 0.35;
}
.pillar-orbit__link {
  stroke: rgba(90, 162, 255, 0.3);
  stroke-width: 0.5;
  stroke-dasharray: 1.2 1.6;
  animation: linkFlow 1.6s linear infinite;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}
.pillar-orbit__link.is-active { stroke: #67e8f9; stroke-width: 0.9; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes linkFlow { to { stroke-dashoffset: -2.8; } }

.pillar-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1 / 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  color: #ffffff;
  background: radial-gradient(circle at 50% 35%, #1b62d6, #0b2147 70%);
  box-shadow: 0 0 0 6px rgba(27, 98, 214, 0.18), 0 0 45px rgba(90, 162, 255, 0.45);
  animation: corePulse 3.2s ease-in-out infinite;
}
.pillar-orbit__core i { font-size: clamp(1.4rem, 4vw, 2rem); }
.pillar-orbit__core span { font-size: clamp(0.55rem, 1.6vw, 0.7rem); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; }
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(27, 98, 214, 0.18), 0 0 40px rgba(90, 162, 255, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(27, 98, 214, 0.08), 0 0 60px rgba(90, 162, 255, 0.6); }
}

.pillar-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-main);
}
.pillar-node__icon {
  display: grid;
  place-items: center;
  width: clamp(2.8rem, 9vw, 3.6rem);
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  color: #ffffff;
  font-size: clamp(1rem, 3vw, 1.3rem);
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b2147));
  box-shadow: 0 12px 24px -12px var(--c), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.pillar-node__icon i { transform: rotate(-45deg); }
.pillar-node__label {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.pillar-node:hover .pillar-node__icon,
.pillar-node.is-active .pillar-node__icon {
  transform: rotate(45deg) scale(1.15);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 16px 32px -10px var(--c);
}
.pillar-node.is-active .pillar-node__label { border-color: var(--c); color: var(--c); }
.pillar-node:focus-visible { outline: none; }
.pillar-node:focus-visible .pillar-node__icon { box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--c); }

.pillar-detail {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: border-color 0.3s ease;
}
.pillar-detail__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem; }
.pillar-detail__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1b62d6, #2aa3b0);
}
.pillar-detail__kicker { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.pillar-detail__title { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }
.pillar-detail__items { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pillar-detail__items li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  color: var(--text-main);
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  animation: chipIn 0.4s ease both;
}
.pillar-detail__items li:nth-child(2) { animation-delay: 0.05s; }
.pillar-detail__items li:nth-child(3) { animation-delay: 0.1s; }
.pillar-detail__items li:nth-child(4) { animation-delay: 0.15s; }
.pillar-detail__items li:nth-child(5) { animation-delay: 0.2s; }
.pillar-detail__items li:nth-child(6) { animation-delay: 0.25s; }
@keyframes chipIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .pillar-orbit__ring,
  .pillar-orbit__link,
  .pillar-orbit__core,
  .pillar-detail__items li { animation: none; }
}

/* ==========================================================================
   Partners page: moving logo bands
   ========================================================================== */
.logo-marquee__track { animation-duration: var(--marquee-duration, 70s); }
.logo-marquee--reverse .logo-marquee__track { animation-duration: var(--marquee-duration, 60s); }
.logo-band--page { overflow: hidden; display: flex; flex-direction: column; gap: 0.25rem; }
.logo-band--page .logo-tile { width: 12rem; height: 6rem; }

.partner-rows { display: flex; flex-direction: column; gap: 1rem; }
.partner-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1.4rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
@media (min-width: 900px) { .partner-row { grid-template-columns: 15rem minmax(0, 1fr); } }
.partner-row__label { display: flex; align-items: center; gap: 0.85rem; }
.partner-row__label h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.partner-row__label span:not(.partner-group__icon) { font-size: 0.75rem; color: var(--text-muted); }
.partner-row .logo-marquee { min-width: 0; }
.partner-row .logo-tile { width: 10rem; height: 5rem; padding: 0.7rem 0.9rem; }

/* ==========================================================================
   Calmer logo presentation
   ========================================================================== */
.logo-wall--featured .logo-tile { flex-basis: 11rem; }

.partner-tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.partner-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}
.partner-tab i { color: var(--badge-text); }
.partner-tab b {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
}
.partner-tab:hover { color: var(--text-main); border-color: var(--border-hover); }
.partner-tab.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #1b62d6, #154db0);
  box-shadow: 0 10px 22px -12px rgba(27, 98, 214, 0.9);
}
.partner-tab.is-active i { color: #ffffff; }
.partner-tab.is-active b { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.partner-tab:focus-visible { outline: 2px solid #5aa2ff; outline-offset: 3px; }

.partner-tabs__panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 56rem;
  margin-inline: auto;
  animation: panelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner-tabs__panel[hidden] { display: none; }
.partner-tabs__panel .logo-tile { flex: 0 1 12rem; height: 6rem; }
@keyframes panelIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
