/* ==========================================================================
   Homepage-specific styles
   ========================================================================== */

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(54px, 7vw, 92px) 0 clamp(58px, 7vw, 96px);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(820px 440px at 85% 10%, rgba(47, 125, 184, 0.25), transparent 60%),
    radial-gradient(720px 460px at 5% 90%, rgba(141, 198, 63, 0.16), transparent 60%),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(160deg, #07111d 0%, #0c1b2b 55%, #13273d 100%);
  background-size: auto, auto, 24px 24px, auto;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}
.hero-content .eyebrow {
  color: var(--blue-light);
  background: rgba(47, 125, 184, 0.14);
  border-color: rgba(47, 125, 184, 0.28);
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero-content .lead { color: #c8d7e6; max-width: 56ch; margin-bottom: 30px; font-size: 1.18rem; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .btn-primary {
  background-image: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 125, 184, 0.38);
}
.hero .btn-primary:hover {
  background-image: linear-gradient(120deg, #2f7db8 0%, #1e4e79 60%, #8dc63f 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(47, 125, 184, 0.50);
}
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.34); }
.hero .btn-outline:hover { border-color: var(--blue-light); color: #fff; background: rgba(47, 125, 184, 0.14); }

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  max-width: 680px;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: #aebfd0; }
.hero-trust svg { color: var(--green-light); }

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: min(100%, 480px);
}
.hero-panel {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    radial-gradient(circle at 30% 25%, rgba(141,198,63,0.18), transparent 34%),
    radial-gradient(circle at 74% 78%, rgba(47,125,184,0.22), transparent 36%);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-panel::before {
  inset: 12%;
}
.hero-panel::after {
  inset: 25%;
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: 48%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}

/* Capability chips — a consistent wrapped cluster below the logo on ALL screens */
.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 28px; max-width: 460px;
}
.hero-chip {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  padding: 10px 15px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  will-change: transform;
}
.hero-chip svg { width: 19px; height: 19px; color: var(--blue); flex: none; }
.hero-chip span { white-space: nowrap; }
.chip-1 svg { color: var(--green); }
.chip-2 svg { color: var(--blue); }
.chip-3 svg { color: var(--blue-deep); }
.chip-4 svg { color: var(--green-deep); }
.chip-5 svg { color: var(--green); }

.hero-image {
  width: min(100%, 520px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  animation: hero-floating 7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-floating {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-10px) rotate(0.6deg); }
  100% { transform: translateY(6px) rotate(-0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }
}

/* ------------------------------ Stats ----------------------------------- */
.stats-band {
  background: #fff;
  border-radius: 36px;
  margin: 20px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(8, 8, 12, 0.04);
}
@media (min-width: 940px) {
  .stats-band {
    border-radius: 48px;
    margin: 28px 32px;
  }
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 48px 24px;
}
.stat {
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat:hover {
  transform: translateY(-4px);
}
.stat-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-metric);
  font-weight: 700;
  font-size: clamp(3.4rem, 5.5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: transform 0.3s ease;
}
.stat-value span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-value.counter-done {
  animation: stat-celebrate 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stat-celebrate {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.08); filter: drop-shadow(0 4px 14px rgba(47, 125, 184, 0.40)); }
  100% { transform: scale(1); filter: none; }
}
.stat-label {
  font-family: var(--font-head);
  font-weight: 500;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 0.3s ease;
}
.stat:hover .stat-label {
  color: var(--ink);
}

