/* =========================================================
   DigiSkills — style.css
   AI Powered Solutions • Smarter Systems • Africa Focused
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --ds-orange: #FF7900;
  --ds-orange-600: #E56C00;
  --ds-orange-100: #FFEBD9;
  --ds-black: #111111;
  --ds-black-800: #1a1a1a;
  --ds-white: #FFFFFF;
  --ds-bg: #FAFAFA;
  --ds-gray-100: #F4F4F4;
  --ds-gray-200: #EAEAEA;
  --ds-gray-300: #DDDDDD;
  --ds-text: #111111;
  --ds-text-muted: #666666;

  --ds-radius-sm: 8px;
  --ds-radius: 14px;
  --ds-radius-lg: 20px;

  --ds-shadow-sm: 0 1px 2px rgba(17,17,17,0.04), 0 1px 3px rgba(17,17,17,0.03);
  --ds-shadow: 0 4px 12px rgba(17,17,17,0.06), 0 2px 4px rgba(17,17,17,0.04);
  --ds-shadow-lg: 0 12px 32px rgba(17,17,17,0.08), 0 4px 12px rgba(17,17,17,0.05);

  --ds-container-pad: clamp(1rem, 2vw, 2rem);
  --ds-section-pad: clamp(4rem, 8vw, 7rem);
  --ds-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ds-transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
  --ds-transition: 220ms cubic-bezier(0.2, 0, 0, 1);
  --ds-transition-slow: 400ms cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ds-font);
  font-weight: 400;
  color: var(--ds-text);
  background-color: var(--ds-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--ds-text);
  text-decoration: none;
  transition: color var(--ds-transition-fast);
}
a:hover { color: var(--ds-orange); }

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

.text-ds-orange { color: var(--ds-orange) !important; }
.bg-ds-orange { background-color: var(--ds-orange) !important; }
.bg-ds-dark { background-color: var(--ds-black) !important; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ds-black);
  color: var(--ds-white);
  padding: 8px 12px;
  z-index: 2000;
  border-radius: 6px;
}

/* ---------- 3. Typography ---------- */
.ds-h1 {
  font-family: var(--ds-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin: 0.5rem 0 1.5rem;
  color: var(--ds-black);
}

.ds-h2 {
  font-family: var(--ds-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0.5rem 0 1.25rem;
  color: var(--ds-black);
}

.ds-lead {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: var(--ds-text-muted);
  line-height: 1.7;
  font-weight: 400;
  max-width: 62ch;
  margin-bottom: 1rem;
}

.ds-lead-dark { color: rgba(255,255,255,0.72); }

.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ds-font);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-orange);
  margin: 0 0 1.25rem;
}
.ds-eyebrow.justify-content-center { justify-content: center; }
.ds-eyebrow-dark { color: var(--ds-orange); }
.ds-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ds-orange);
  border-radius: 50%;
}

/* ---------- 4. Buttons ---------- */
.btn {
  font-family: var(--ds-font);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: transform var(--ds-transition), box-shadow var(--ds-transition), background var(--ds-transition), color var(--ds-transition), border-color var(--ds-transition);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-ds-primary {
  background: var(--ds-orange);
  color: var(--ds-white);
  border-color: var(--ds-orange);
}
.btn-ds-primary:hover,
.btn-ds-primary:focus {
  background: var(--ds-orange-600);
  border-color: var(--ds-orange-600);
  color: var(--ds-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,121,0,0.25);
}

.btn-ds-ghost {
  background: transparent;
  color: var(--ds-black);
  border-color: var(--ds-gray-300);
}
.btn-ds-ghost:hover,
.btn-ds-ghost:focus {
  border-color: var(--ds-black);
  color: var(--ds-black);
  transform: translateY(-2px);
}

.btn-ds-dark {
  background: var(--ds-black);
  color: var(--ds-white);
  border-color: var(--ds-black);
}
.btn-ds-dark:hover,
.btn-ds-dark:focus {
  background: #000;
  color: var(--ds-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn:focus-visible {
  outline: 2px solid var(--ds-orange);
  outline-offset: 3px;
}

/* ---------- 5. Navbar ---------- */
.ds-navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: background var(--ds-transition), box-shadow var(--ds-transition), padding var(--ds-transition);
  border-bottom: 1px solid transparent;
}

.ds-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(17,17,17,0.06);
  padding: 0.6rem 0;
  border-bottom-color: var(--ds-gray-200);
}

.ds-navbar .navbar-brand img { transition: height var(--ds-transition); }

/* Brand logo image */
.ds-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 0;
}
.ds-brand-img {
  display: block;
  height: 48px;
  width: auto;
  transition: height var(--ds-transition);
}
.ds-navbar.scrolled .ds-brand-img { height: 38px; }

.ds-navbar .nav-link {
  color: var(--ds-black);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem;
  position: relative;
  transition: color var(--ds-transition-fast);
}

.ds-navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--ds-orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ds-transition);
}
.ds-navbar .nav-link:hover,
.ds-navbar .nav-link.active {
  color: var(--ds-orange);
}
.ds-navbar .nav-link.active::after,
.ds-navbar .nav-link:hover::after { transform: scaleX(1); }

.ds-navbar .navbar-toggler:focus { box-shadow: none; }

/* Offcanvas mobile menu */
.ds-offcanvas {
  --bs-offcanvas-width: 320px;
  border-left: 1px solid var(--ds-gray-200);
}
.ds-offcanvas .mobile-nav-list .nav-link {
  color: var(--ds-black);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--ds-gray-200);
}
.ds-offcanvas .mobile-nav-list .nav-link:hover { color: var(--ds-orange); }

/* ---------- 6. Layout / sections ---------- */
.ds-section {
  padding: var(--ds-section-pad) 0;
  position: relative;
}
.ds-section-alt { background: var(--ds-gray-100); }
.ds-section-quiet { background: var(--ds-bg); }

/* ---------- 7. Hero ---------- */
.ds-hero {
  position: relative;
  padding: 88px 0 var(--ds-section-pad);
  overflow: hidden;
  background: var(--ds-bg);
}
@media (max-width: 991.98px) {
  .ds-hero { padding-top: 76px; }
}

.ds-hero-banner {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: 0 0 96px 24px;
  overflow: hidden;
  background-color: #0f0f0f;
  box-shadow: 0 24px 60px rgba(17,17,17,0.18);
  color: #ffffff;
}