/* ------------------------------ Why us ---------------------------------- */
.home-card-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid rgba(47, 125, 184, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(760px 280px at 8% 0%, rgba(47, 125, 184, 0.14), transparent 64%),
    radial-gradient(720px 300px at 96% 100%, rgba(141, 198, 63, 0.12), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
  box-shadow: 0 18px 48px rgba(8, 8, 12, 0.08);
}
.home-card-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  pointer-events: none;
}
.home-card-panel--services {
  background:
    radial-gradient(760px 280px at 10% 0%, rgba(47, 125, 184, 0.16), transparent 62%),
    radial-gradient(760px 300px at 94% 100%, rgba(141, 198, 63, 0.14), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
  border-color: rgba(47, 125, 184, 0.18);
}
.home-card-panel--process {
  background:
    radial-gradient(760px 280px at 12% 0%, rgba(47, 125, 184, 0.14), transparent 62%),
    radial-gradient(760px 300px at 90% 100%, rgba(141, 198, 63, 0.12), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}
.home-card-panel--portfolio {
  background:
    radial-gradient(760px 280px at 12% 0%, rgba(141, 198, 63, 0.14), transparent 62%),
    radial-gradient(760px 300px at 92% 100%, rgba(47, 125, 184, 0.14), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}
.why-card-grid {
  perspective: 1200px;
}
.why-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(47, 125, 184, 0.16);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 34px 28px;
  box-shadow: 0 12px 34px rgba(8, 8, 12, 0.06);
  transform-style: preserve-3d;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(360px 180px at 18% 0%, rgba(141, 198, 63, 0.32), transparent 64%),
    linear-gradient(135deg, #0c1b2b 0%, #1e4e79 48%, #2f7db8 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.why-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius-lg) - 4px);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.why-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(47, 125, 184, 0.22);
}
.why-card h3,
.why-card p,
.why-card .card-icon {
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.why-card:hover::before,
.why-card:hover::after { opacity: 1; transform: scale(1); }
.why-card:hover h3,
.why-card:hover p { color: #fff; }
.why-card:hover .card-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateZ(20px) scale(1.08);
}

@media (prefers-reduced-motion: no-preference) {
  .why-card {
    animation: why-card-swap 7s ease-in-out infinite;
  }
  .why-card:nth-child(2) { animation-delay: 0.7s; }
  .why-card:nth-child(3) { animation-delay: 1.4s; }
  .why-card-grid:hover .why-card { animation-play-state: paused; }
}

@keyframes why-card-swap {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-6px) translateX(8px); }
  66%      { transform: translateY(5px) translateX(-8px); }
}

/* -------------------------- Home services ------------------------------- */
.home-service-grid {
  perspective: 1200px;
}
.home-service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 230px;
  padding: 34px 30px 30px;
  border: 1px solid rgba(47, 125, 184, 0.16);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 34px rgba(8, 8, 12, 0.06);
  transform-style: preserve-3d;
  transition: transform 0.42s ease, box-shadow 0.42s ease, opacity 0.42s ease, border-color 0.42s ease;
}
.home-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(380px 190px at 12% 0%, rgba(141, 198, 63, 0.32), transparent 62%),
    linear-gradient(135deg, #0c1b2b 0%, #1e4e79 48%, #2f7db8 100%);
  opacity: 0;
  transition: opacity 0.42s ease;
}
.home-service-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius-lg) - 4px);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.home-service-card h3 {
  font-size: 1.24rem;
  margin-bottom: 12px;
  transition: color 0.42s ease, transform 0.42s ease;
}
.home-service-card p {
  transition: color 0.42s ease, transform 0.42s ease;
}
.home-service-card .card-more {
  color: var(--blue-deep);
  font-weight: 600;
  transition: color 0.42s ease, transform 0.42s ease;
}
.home-service-grid:hover .home-service-card:not(:hover) {
  opacity: 0.72;
  transform: scale(0.97);
}
.home-service-card:hover {
  z-index: 3;
  transform: translateY(-14px) rotateX(4deg) scale(1.03);
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(47, 125, 184, 0.22);
}
.home-service-card:hover::before,
.home-service-card:hover::after {
  opacity: 1;
  transform: scale(1);
}
.home-service-card:hover h3,
.home-service-card:hover p,
.home-service-card:hover .card-more {
  color: #fff;
  transform: translateZ(16px);
}

@media (prefers-reduced-motion: no-preference) {
  .home-service-card {
    animation: home-service-card-float 7.4s ease-in-out infinite;
  }
  .home-service-card:nth-child(2n) { animation-delay: 0.75s; }
  .home-service-card:nth-child(3n) { animation-delay: 1.5s; }
  .home-service-grid:hover .home-service-card { animation-play-state: paused; }
}

@keyframes home-service-card-float {
  0%, 100% { translate: 0 0; }
  36%      { translate: 6px -8px; }
  72%      { translate: -6px 5px; }
}

/* ----------------------- Featured impact person ------------------------- */
/* One director on screen at a time, flipping around the vertical axis like a
   turning cylinder. Everything below the .is-live guard is the no-JS layout:
   a plain stacked grid, so all directors stay readable without scripting. */
.director-carousel {
  position: relative;
  max-width: 420px;
  margin: 40px auto 0;
}
.director-stage {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}
.director-nav,
.director-dots { display: none; }