/* Jigsaw puzzle assembly */
.ds-puzzle {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 0;
  animation:
    dsPuzzleGapClose 500ms ease-out 2200ms forwards,
    dsAfricaMorph 3200ms cubic-bezier(.4,.1,.3,1) 1700ms forwards;
}
@keyframes dsPuzzleGapClose {
  0%   { gap: 4px; }
  100% { gap: 0; }
}

/*
  Phase 3: image contracts into Africa silhouette, holds ~2.3s (~3s including form/expand),
  then expands back to full rectangle.
  Within the 3200ms animation:
    0-13%   (0-416ms)     rect -> Africa (contract)
    13-84%  (416-2688ms)  Africa hold (~2.3s)
    84-100% (2688-3200ms) Africa -> rect (expand)
*/
@keyframes dsAfricaMorph {
  0% {
    clip-path: polygon(
      0% 0%, 16.67% 0%, 33.33% 0%, 50% 0%, 66.67% 0%, 83.33% 0%, 100% 0%,
      100% 16.67%, 100% 33.33%, 100% 50%, 100% 66.67%, 100% 83.33%,
      100% 100%, 83.33% 100%, 66.67% 100%, 50% 100%, 33.33% 100%, 16.67% 100%,
      0% 100%, 0% 83.33%, 0% 66.67%, 0% 50%, 0% 33.33%, 0% 16.67%
    );
  }
  13%, 84% {
    clip-path: polygon(
      36% 14%, 42% 10%, 52% 10%, 61% 14%, 62% 20%, 63% 26%, 67% 34%,
      65% 44%, 60% 52%, 58% 60%, 57% 70%, 52% 80%,
      48% 88%, 44% 84%, 42% 75%, 40% 66%, 38% 56%, 38% 50%,
      36% 44%, 34% 40%, 33% 34%, 34% 27%, 34% 20%, 35% 16%
    );
  }
  100% {
    clip-path: polygon(
      0% 0%, 16.67% 0%, 33.33% 0%, 50% 0%, 66.67% 0%, 83.33% 0%, 100% 0%,
      100% 16.67%, 100% 33.33%, 100% 50%, 100% 66.67%, 100% 83.33%,
      100% 100%, 83.33% 100%, 66.67% 100%, 50% 100%, 33.33% 100%, 16.67% 100%,
      0% 100%, 0% 83.33%, 0% 66.67%, 0% 50%, 0% 33.33%, 0% 16.67%
    );
  }
}

.ds-puzzle-piece {
  background-image: url('../images/bannerlogo.jpg');
  background-size: 400% 300%;
  background-position: calc(var(--c, 0) * (100% / 3)) calc(var(--r, 0) * (100% / 2));
  background-repeat: no-repeat;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scale(0.75);
  animation:
    dsPuzzleDance 1500ms cubic-bezier(.4,.1,.3,1) 200ms forwards,
    dsPuzzleClear 500ms ease-out 2200ms forwards;
  will-change: transform, opacity, border-radius, box-shadow;
}

/* Bold Africa outline — fades in as the shape forms, holds, fades out as it expands. */
.ds-africa-outline {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  animation: dsAfricaOutlineFade 3000ms ease-in-out 2000ms forwards;
}
.ds-africa-outline path {
  fill: none;
  stroke: #FF7900;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(255,121,0,0.55));
}
@keyframes dsAfricaOutlineFade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Phase 1: pieces fade in scattered, dance & rotate, then converge to place. */
@keyframes dsPuzzleDance {
  0% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.75);
  }
  8% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.85);
  }
  22% {
    transform: translate(calc(var(--tx) * 0.55), calc(var(--ty) * 1.25)) rotate(calc(var(--rot) * -0.7)) scale(0.85);
  }
  38% {
    transform: translate(calc(var(--tx) * -0.85), calc(var(--ty) * 0.5)) rotate(calc(var(--rot) * 1.4)) scale(0.88);
  }
  52% {
    transform: translate(calc(var(--tx) * 0.6), calc(var(--ty) * -0.6)) rotate(calc(var(--rot) * -1.1)) scale(0.88);
  }
  66% {
    transform: translate(calc(var(--tx) * -0.3), calc(var(--ty) * 0.4)) rotate(calc(var(--rot) * 0.6)) scale(0.9);
  }
  78% {
    transform: translate(calc(var(--tx) * 0.15), calc(var(--ty) * -0.2)) rotate(calc(var(--rot) * -0.3)) scale(0.94);
  }
  92% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

/* Phase 2: puzzle solved — pieces melt into one clear image. */
@keyframes dsPuzzleClear {
  0% {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
  }
  100% {
    border-radius: 0;
    box-shadow: none;
  }
}

.ds-hero-banner-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(15,15,15,0.82) 0%, rgba(15,15,15,0.55) 55%, rgba(15,15,15,0.25) 100%);
  pointer-events: none;
  opacity: 0;
  animation: dsTintIn 600ms ease-out 4900ms forwards;
}
@keyframes dsTintIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.ds-hero-banner-inner {
  position: relative;
  z-index: 3;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  opacity: 0;
  animation: dsContentIn 600ms ease-out 5000ms forwards;
}
@keyframes dsContentIn {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .ds-hero-banner { border-radius: 0 0 48px 16px; min-height: 420px; }
  .ds-hero-banner-inner { padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.75rem); }
  .ds-hero-content { max-width: 100%; }
  /* Keep 4x3 grid on all sizes so each piece's --c/--r matches the 400% x 300% background */
}
@media (max-width: 480px) {
  .ds-hero-banner { min-height: 380px; border-radius: 0 0 32px 12px; }
  .ds-africa-outline path { stroke-width: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-puzzle { animation: none; gap: 0; clip-path: none; }
  .ds-puzzle-piece {
    animation: none;
    opacity: 1;
    transform: none;
    border-radius: 0;
    box-shadow: none;
  }
  .ds-africa-outline { display: none; }
  .ds-hero-banner-tint { animation: none; opacity: 1; }
  .ds-hero-banner-inner { animation: none; opacity: 1; transform: none; }
}
.ds-hero-content { max-width: 640px; }
.ds-hero-banner .ds-eyebrow { color: rgba(255,255,255,0.85); }
.ds-hero-banner .ds-h1 { color: #ffffff; }
.ds-hero-banner .ds-lead { color: rgba(255,255,255,0.9); }
.ds-hero-banner .ds-pillars li { color: rgba(255,255,255,0.92); }

.ds-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(17,17,17,0.05) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.ds-hero .container { position: relative; z-index: 1; }

.ds-pillars {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ds-pillars li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--ds-black);
}
.ds-pillar-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-orange);
  box-shadow: 0 0 0 4px rgba(255,121,0,0.14);
  flex-shrink: 0;
}

.ds-hero-visual {
  position: relative;
  padding: 1rem;
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow);
}
.ds-hero-visual svg { width: 100%; height: auto; }

.ds-hero-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(17,17,17,0.9);
  color: var(--ds-white);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(4px);
}
.ds-hero-caption strong { color: var(--ds-orange); }
.ds-hero-caption-dot {
  width: 8px;
  height: 8px;
  background: var(--ds-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,121,0,0.25);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Hero SVG animations */
.pulse-dot { animation: mapPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mapPulse {
  0% { r: 4; opacity: 0.8; }
  100% { r: 16; opacity: 0; }
}

.circuit-line { stroke-dasharray: 4 6; animation: dashMove 6s linear infinite; }
@keyframes dashMove {
  to { stroke-dashoffset: -60; }
}

.signal-dot { filter: drop-shadow(0 0 3px rgba(255,121,0,0.6)); }

.node-group circle:first-child { animation: nodeBreathe 3.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodeBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Rotating globe — continent strip loops seamlessly through the clipped sphere */
.globe-strip { animation: globeSpin 22s linear infinite; }
@keyframes globeSpin {
  from { transform: translateX(0); }
  to   { transform: translateX(-500px); }
}

/* Security shield — protective ripples, breathing shield, drawing checkmark */
.sec-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: secRingPulse 4.2s ease-out infinite;
}
.sec-ring-1 { animation-delay: 0s; }
.sec-ring-2 { animation-delay: 1.4s; }
.sec-ring-3 { animation-delay: 2.8s; }
@keyframes secRingPulse {
  0%   { transform: scale(0.55); opacity: 0.7; }
  70%  { opacity: 0.15; }
  100% { transform: scale(2.35); opacity: 0; }
}

.sec-shield {
  transform-origin: center;
  transform-box: fill-box;
  animation: secShieldBreathe 4.2s ease-in-out infinite;
}
@keyframes secShieldBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.sec-check {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: secCheckDraw 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255, 121, 0, 0.4));
}
@keyframes secCheckDraw {
  0%   { stroke-dashoffset: 70; opacity: 0; }
  10%  { stroke-dashoffset: 70; opacity: 1; }
  35%  { stroke-dashoffset: 0;  opacity: 1; }
  85%  { stroke-dashoffset: 0;  opacity: 1; }
  95%  { stroke-dashoffset: 0;  opacity: 0; }
  100% { stroke-dashoffset: 70; opacity: 0; }
}

.sec-dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: secDotPulse 2.6s ease-in-out infinite;
}
.sec-dot-1 { animation-delay: 0s; }
.sec-dot-2 { animation-delay: 0.5s; }
.sec-dot-3 { animation-delay: 1s; }
.sec-dot-4 { animation-delay: 1.5s; }
@keyframes secDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.55); }
}

.sec-flow {
  stroke-dasharray: 3 4;
  animation: secFlow 3s linear infinite;
}
@keyframes secFlow {
  to { stroke-dashoffset: -70; }
}

@media (prefers-reduced-motion: reduce) {
  .globe-strip,
  .sec-ring, .sec-shield, .sec-check, .sec-dot, .sec-flow { animation: none; }
  .sec-check { stroke-dashoffset: 0; opacity: 1; }
}


/* ---------- 8. Services ---------- */
.ds-service-card {
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: var(--ds-radius);
  padding: 2rem 1.75rem;
  transition: transform var(--ds-transition), box-shadow var(--ds-transition), border-color var(--ds-transition);
  position: relative;
  overflow: hidden;
}
.ds-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 3px solid transparent;
  border-radius: var(--ds-radius);
  transition: border-color var(--ds-transition);
  pointer-events: none;
}
.ds-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-lg);
  border-color: var(--ds-gray-300);
}
.ds-service-card:hover::before { border-top-color: var(--ds-orange); }

.ds-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.ds-service-num {
  font-family: var(--ds-font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ds-orange);
  letter-spacing: 0.05em;
}
.ds-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ds-gray-100);
  color: var(--ds-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background var(--ds-transition), color var(--ds-transition);
}
.ds-service-card:hover .ds-service-icon {
  background: var(--ds-orange);
  color: var(--ds-white);
}
.ds-service-title {
  font-family: var(--ds-font);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ds-black);
  margin-bottom: 0.5rem;
}
.ds-service-copy {
  color: var(--ds-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------- 9. AI Section ---------- */
.ds-ai-example {
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--ds-transition-fast), border-color var(--ds-transition-fast);
}
.ds-ai-example:hover {
  transform: translateY(-1px);
  border-color: var(--ds-orange);
}
.ds-ai-example i { font-size: 1.1rem; }

.ds-ai-flow {
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: var(--ds-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ds-shadow);
}
.ds-ai-flow svg { width: 100%; max-height: 560px; }

.signal-flow { filter: drop-shadow(0 0 4px rgba(255,121,0,0.5)); }

/* ---------- 10. Security ---------- */
.ds-security-visual {
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: var(--ds-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ds-shadow-sm);
}

.ds-security-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 500;
  transition: transform var(--ds-transition-fast), border-color var(--ds-transition-fast);
}
.ds-security-item:hover {
  border-color: var(--ds-orange);
  transform: translateY(-1px);
}
.ds-security-item i {
  color: var(--ds-orange);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* ---------- 11. About / Dark section ---------- */
.ds-section-dark {
  background: var(--ds-black);
  color: var(--ds-white);
  overflow: hidden;
  position: relative;
}
.ds-section-dark .ds-h2 { color: var(--ds-white); }

.ds-about-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.035;
  pointer-events: none;
}
.ds-about-bg img { width: 60%; max-width: 700px; filter: brightness(3); }

.ds-principle {
  padding: 2rem 1.75rem;
  border-radius: var(--ds-radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  transition: transform var(--ds-transition), border-color var(--ds-transition), background var(--ds-transition);
}
.ds-principle:hover {
  transform: translateY(-4px);
  border-color: rgba(255,121,0,0.5);
  background: rgba(255,255,255,0.05);
}
.ds-principle-num {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ds-orange);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.ds-principle-title {
  font-family: var(--ds-font);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ds-white);
  margin-bottom: 0.5rem;
}
.ds-principle-copy {
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------- 12. Technologies ---------- */
.ds-tech-card {
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: var(--ds-radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform var(--ds-transition), box-shadow var(--ds-transition), border-color var(--ds-transition);
}
.ds-tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ds-shadow);
  border-color: var(--ds-gray-300);
}
.ds-tech-card-accent {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF7EE 100%);
  border-color: #FFDDB5;
}