.director-carousel.is-live .director-stage {
  gap: 0;
  perspective: 1500px;
  perspective-origin: 50% 46%;
}
.director-carousel.is-live .director-slide {
  grid-area: 1 / 1;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transition: transform 0.72s cubic-bezier(0.52, 0.02, 0.24, 1),
              opacity 0.42s ease;
}
.director-carousel.is-live .director-slide[data-state="active"] {
  transform: none;
  opacity: 1;
  z-index: 2;
}
.director-carousel.is-live .director-slide[data-state="right"] {
  transform: translateZ(-150px) rotateY(88deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.director-carousel.is-live .director-slide[data-state="left"] {
  transform: translateZ(-150px) rotateY(-88deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
/* Used for a single frame to park a slide on its starting face without
   animating it there. */
.director-carousel.is-live .director-slide.is-instant { transition: none; }

/* The idle float animates `transform` too, which would fight the flip. */
.director-carousel.is-live .director-slide { animation: none; }

.director-carousel.is-live .director-nav {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(47, 125, 184, 0.28);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 8, 12, 0.12);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.director-nav--prev { left: clamp(-54px, -3.4vw, -14px); }
.director-nav--next { right: clamp(-54px, -3.4vw, -14px); }
.director-carousel.is-live .director-nav:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: scale(1.07);
}
.director-carousel.is-live .director-nav:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.director-carousel.is-live .director-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.director-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 125, 184, 0.26);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.director-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--blue);
}
.director-dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.impact-person-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(47, 125, 184, 0.22);
  background:
    radial-gradient(540px 240px at 8% 8%, rgba(141, 198, 63, 0.22), transparent 62%),
    linear-gradient(135deg, #0c1b2b 0%, #162a3f 46%, #07111d 100%);
  box-shadow: 0 16px 38px rgba(8, 8, 12, 0.20);
}
.impact-person-card::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -18%;
  width: 30%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.impact-person-card:hover::before {
  animation: impact-card-shine 0.95s ease both;
}
.impact-person-media {
  overflow: hidden;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  aspect-ratio: 4 / 5;
  background: #08080c;
}
.impact-person-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}
.impact-person-card:hover .impact-person-media img {
  transform: scale(1.045);
}
.impact-person-content {
  align-self: end;
  padding: 4px 8px 8px;
}
.impact-person-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-family: var(--font-badge);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-light);
}
.impact-person-content h3 {
  color: #fff;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-bottom: 0;
}
.impact-person-content p {
  max-width: 54ch;
  margin: 0;
  color: #c7d6e4;
  font-size: 1.03rem;
}

@media (prefers-reduced-motion: no-preference) {
  .impact-person-card {
    animation: impact-card-float 7.6s ease-in-out infinite;
  }
}

@keyframes impact-card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@keyframes impact-card-shine {
  from { transform: translateX(0) skewX(-18deg); opacity: 0; }
  34%  { opacity: 1; }
  to   { transform: translateX(520%) skewX(-18deg); opacity: 0; }
}

/* --------------------------- Capabilities ------------------------------- */
.capability-section { padding-top: 0; }
.capability-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.capability-chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cap-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; transition: var(--transition);
}
.cap-chip:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(47, 125, 184, 0.15); }
.cap-abbr {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--grad); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
}
.cap-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.cap-count { color: var(--muted); font-size: 0.85rem; }