.ds-tech-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ds-tech-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ds-black);
  color: var(--ds-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.ds-tech-title {
  font-family: var(--ds-font);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.ds-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ds-chips li {
  background: var(--ds-gray-100);
  color: var(--ds-black);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--ds-transition-fast), color var(--ds-transition-fast), border-color var(--ds-transition-fast);
}
.ds-chips li:hover {
  background: var(--ds-white);
  color: var(--ds-orange);
  border-color: var(--ds-orange);
}

/* ---------- 13. Approach / Timeline ---------- */
.ds-timeline { position: relative; padding: 2rem 0; }

.ds-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  counter-reset: step;
}

.ds-timeline-line {
  position: absolute;
  top: 55px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ds-orange) 15%, var(--ds-orange) 85%, transparent 100%);
  z-index: 0;
}

.ds-timeline-item {
  position: relative;
  padding: 0 0.5rem;
  text-align: center;
  z-index: 1;
}

.ds-timeline-node {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--ds-white);
  border: 2px solid var(--ds-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ds-orange);
  position: relative;
  transition: background var(--ds-transition), color var(--ds-transition), transform var(--ds-transition);
  box-shadow: 0 0 0 6px var(--ds-gray-100);
}
.ds-timeline-item:hover .ds-timeline-node {
  background: var(--ds-orange);
  color: var(--ds-white);
  transform: scale(1.05);
}
.ds-timeline-title {
  font-family: var(--ds-font);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--ds-black);
}
.ds-timeline-copy {
  color: var(--ds-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Mobile timeline */
@media (max-width: 991px) {
  .ds-timeline-list {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 2rem;
  }
  .ds-timeline-line {
    top: 0;
    left: 30px;
    right: auto;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--ds-orange) 10%, var(--ds-orange) 90%, transparent 100%);
  }
  .ds-timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    text-align: left;
    padding: 0;
  }
  .ds-timeline-node { margin: 0; }
  .ds-timeline-body { padding-top: 0.5rem; }
}

/* ---------- 14. Malawi / Africa ---------- */
.ds-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-300);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ds-black);
}
.ds-tag-solid {
  background: var(--ds-black);
  color: var(--ds-white);
  border-color: var(--ds-black);
}

.ds-map-visual {
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: var(--ds-radius-lg);
  padding: 2rem;
  box-shadow: var(--ds-shadow-sm);
}

.pulse-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- 15. Philosophy ---------- */
.ds-quote-mark {
  font-size: 3.5rem;
  color: var(--ds-orange);
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
}
.ds-quote {
  font-family: var(--ds-font);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--ds-black);
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
}

/* ---------- 16. CTA ---------- */
.ds-cta {
  background: var(--ds-orange);
  color: var(--ds-white);
  padding: var(--ds-section-pad) 0;
  position: relative;
  overflow: hidden;
}
.ds-cta-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(0,0,0,0.08), transparent 45%);
  pointer-events: none;
}
.ds-cta-title {
  font-family: var(--ds-font);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--ds-white);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ds-cta-sub {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin: 0;
}

/* ---------- 17. Contact ---------- */
.ds-form {
  background: var(--ds-white);
  border: 1px solid var(--ds-gray-200);
  border-radius: var(--ds-radius-lg);
  padding: 2rem;
  box-shadow: var(--ds-shadow-sm);
}
.ds-form .form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ds-black);
  margin-bottom: 0.4rem;
}
.ds-form .form-control {
  border: 1.5px solid var(--ds-gray-200);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: var(--ds-white);
  transition: border-color var(--ds-transition-fast), box-shadow var(--ds-transition-fast);
}
.ds-form .form-control:focus {
  border-color: var(--ds-orange);
  box-shadow: 0 0 0 4px rgba(255,121,0,0.12);
  outline: none;
}

.ds-form .form-control.is-invalid {
  border-color: #dc3545;
  background-image: none;
}
.ds-form .invalid-feedback { font-size: 0.82rem; }

.ds-form-status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.ds-form-status.is-success {
  display: block;
  background: rgba(25,135,84,0.08);
  color: #0f5132;
  border: 1px solid rgba(25,135,84,0.2);
}
.ds-form-status.is-error {
  display: block;
  background: rgba(220,53,69,0.08);
  color: #842029;
  border: 1px solid rgba(220,53,69,0.2);
}

.ds-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ds-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ds-contact-item > i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ds-gray-100);
  color: var(--ds-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.ds-contact-item > div { display: flex; flex-direction: column; }
.ds-contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-text-muted);
  font-weight: 500;
}
.ds-contact-value {
  font-weight: 500;
  color: var(--ds-black);
  font-size: 1rem;
}
a.ds-contact-value:hover { color: var(--ds-orange); }

/* ---------- 18. Footer ---------- */
.ds-footer {
  background: var(--ds-black);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.ds-footer-tagline {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.ds-footer-title {
  font-family: var(--ds-font);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-white);
  margin-bottom: 1rem;
}
.ds-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ds-footer-list a {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  transition: color var(--ds-transition-fast);
}
.ds-footer-list a:hover { color: var(--ds-orange); }
.ds-footer-list li i { color: var(--ds-orange); }
.ds-footer-note { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.ds-footer-note strong { color: var(--ds-white); }

.ds-footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 3rem 0 1.5rem;
}
.ds-footer-copy,
.ds-footer-meta { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

.ds-social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--ds-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background var(--ds-transition), color var(--ds-transition), transform var(--ds-transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.ds-social:hover {
  background: var(--ds-orange);
  color: var(--ds-white);
  transform: translateY(-2px);
  border-color: var(--ds-orange);
}

/* ---------- 19. Back-to-top ---------- */
.ds-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ds-black);
  color: var(--ds-white);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--ds-transition), transform var(--ds-transition), background var(--ds-transition);
  box-shadow: 0 8px 20px rgba(17,17,17,0.2);
  z-index: 900;
}
.ds-back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ds-back-top:hover { background: var(--ds-orange); }
.ds-back-top:focus-visible { outline: 2px solid var(--ds-orange); outline-offset: 3px; }

/* ---------- 20. Reveal (scroll animation) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--ds-transition-slow), transform var(--ds-transition-slow);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 21. Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .ds-hero { padding-top: calc(var(--ds-section-pad) + 3rem); }
  .ds-hero-visual { margin-top: 2rem; }
}

@media (max-width: 767.98px) {
  html { scroll-padding-top: 76px; }
  .ds-h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .ds-h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .ds-lead { font-size: 1rem; }
  .ds-form { padding: 1.5rem; }
  .ds-cta { text-align: center; }
  .ds-cta .text-lg-end { text-align: center !important; }
  .ds-hero-caption { position: static; margin-top: 1rem; }
}

@media (max-width: 480px) {
  .ds-service-card, .ds-tech-card, .ds-principle { padding: 1.5rem 1.25rem; }
  .btn { padding: 0.7rem 1.25rem; font-size: 0.95rem; }
  .ds-back-top { width: 42px; height: 42px; right: 1rem; bottom: 1rem; }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .signal-dot, .signal-flow { display: none; }
  .pulse-ring, .pulse-dot, .circuit-line, .node-group circle { animation: none; }
}

/* ---------- 23. Focus states ---------- */
a:focus-visible, button:focus-visible, .nav-link:focus-visible, .form-control:focus-visible {
  outline: 2px solid var(--ds-orange);
  outline-offset: 2px;
  border-radius: 6px;
}
.form-control:focus-visible { outline: none; }

/* ---------- 24. Utilities ---------- */
.w-sm-auto { width: 100%; }
@media (min-width: 576px) { .w-sm-auto { width: auto; } }

/* ---------- 23. Hero mobile responsiveness fixes (2026-09-21) ---------- */
@media (max-width: 991.98px) {
  .ds-hero { padding-top: 96px; padding-bottom: 3rem; }
  .ds-hero-banner { min-height: 0; }
  .ds-hero-banner-inner { padding: clamp(1.5rem, 5vw, 2.25rem) clamp(1.1rem, 4vw, 1.75rem); }
}
@media (max-width: 767.98px) {
  .ds-hero { padding-top: 80px; padding-bottom: 2.5rem; }
  .ds-hero-banner { border-radius: 0 0 32px 12px; }
  .ds-hero-banner-inner { padding: 1.75rem 1.15rem 2rem; }
  .ds-hero-content { max-width: 100%; }
  .ds-hero-content .ds-h1 { font-size: clamp(1.75rem, 7.5vw, 2.25rem); line-height: 1.15; margin-bottom: 1rem; }
  .ds-hero-content .ds-h1 br { display: none; }
  .ds-hero-content .ds-lead { font-size: 0.975rem; line-height: 1.6; max-width: 100%; margin-bottom: 0.5rem; }
  .ds-hero-content .ds-eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
  .ds-hero-content .ds-pillars { margin-top: 1.1rem; gap: 0.4rem; }
  .ds-hero-content .ds-pillars li { font-size: 0.925rem; gap: 0.55rem; }
  .ds-hero-banner .d-flex.flex-wrap.gap-3 { flex-direction: column; align-items: stretch; gap: 0.65rem !important; margin-top: 1.25rem !important; }
  .ds-hero-banner .d-flex.flex-wrap.gap-3 .btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
  .ds-hero { padding-top: 72px; padding-bottom: 2rem; }
  .ds-hero-banner { border-radius: 0 0 24px 8px; }
  .ds-hero-banner-inner { padding: 1.5rem 1rem 1.75rem; }
  .ds-hero-content .ds-h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  .ds-hero-content .ds-lead { font-size: 0.925rem; }
  .ds-hero-content .ds-pillars li { font-size: 0.9rem; }
}