/* ----------------------------- Process ---------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 125, 184, 0.16);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(8, 8, 12, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(360px 180px at 20% 0%, rgba(141, 198, 63, 0.32), transparent 62%),
    linear-gradient(135deg, #0c1b2b 0%, #1e4e79 52%, #2f7db8 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.process-step::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius-lg) - 4px);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.process-step:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(47, 125, 184, 0.22);
}
.process-step:hover::before,
.process-step:hover::after { opacity: 1; transform: scale(1); }
.process-step:hover h3,
.process-step:hover p { color: #fff; }
.process-step:hover .process-num { color: var(--green-light); }
.process-step:hover .process-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.08) rotate(-3deg);
}
.process-num {
  font-family: var(--font-metric);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  transition: color 0.35s ease;
}
.process-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(47, 125, 184, 0.12);
  color: var(--blue-deep);
  margin-bottom: 16px;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.process-step h3 { font-size: 1.18rem; margin-bottom: 8px; transition: color 0.35s ease; }
.process-step p { margin: 0; font-size: 0.96rem; transition: color 0.35s ease; }

@keyframes process-shine {
  from { transform: translateX(0) skewX(-18deg); opacity: 0; }
  35%  { opacity: 1; }
  to   { transform: translateX(360%) skewX(-18deg); opacity: 0; }
}

/* --------------------------- Responsive --------------------------------- */
@media (max-width: 940px) {
  .hero {
    min-height: 0;
    padding-top: 46px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-content {
    max-width: 760px;
    text-align: center;
    margin-inline: auto;
  }
  .hero-content h1,
  .hero-content .lead,
  .hero-trust {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content h1 { max-width: 15ch; }
  .hero-cta,
  .hero-trust {
    justify-content: center;
  }
  .hero-visual { order: -1; justify-self: center; }
  .hero-panel { max-width: 340px; }
  .hero-image { width: min(82vw, 380px); border-radius: 20px; }
  .impact-person-media { max-width: 420px; width: 100%; margin-inline: auto; }
  .director-carousel { max-width: 360px; }
  .director-nav--prev { left: -10px; }
  .director-nav--next { right: -10px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 560px) {
  .hero { padding: 34px 0 50px; }
  .hero-panel { width: min(78vw, 285px); border-radius: 18px; }
  .hero-image { width: min(78vw, 300px); border-radius: 18px; }
  .hero-chips { gap: 9px; margin-top: 18px; }
  .hero-chip { font-size: 0.76rem; padding: 8px 11px; }
  .hero-chip svg { width: 17px; height: 17px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hero-cta .btn { justify-content: center; width: 100%; white-space: normal; text-align: center; }
  .hero-trust { display: grid; grid-template-columns: 1fr; gap: 9px; justify-items: center; }
  .home-card-panel { padding: 14px; }
  .home-card-panel::before { inset: 7px; }
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .director-carousel {
    max-width: 100%;
    padding-inline: 4px;
  }
  .director-carousel.is-live .director-nav {
    width: 38px;
    height: 38px;
  }
  .director-nav--prev { left: 4px; }
  .director-nav--next { right: 4px; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
    padding: 28px 0;
  }
  .stat-value { font-size: 1.9rem; }
  .stat-label { font-size: 0.85rem; margin-top: 6px; }
  .hero-chip span { white-space: normal; }
}
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 768px) {
  .home-service-grid:hover .home-service-card:not(:hover) {
    opacity: 1;
    transform: none;
  }
  .home-service-card:hover {
    transform: translateY(-4px);
  }
}

/* ---------------------- Hero page-load entrance ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { opacity: 0; animation: biz-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-content .eyebrow   { animation-delay: 0.15s; }
  .hero-content h1         { animation-delay: 0.28s; }
  .hero-content .lead      { animation-delay: 0.44s; }
  .hero-content .hero-cta  { animation-delay: 0.58s; }
  .hero-content .hero-trust{ animation-delay: 0.72s; }

  .hero-visual { opacity: 0; animation: biz-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both; }
  .hero-bg     { opacity: 0; animation: biz-fade 1.2s ease both; }

  /* Gentle, staggered bounce on the capability chips */
  .hero-chip { animation: biz-chip-bounce 2.6s ease-in-out infinite; }
  .chip-1 { animation-delay: 0s; }
  .chip-2 { animation-delay: 0.2s; }
  .chip-3 { animation-delay: 0.4s; }
  .chip-4 { animation-delay: 0.6s; }
  .chip-5 { animation-delay: 0.8s; }
}

@keyframes biz-chip-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ==========================================================================
   Home Page — Dark Mode Support
   ========================================================================== */
html[data-theme="dark"] .stats-band {
  background: #0c1b2b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .stat-value {
  color: #ffffff;
}
html[data-theme="dark"] .stat-label {
  color: #8ba2b8;
}

html[data-theme="dark"] .home-card-panel {
  background:
    radial-gradient(760px 280px at 12% 0%, rgba(47, 125, 184, 0.18), transparent 62%),
    radial-gradient(760px 300px at 90% 100%, rgba(141, 198, 63, 0.14), transparent 62%),
    linear-gradient(135deg, #091726, #0c1b2b);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .home-card-panel--portfolio {
  background:
    radial-gradient(760px 280px at 12% 0%, rgba(141, 198, 63, 0.16), transparent 62%),
    radial-gradient(760px 300px at 92% 100%, rgba(47, 125, 184, 0.16), transparent 62%),
    linear-gradient(135deg, #091726, #0c1b2b);
}

html[data-theme="dark"] .why-card {
  background: #0c1b2b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .why-card h3 {
  color: #ffffff;
}
html[data-theme="dark"] .why-card p {
  color: #c7d6e4;
}

html[data-theme="dark"] .home-service-card {
  background: #0c1b2b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .home-service-card h3 {
  color: #ffffff;
}
html[data-theme="dark"] .home-service-card p {
  color: #c7d6e4;
}

html[data-theme="dark"] .process-step {
  background: #0c1b2b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .process-step h3 {
  color: #ffffff;
}
html[data-theme="dark"] .process-step p {
  color: #c7d6e4;
}

html[data-theme="dark"] .cap-chip {
  background: #0c1b2b;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .cap-name {
  color: #ffffff;
}
html[data-theme="dark"] .cap-count {
  color: #8ba2b8;
}

html[data-theme="dark"] .director-carousel.is-live .director-nav {
  background: #0c1b2b;
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .director-carousel.is-live .director-nav:hover {
  background: var(--blue);
  color: #ffffff;
}