/* ---------- 24. Hero mobile visual fixes (2026-09-21 v2) ---------- */
@media (max-width: 767.98px) {
  .ds-hero-banner {
    background-color: #0f0f0f;
    background-image: url('../images/bannerlogo.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .ds-puzzle,
  .ds-africa-outline { display: none !important; }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 100%) !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .ds-hero-banner-inner {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .ds-hero-content .ds-h1,
  .ds-hero-content .ds-lead,
  .ds-hero-content .ds-pillars li,
  .ds-hero-content .ds-eyebrow {
    text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  }
}

/* ---------- 25. Hero mobile blur + darker tint (2026-09-21 v3) ---------- */
@media (max-width: 767.98px) {
  .ds-hero-banner-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%) !important;
    backdrop-filter: blur(8px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(110%) !important;
  }
}

/* ---------- 26. Hero mobile — blur via pseudo-element + force text visible (2026-09-21 v4) ---------- */
@media (max-width: 767.98px) {
  .ds-hero-banner {
    background-image: none !important;
    background-color: #0f0f0f !important;
    position: relative;
    overflow: hidden;
  }
  .ds-hero-banner::before {
    content: '';
    position: absolute;
    inset: -24px;
    background-image: url('../images/bannerlogo.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(10px) brightness(0.45) saturate(115%);
    -webkit-filter: blur(10px) brightness(0.45) saturate(115%);
    z-index: 0;
    pointer-events: none;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    animation: none !important;
    z-index: 1 !important;
  }
  .ds-hero-banner-inner {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    z-index: 2 !important;
    position: relative;
  }
  .ds-hero-content .reveal,
  .ds-hero-content .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
  .ds-hero-content .ds-h1,
  .ds-hero-content .ds-lead,
  .ds-hero-content .ds-pillars li,
  .ds-hero-content .ds-eyebrow {
    text-shadow: 0 2px 6px rgba(0,0,0,0.75);
  }
}

/* ---------- 27. Hero mobile — clearer image + visible ghost button (2026-09-21 v5) ---------- */
@media (max-width: 767.98px) {
  .ds-hero-banner::before {
    filter: blur(5px) brightness(0.65) saturate(115%) !important;
    -webkit-filter: blur(5px) brightness(0.65) saturate(115%) !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.55) 100%) !important;
  }
  .ds-hero-banner .btn-ds-ghost {
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .ds-hero-banner .btn-ds-ghost:hover,
  .ds-hero-banner .btn-ds-ghost:focus {
    background: rgba(255,255,255,0.22) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
  }
}

/* ---------- 28. Hero — apply mobile treatment to all viewports (2026-09-21 v6) ---------- */
.ds-hero-banner {
  background-image: none !important;
  background-color: #0f0f0f !important;
  position: relative;
  overflow: hidden;
}
.ds-hero-banner::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image: url('../images/bannerlogo.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(5px) brightness(0.65) saturate(115%);
  -webkit-filter: blur(5px) brightness(0.65) saturate(115%);
  z-index: 0;
  pointer-events: none;
}
.ds-puzzle,
.ds-africa-outline { display: none !important; }
.ds-hero-banner-tint {
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.55) 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  animation: none !important;
  z-index: 1 !important;
}
.ds-hero-banner-inner {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  z-index: 2 !important;
  position: relative;
}
.ds-hero-content .reveal,
.ds-hero-content .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}
.ds-hero-content .ds-h1,
.ds-hero-content .ds-lead,
.ds-hero-content .ds-pillars li,
.ds-hero-content .ds-eyebrow {
  text-shadow: 0 2px 6px rgba(0,0,0,0.75);
}
.ds-hero-banner .btn-ds-ghost {
  background: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ds-hero-banner .btn-ds-ghost:hover,
.ds-hero-banner .btn-ds-ghost:focus {
  background: rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* ---------- 29. Hero mobile — image first, then words fade in (2026-09-21 v7) ---------- */
@media (max-width: 767.98px) {
  .ds-hero-banner-inner {
    opacity: 0 !important;
    transform: translateY(14px) !important;
    animation: dsMobileContentIn 900ms cubic-bezier(.2,.7,.2,1) 700ms forwards !important;
  }
  .ds-hero-banner::before {
    opacity: 0;
    animation: dsMobileImageIn 600ms ease-out 100ms forwards;
  }
}
@keyframes dsMobileContentIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes dsMobileImageIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .ds-hero-banner-inner { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ds-hero-banner::before { opacity: 1 !important; animation: none !important; }
}

/* ---------- 30. Hero mobile — cinematic intro: clean → blur → text (2026-09-21 v8) ---------- */
@media (max-width: 767.98px) {
  .ds-hero-banner::before {
    filter: blur(0) brightness(1) saturate(110%) !important;
    -webkit-filter: blur(0) brightness(1) saturate(110%) !important;
    opacity: 0;
    animation:
      dsMobileImageFadeIn 600ms ease-out 100ms forwards,
      dsMobileImageBlur 1400ms cubic-bezier(.4,0,.2,1) 1700ms forwards !important;
    -webkit-animation:
      dsMobileImageFadeIn 600ms ease-out 100ms forwards,
      dsMobileImageBlur 1400ms cubic-bezier(.4,0,.2,1) 1700ms forwards !important;
  }
  .ds-hero-banner-tint {
    opacity: 0 !important;
    animation: dsMobileTintIn 1400ms ease-out 1700ms forwards !important;
    -webkit-animation: dsMobileTintIn 1400ms ease-out 1700ms forwards !important;
  }
  .ds-hero-banner-inner {
    opacity: 0 !important;
    transform: translateY(24px) !important;
    animation: dsMobileContentIn 900ms cubic-bezier(.2,.7,.2,1) 2600ms forwards !important;
    -webkit-animation: dsMobileContentIn 900ms cubic-bezier(.2,.7,.2,1) 2600ms forwards !important;
  }
  .ds-hero-content .ds-eyebrow { animation-delay: 2600ms; }
  .ds-hero-content .ds-h1      { animation: dsMobileWordUp 800ms cubic-bezier(.2,.7,.2,1) 2800ms both; }
  .ds-hero-content .ds-lead    { animation: dsMobileWordUp 800ms cubic-bezier(.2,.7,.2,1) 3000ms both; }
  .ds-hero-content .ds-pillars { animation: dsMobileWordUp 800ms cubic-bezier(.2,.7,.2,1) 3200ms both; }
  .ds-hero-banner .d-flex.flex-wrap.gap-3 { animation: dsMobileWordUp 800ms cubic-bezier(.2,.7,.2,1) 3400ms both; }
}
@keyframes dsMobileImageFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes dsMobileImageBlur {
  0%   { filter: blur(0) brightness(1) saturate(110%); -webkit-filter: blur(0) brightness(1) saturate(110%); }
  100% { filter: blur(5px) brightness(0.65) saturate(115%); -webkit-filter: blur(5px) brightness(0.65) saturate(115%); }
}
@keyframes dsMobileTintIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes dsMobileContentIn {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes dsMobileWordUp {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .ds-hero-banner-inner,
  .ds-hero-content .ds-eyebrow,
  .ds-hero-content .ds-h1,
  .ds-hero-content .ds-lead,
  .ds-hero-content .ds-pillars,
  .ds-hero-banner .d-flex.flex-wrap.gap-3 {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .ds-hero-banner::before {
    filter: blur(5px) brightness(0.65) saturate(115%) !important;
    -webkit-filter: blur(5px) brightness(0.65) saturate(115%) !important;
    opacity: 1 !important; animation: none !important;
  }
  .ds-hero-banner-tint { opacity: 1 !important; animation: none !important; }
}

/* ================= 31. Hero — final responsive tier (2026-09-21 v9) =================
   Kills earlier animation experiments, applies per-breakpoint blur + overlay per spec:
   - Desktop:  subtle blur, moderate overlay, team clearly visible
   - Tablet:   slightly more overlay for readability
   - Mobile:   clearer image + smart crop (upper-portion) + strong overlay behind text
   ==================================================================================== */

/* Kill v7/v8 intro animations so text/image show reliably in their final state */
.ds-hero-banner::before,
.ds-hero-banner-tint,
.ds-hero-banner-inner,
.ds-hero-content .ds-eyebrow,
.ds-hero-content .ds-h1,
.ds-hero-content .ds-lead,
.ds-hero-content .ds-pillars,
.ds-hero-banner .d-flex.flex-wrap.gap-3 {
  animation: none !important;
  -webkit-animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Base ::before background image (defaults tuned for desktop) */
.ds-hero-banner::before {
  filter: blur(4px) brightness(0.82) saturate(112%) !important;
  -webkit-filter: blur(4px) brightness(0.82) saturate(112%) !important;
  background-position: center center !important;
}

/* Base tint: horizontal gradient — darker on left where text sits, lighter on right */
.ds-hero-banner-tint {
  background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.18) 100%) !important;
}

/* ---- Large desktop (≥1440px) — most subtle blur, gentlest overlay ---- */
@media (min-width: 1440px) {
  .ds-hero-banner::before {
    filter: blur(4px) brightness(0.85) saturate(112%) !important;
    -webkit-filter: blur(4px) brightness(0.85) saturate(112%) !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.12) 100%) !important;
  }
}

/* ---- Standard desktop (1200-1439px) ---- */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .ds-hero-banner::before {
    filter: blur(4px) brightness(0.82) saturate(112%) !important;
    -webkit-filter: blur(4px) brightness(0.82) saturate(112%) !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%) !important;
  }
}

/* ---- Small desktop / large tablet (992-1199px) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .ds-hero-banner::before {
    filter: blur(5px) brightness(0.8) saturate(112%) !important;
    -webkit-filter: blur(5px) brightness(0.8) saturate(112%) !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%) !important;
  }
}

/* ---- Tablet portrait (768-991px) — slightly more overlay, crop to upper portion ---- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .ds-hero-banner::before {
    filter: blur(5px) brightness(0.78) saturate(112%) !important;
    -webkit-filter: blur(5px) brightness(0.78) saturate(112%) !important;
    background-position: center 38% !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.62) 100%) !important;
  }
}

/* ---- Mobile large (481-767px) — clear image, faces preserved via upper crop ---- */
@media (min-width: 481px) and (max-width: 767.98px) {
  .ds-hero-banner::before {
    filter: blur(4px) brightness(0.78) saturate(112%) !important;
    -webkit-filter: blur(4px) brightness(0.78) saturate(112%) !important;
    background-position: center 35% !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%) !important;
  }
}

/* ---- Mobile small (≤480px) — clearest image, strongest overlay for readability ---- */
@media (max-width: 480px) {
  .ds-hero-banner::before {
    filter: blur(4px) brightness(0.78) saturate(112%) !important;
    -webkit-filter: blur(4px) brightness(0.78) saturate(112%) !important;
    background-position: center 30% !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.72) 100%) !important;
  }
}

/* ================= 32. Hero — clear team photo, asymmetric text protection (2026-09-21 v10) =================
   Removes ALL blur and image darkening. Team photo is fully sharp at native brightness.
   Text readability comes from an asymmetric left-heavy gradient + text-shadows, not from dimming the whole photo.
   ============================================================================================================== */

/* Sharp photograph — no blur, no brightness reduction, no scale/opacity tricks */
.ds-hero-banner::before {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  inset: 0 !important;
  background-position: center center !important;
  background-size: cover !important;
}

/* Kill any leftover animation state on inner content */
.ds-hero-banner-inner,
.ds-hero-banner-tint,
.ds-hero-content .ds-eyebrow,
.ds-hero-content .ds-h1,
.ds-hero-content .ds-lead,
.ds-hero-content .ds-pillars,
.ds-hero-banner .d-flex.flex-wrap.gap-3 {
  animation: none !important;
  -webkit-animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Text-shadow provides local contrast — image stays bright everywhere else */
.ds-hero-content .ds-h1,
.ds-hero-content .ds-lead,
.ds-hero-content .ds-pillars li,
.ds-hero-content .ds-eyebrow {
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* ---- Large desktop (≥1440px) — text on left, photo clear on right ---- */
@media (min-width: 1440px) {
  .ds-hero-banner-tint {
    background: linear-gradient(90deg,
      rgba(0,0,0,0.60) 0%,
      rgba(0,0,0,0.35) 40%,
      rgba(0,0,0,0.10) 75%,
      rgba(0,0,0,0.00) 100%
    ) !important;
  }
}

/* ---- Standard desktop (1200-1439px) ---- */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .ds-hero-banner-tint {
    background: linear-gradient(90deg,
      rgba(0,0,0,0.62) 0%,
      rgba(0,0,0,0.38) 42%,
      rgba(0,0,0,0.12) 75%,
      rgba(0,0,0,0.00) 100%
    ) !important;
  }
}

/* ---- Small desktop / large tablet (992-1199px) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .ds-hero-banner-tint {
    background: linear-gradient(90deg,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.42) 45%,
      rgba(0,0,0,0.18) 78%,
      rgba(0,0,0,0.05) 100%
    ) !important;
  }
}

/* ---- Tablet portrait (768-991px) — diagonal so both text and team stay legible ---- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .ds-hero-banner::before {
    background-position: center 38% !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(160deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.30) 45%,
      rgba(0,0,0,0.15) 80%,
      rgba(0,0,0,0.10) 100%
    ) !important;
  }
}

/* ---- Mobile large (481-767px) — clear photo, gentle bottom fade for content ---- */
@media (min-width: 481px) and (max-width: 767.98px) {
  .ds-hero-banner::before {
    background-position: center 35% !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.30) 40%,
      rgba(0,0,0,0.55) 100%
    ) !important;
  }
}

/* ---- Mobile small (≤480px) — smart crop keeps faces visible; text protected by shadow + soft bottom gradient ---- */
@media (max-width: 480px) {
  .ds-hero-banner::before {
    background-position: center 30% !important;
  }
  .ds-hero-banner-tint {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.35) 40%,
      rgba(0,0,0,0.60) 100%
    ) !important;
  }
}

/* ================= 33. Hero — localized text-protection panels (2026-09-21 v11) =================
   Photo stays clear. Each text element gets its own subtle dark-glass panel sized to its content.
   Removes the wide overlay in favor of per-element frosted backgrounds.
   =============================================================================================== */

/* Drop the wide overlay to a whisper — panels now do the work */
.ds-hero-banner-tint {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.05) 45%,
    rgba(0,0,0,0.00) 75%
  ) !important;
}

/* Eyebrow: tight rounded pill */
.ds-hero-content .ds-eyebrow,
.ds-hero-banner .ds-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(6px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(6px) saturate(120%) !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
}
.ds-hero-content .ds-eyebrow .ds-eyebrow-dot {
  background: var(--ds-orange) !important;
}

/* H1: shrink-to-content panel, soft horizontal gradient (not a hard box) */
.ds-hero-content .ds-h1 {
  display: inline-block !important;
  padding: 10px 18px 12px 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(100deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.42) 50%,
    rgba(0,0,0,0.22) 100%
  ) !important;
  backdrop-filter: blur(4px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(4px) saturate(115%) !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}
.ds-hero-content .ds-h1 .text-ds-orange { color: var(--ds-orange) !important; }

/* Lead: subtle translucent panel, hugs content */
.ds-hero-content .ds-lead {
  display: inline-block !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,0.38) !important;
  backdrop-filter: blur(6px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(6px) saturate(115%) !important;
  max-width: 62ch !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

/* Pillars: single subtle panel behind the whole list */
.ds-hero-content .ds-pillars {
  display: inline-flex !important;
  flex-direction: column !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,0.36) !important;
  backdrop-filter: blur(6px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(6px) saturate(115%) !important;
  gap: 0.55rem !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 1.5rem !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

/* Text shadows (subtle) on all hero copy */
.ds-hero-content .ds-h1,
.ds-hero-content .ds-lead,
.ds-hero-content .ds-pillars li,
.ds-hero-content .ds-eyebrow {
  text-shadow: 0 2px 6px rgba(0,0,0,0.55) !important;
}

/* ---- Tablet portrait (768-991px) — slightly tighter panels ---- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .ds-hero-content .ds-h1 {
    padding: 8px 16px 10px 14px !important;
    border-radius: 12px !important;
  }
  .ds-hero-content .ds-lead,
  .ds-hero-content .ds-pillars {
    padding: 10px 14px !important;
    border-radius: 10px !important;
  }
}

/* ---- Mobile large (481-767px) — full-width panels, tighter padding ---- */
@media (min-width: 481px) and (max-width: 767.98px) {
  .ds-hero-banner-tint {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.15) 50%,
      rgba(0,0,0,0.35) 100%
    ) !important;
  }
  .ds-hero-content .ds-eyebrow {
    padding: 5px 12px !important;
    font-size: 0.7rem !important;
  }
  .ds-hero-content .ds-h1 {
    padding: 8px 14px 10px 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(105deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.45) 60%,
      rgba(0,0,0,0.35) 100%
    ) !important;
  }
  .ds-hero-content .ds-lead {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,0.42) !important;
    max-width: 100% !important;
  }
  .ds-hero-content .ds-pillars {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,0.42) !important;
    gap: 0.4rem !important;
  }
}

/* ---- Mobile small (≤480px) — strongest text panels since photo dominates ---- */
@media (max-width: 480px) {
  .ds-hero-banner-tint {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.12) 0%,
      rgba(0,0,0,0.18) 50%,
      rgba(0,0,0,0.40) 100%
    ) !important;
  }
  .ds-hero-content .ds-eyebrow {
    padding: 5px 11px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.11em !important;
  }
  .ds-hero-content .ds-h1 {
    padding: 8px 12px 10px 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(110deg,
      rgba(0,0,0,0.60) 0%,
      rgba(0,0,0,0.48) 55%,
      rgba(0,0,0,0.38) 100%
    ) !important;
  }
  .ds-hero-content .ds-lead {
    padding: 10px 13px !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,0.46) !important;
    font-size: 0.925rem !important;
  }
  .ds-hero-content .ds-pillars {
    padding: 10px 13px !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,0.46) !important;
    gap: 0.4rem !important;
  }
}

/* ================= 34. Hero — premium jigsaw puzzle assembly loader (2026-09-21 v12) =================
   Re-enables the existing .ds-puzzle DOM. Pieces show fragments of bannerlogo.jpg (single asset via CSS
   sprite technique — no image copies), assemble from scattered positions, close their gap, then the
   whole puzzle layer fades out revealing the clean base ::before image behind it.
   ==================================================================================================== */

/* Un-hide the puzzle (v6 set it display:none). Solid background covers the base image during assembly. */
.ds-hero-banner .ds-puzzle {
  display: grid !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 6px;
  padding: 0;
  background-color: #0f0f0f;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  animation:
    dsPuzzleGapClose 350ms cubic-bezier(0.22, 1, 0.36, 1) 1050ms forwards,
    dsPuzzleFadeOut 400ms ease-out 1500ms forwards;
  will-change: opacity;
}

.ds-hero-banner .ds-puzzle-piece {
  background-image: url('../images/bannerlogo.jpg') !important;
  background-size: 400% 300% !important;
  background-position: calc(var(--c, 0) * (100% / 3)) calc(var(--r, 0) * (100% / 2)) !important;
  background-repeat: no-repeat !important;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scale(0.86);
  animation:
    dsPuzzleAssemble 1100ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 40ms + 60ms) forwards,
    dsPuzzleFlatten 300ms cubic-bezier(0.22, 1, 0.36, 1) 1250ms forwards;
  will-change: transform, opacity, border-radius, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes dsPuzzleAssemble {
  0%   { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scale(0.86); }
  18%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes dsPuzzleFlatten {
  0%   { border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.06); }
  100% { border-radius: 0;   box-shadow: none; }
}

@keyframes dsPuzzleGapClose {
  0%   { gap: 6px; }
  100% { gap: 0; }
}

@keyframes dsPuzzleFadeOut {
  0%   { opacity: 1; }
  99%  { visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* Tablet — same grid, slightly smaller gap */
@media (max-width: 991.98px) {
  .ds-hero-banner .ds-puzzle { gap: 5px; }
  .ds-hero-banner .ds-puzzle-piece { border-radius: 7px; }
}

/* Mobile — reduce gap + shadow footprint so the smaller pieces still look clean */
@media (max-width: 767.98px) {
  .ds-hero-banner .ds-puzzle { gap: 4px; }
  .ds-hero-banner .ds-puzzle-piece {
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
  }
}

/* Reduced motion — skip the puzzle entirely, base image shows immediately */
@media (prefers-reduced-motion: reduce) {
  .ds-hero-banner .ds-puzzle { display: none !important; }
  .ds-hero-banner .ds-puzzle-piece { animation: none !important; }
}

/* ================= 35. Security section — mobile stacking order (2026-09-21 v13) =================
   Desktop layout unchanged (Bootstrap `order-lg-*` still drives text-left / shield-right).
   On <992px, force content column first and shield column second. Also size the shield sensibly.
   ================================================================================================ */
@media (max-width: 991.98px) {
  #security .row.align-items-center {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  #security .col-lg-7.order-lg-1 { order: 1 !important; }
  #security .col-lg-5.order-lg-2 { order: 2 !important; margin-top: 2.75rem !important; }

  #security .ds-security-visual {
    max-width: 360px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0;
  }
  #security .ds-security-visual svg {
    width: 100%;
    height: auto;
    display: block;
  }
}
@media (max-width: 767.98px) {
  #security .col-lg-5.order-lg-2 { margin-top: 2.5rem !important; }
  #security .ds-security-visual { max-width: 320px; }
}
@media (max-width: 480px) {
  #security .col-lg-5.order-lg-2 { margin-top: 2.25rem !important; }
  #security .ds-security-visual { max-width: 260px; }
}
