/* ==========================================================================
   Skyplan — Home / carousel hero
   Mobile-first, full-bleed, ~84vh vertical occupation and 100% horizontal width.
   ========================================================================== */
.top-carousel-section {
  position: relative;
  width: 100%;
  min-height: 84svh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #07101f;
}
.service-carousel--hero {
  position: relative;
  width: 100%;
  height: max(84svh, 680px);
  min-height: 680px;
  overflow: hidden;
  border-radius: 0;
  background: #07101f;
  box-shadow: none;
  isolation: isolate;
}
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding: calc(var(--header-height) + 34px) clamp(20px, 6vw, 92px) 128px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(18px) scale(0.985);
  transition: opacity 0.42s ease, transform 0.42s ease, visibility 0.42s ease;
  overflow: hidden;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 1;
}
.slide-background,
.slide-background::before,
.slide-background::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}
.slide-background {
  z-index: -3;
  background: #07101f;
}
.slide-background::before {
  z-index: -2;
  opacity: 0.95;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 74%);
}
.slide-background::after {
  z-index: -1;
  backdrop-filter: saturate(125%);
}
.slide-ai .slide-background { background: radial-gradient(circle at 74% 24%, rgba(42, 245, 255, .36), transparent 27%), radial-gradient(circle at 18% 34%, rgba(55, 105, 255, .38), transparent 33%), linear-gradient(135deg, #071426 0%, #12306d 48%, #0a8292 100%); }
.slide-pmo .slide-background { background: radial-gradient(circle at 78% 18%, rgba(255, 194, 102, .32), transparent 28%), radial-gradient(circle at 18% 72%, rgba(57, 113, 255, .36), transparent 35%), linear-gradient(135deg, #0b1024 0%, #243a7a 48%, #7b3ff2 100%); }
.slide-devsecops .slide-background { background: radial-gradient(circle at 80% 58%, rgba(62, 255, 170, .28), transparent 31%), radial-gradient(circle at 20% 20%, rgba(69, 138, 255, .38), transparent 33%), linear-gradient(135deg, #07101f 0%, #0f3d55 50%, #0a7a5b 100%); }
.slide-experts .slide-background { background: radial-gradient(circle at 74% 32%, rgba(255, 110, 178, .30), transparent 28%), radial-gradient(circle at 14% 70%, rgba(52, 211, 255, .31), transparent 34%), linear-gradient(135deg, #101323 0%, #3b286b 50%, #104e78 100%); }
.slide-readiness .slide-background { background: radial-gradient(circle at 72% 30%, rgba(87, 239, 255, .40), transparent 28%), radial-gradient(circle at 22% 68%, rgba(255, 220, 115, .24), transparent 32%), linear-gradient(135deg, #061225 0%, #123d8a 48%, #13b8c4 100%); }
.slide-content {
  width: min(100%, 780px);
  max-width: 780px;
  z-index: 1;
}
.slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.78);
  font-size: clamp(.7rem, 1.8vw, .84rem);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.slide-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
}
.slide-title {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 5.7vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 22px 70px rgba(0,0,0,.24);
}

.slide-title .title-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.slide-title .title-space {
  display: inline-block;
  width: .24em;
}
.slide-content p {
  max-width: 660px;
  margin: clamp(16px, 2.2vw, 24px) 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(.88rem, 1.55vw, 1.02rem);
  line-height: 1.54;
}
.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 32px);
}
.btn-light {
  color: #061225;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.20);
}
.btn-ghost-light {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
  backdrop-filter: blur(12px);
}
.slide-visual {
  position: absolute;
  right: clamp(-110px, -8vw, 40px);
  bottom: clamp(74px, 10vw, 108px);
  width: clamp(240px, 34vw, 500px);
  height: clamp(240px, 34vw, 500px);
  z-index: 0;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 100px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.ai-orbit { border-radius: 50%; }
.ai-orbit span { position: absolute; inset: 14%; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.ai-orbit span:nth-child(2) { inset: 27%; transform: rotate(40deg); border-color: rgba(125,221,229,.58); }
.ai-orbit span:nth-child(3) { inset: 41%; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(125,221,229,.75)); box-shadow: 0 0 80px rgba(125,221,229,.62); }
.ai-orbit small { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.28); }
.pmo-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 18px); padding: clamp(18px, 3vw, 32px); }
.pmo-board i { border-radius: 22px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.pmo-board strong { position: absolute; inset: 38% 18%; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.86), rgba(125,221,229,.65)); box-shadow: 0 20px 70px rgba(0,0,0,.18); }
.pipeline-flow { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 20px); padding: 24px; border-radius: 50px; }
.pipeline-flow b { position: relative; width: clamp(42px, 6vw, 74px); height: clamp(42px, 6vw, 74px); border-radius: 20px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.pipeline-flow b:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: clamp(10px, 2vw, 20px); height: 2px; background: rgba(255,255,255,.42); transform: translateY(-50%); }
.experts-stack em { position: absolute; width: 62%; height: 31%; left: 20%; border-radius: 26px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 22px 70px rgba(0,0,0,.16); }
.experts-stack em:nth-child(1) { top: 17%; }
.experts-stack em:nth-child(2) { top: 35%; left: 12%; }
.experts-stack em:nth-child(3) { top: 53%; left: 27%; }
.experts-stack strong { position: absolute; width: 82px; height: 82px; right: 14%; top: 13%; border-radius: 50%; background: rgba(255,255,255,.82); box-shadow: 0 0 55px rgba(255,255,255,.35); }
.readiness-radar { display: grid; place-items: center; border-radius: 50%; }
.readiness-radar span { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.42); }
.readiness-radar span:nth-child(1) { inset: 10%; }
.readiness-radar span:nth-child(2) { inset: 25%; }
.readiness-radar span:nth-child(3) { inset: 40%; }
.readiness-radar strong { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(96px, 12vw, 148px); height: clamp(96px, 12vw, 148px); border-radius: 50%; color: #061225; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; background: linear-gradient(135deg, #fff, #7ddde5); box-shadow: 0 0 110px rgba(125,221,229,.7); }

/* Visual metaphors with more intentional abstract movement. */
.pmo-board {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
  overflow: visible;
}
.pmo-board::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.85), rgba(255,199,107,.7));
  box-shadow: 0 0 34px rgba(255,255,255,.28);
}
.pmo-board::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 18%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: rgba(255,208,117,.95);
  box-shadow: 0 0 50px rgba(255,208,117,.28);
}
.pmo-board i {
  position: relative;
  min-height: 96px;
}
.pmo-board i::before,
.pmo-board i::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.48);
}
.pmo-board i::before { top: 28%; }
.pmo-board i::after { top: 48%; right: 34%; opacity: .7; }
.pmo-board strong {
  inset: auto 14% 15% auto;
  width: 112px;
  height: 38px;
  display: block;
  transform: rotate(-7deg);
}
.pipeline-flow::before {
  content: "SECURITY GATES";
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.58);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.pipeline-flow b::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}
.experts-stack::before {
  content: "";
  position: absolute;
  inset: 18% 13% auto auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.42);
  background: radial-gradient(circle, rgba(255,255,255,.72) 0 14%, transparent 16% 100%);
  box-shadow: 0 0 60px rgba(255,255,255,.18);
}
.experts-stack::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 18%;
  bottom: 19%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(52,211,255,.85), rgba(255,110,178,.8));
}
.experts-stack em::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 20px 0 0 rgba(255,255,255,.42), 40px 0 0 rgba(255,255,255,.26);
}
.experts-stack em::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 24px;
  bottom: 22px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
}
.carousel-controls {
  position: absolute;
  z-index: 5;
  left: clamp(20px, 6vw, 92px);
  right: clamp(20px, 6vw, 92px);
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.carousel-btn,
.carousel-dot { pointer-events: auto; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.carousel-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.44); }
.carousel-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(4, 13, 26, .18);
  backdrop-filter: blur(14px);
}
.carousel-dot {
  position: relative;
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
}
.carousel-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: inherit;
  background: #fff;
}
.carousel-dot.is-active { background: rgba(255,255,255,.34); }
.carousel-dot.is-active::after { animation: dotProgress 5s linear forwards; }
.carousel-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 94px;
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, 12px);
  border: 0;
  color: rgba(255,255,255,.92);
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.carousel-scroll-cue.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.carousel-scroll-cue span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.carousel-scroll-cue svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; animation: scrollCue 1.05s ease-in-out infinite alternate; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Fallback CSS animations when GSAP is unavailable or delayed. */
.animate-ai .slide-title { animation: titleLift .72s cubic-bezier(.16,1,.3,1) both; }
.animate-ai .title-word { animation: wordWave .9s cubic-bezier(.16,1,.3,1) both; }
.animate-ai .ai-orbit span:nth-child(3) { animation: skyPulse 1.8s ease-in-out infinite alternate; }
.animate-ai .ai-orbit small { animation: slowSpin 14s linear infinite; }
.animate-pmo .slide-title { animation: titleSlice .78s cubic-bezier(.16,1,.3,1) both; }
.animate-pmo .title-word { animation: wordDecision .8s cubic-bezier(.16,1,.3,1) both; }
.animate-pmo .pmo-board i { animation: skyRise .72s ease both; }
.animate-pmo .pmo-board i:nth-child(2) { animation-delay: .08s; }
.animate-pmo .pmo-board i:nth-child(3) { animation-delay: .16s; }
.animate-pmo .pmo-board i:nth-child(4) { animation-delay: .24s; }
.animate-devsecops .slide-title { animation: titleReveal .82s cubic-bezier(.16,1,.3,1) both; }
.animate-devsecops .title-word { animation: wordPipeline .8s cubic-bezier(.16,1,.3,1) both; }
.animate-devsecops .pipeline-flow b { animation: skyPop .58s ease both; }
.animate-devsecops .pipeline-flow b:nth-child(2) { animation-delay: .08s; }
.animate-devsecops .pipeline-flow b:nth-child(3) { animation-delay: .16s; }
.animate-devsecops .pipeline-flow b:nth-child(4) { animation-delay: .24s; }
.animate-devsecops .pipeline-flow b:nth-child(5) { animation-delay: .32s; }
.animate-experts .slide-title { animation: titleBlur .76s cubic-bezier(.16,1,.3,1) both; }
.animate-experts .title-word { animation: wordResolve .82s cubic-bezier(.16,1,.3,1) both; }
.animate-experts .experts-stack em { animation: skyStack .8s cubic-bezier(.2,.8,.2,1) both; }
.animate-experts .experts-stack em:nth-child(2) { animation-delay: .1s; }
.animate-experts .experts-stack em:nth-child(3) { animation-delay: .2s; }
.animate-readiness .slide-title { animation: titleScale .78s cubic-bezier(.16,1,.3,1) both; }
.animate-readiness .title-word { animation: wordReadiness .9s cubic-bezier(.16,1,.3,1) both; }
.animate-readiness .readiness-radar strong { animation: skyPulse 1.4s ease-in-out infinite alternate; }
.animate-readiness .readiness-radar span { animation: skyRadar 1s ease both; }

.slide-title .title-word:nth-child(1) { animation-delay: .02s; }
.slide-title .title-word:nth-child(2) { animation-delay: .06s; }
.slide-title .title-word:nth-child(3) { animation-delay: .10s; }
.slide-title .title-word:nth-child(4) { animation-delay: .14s; }
.slide-title .title-word:nth-child(5) { animation-delay: .18s; }
.slide-title .title-word:nth-child(6) { animation-delay: .22s; }
.slide-title .title-word:nth-child(7) { animation-delay: .26s; }
.slide-title .title-word:nth-child(8) { animation-delay: .30s; }
.slide-title .title-word:nth-child(9) { animation-delay: .34s; }
.slide-title .title-word:nth-child(10) { animation-delay: .38s; }
.slide-title .title-word:nth-child(11) { animation-delay: .42s; }
.slide-title .title-word:nth-child(12) { animation-delay: .46s; }

@keyframes wordWave { from { opacity: 0; transform: translateY(28px) rotateX(58deg); filter: blur(8px); } to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); } }
@keyframes wordDecision { from { opacity: 0; transform: translateX(-34px) skewX(-8deg); filter: blur(6px); } to { opacity: 1; transform: translateX(0) skewX(0); filter: blur(0); } }
@keyframes wordPipeline { from { opacity: 0; transform: translateY(-22px) scale(.92); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 0 0 0); } }
@keyframes wordResolve { from { opacity: 0; transform: translate(24px, 18px) rotate(-2deg); filter: blur(12px); } to { opacity: 1; transform: translate(0, 0) rotate(0); filter: blur(0); } }
@keyframes wordReadiness { from { opacity: 0; transform: scale(.82) translateY(18px); filter: blur(7px); } to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
@keyframes dotProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scrollCue { from { transform: translateY(0); } to { transform: translateY(8px); } }
@keyframes slowSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes titleLift { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes titleSlice { from { opacity: 0; transform: translateX(-44px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); } }
@keyframes titleReveal { from { opacity: 0; letter-spacing: -.13em; clip-path: inset(0 0 100% 0); } to { opacity: 1; letter-spacing: -.045em; clip-path: inset(0 0 0 0); } }
@keyframes titleBlur { from { opacity: 0; filter: blur(16px); transform: translateY(24px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes titleScale { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes skyPulse { from { transform: scale(.96); } to { transform: scale(1.045); } }
@keyframes skyRise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes skyPop { from { opacity: 0; transform: translateY(18px) scale(.48); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes skyStack { from { opacity: 0; filter: blur(8px); transform: translateX(56px) rotate(-8deg); } to { opacity: 1; filter: blur(0); transform: translateX(0) rotate(0); } }
@keyframes skyRadar { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }
@media (min-width: 760px) {
  .service-carousel--hero { height: max(84svh, 720px); min-height: 720px; }
  .carousel-slide { grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr); padding-bottom: 112px; }
  .slide-content { padding-right: clamp(20px, 3vw, 56px); }
  .slide-visual { position: relative; right: auto; bottom: auto; justify-self: end; width: min(34vw, 520px); height: min(34vw, 520px); min-width: 310px; min-height: 310px; }
}
@media (min-width: 1180px) {
  .service-carousel--hero { height: 84svh; min-height: 760px; max-height: 980px; }
  .carousel-slide { padding-left: max(92px, calc((100vw - var(--container)) / 2)); padding-right: max(92px, calc((100vw - var(--container)) / 2)); }
  .carousel-controls { left: max(92px, calc((100vw - var(--container)) / 2)); right: max(92px, calc((100vw - var(--container)) / 2)); }
}
@media (max-width: 520px) {
  .service-carousel--hero { height: max(84svh, 660px); min-height: 660px; }
  .carousel-slide { padding-inline: 18px; padding-bottom: 112px; }
  .slide-title { font-size: clamp(1.75rem, 9vw, 2.95rem); line-height: 1.04; }
  .slide-content p { max-width: 94%; }
  .slide-actions .btn { width: 100%; min-height: 44px; }
  .slide-visual { opacity: .34; right: -128px; bottom: 88px; }
  .carousel-controls { left: 18px; right: 18px; bottom: 22px; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-dots { gap: 6px; padding: 8px 9px; }
  .carousel-dot { width: 22px; height: 7px; }
  .carousel-scroll-cue { bottom: 86px; }
  .carousel-scroll-cue span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-dot.is-active::after,
  .carousel-scroll-cue svg,
  .animate-ai .slide-title,
  .animate-pmo .slide-title,
  .animate-devsecops .slide-title,
  .animate-experts .slide-title,
  .animate-readiness .slide-title,
  .animate-ai .ai-orbit span:nth-child(3),
  .animate-ai .ai-orbit small,
  .animate-pmo .pmo-board i,
  .animate-devsecops .pipeline-flow b,
  .animate-experts .experts-stack em,
  .animate-readiness .readiness-radar strong,
  .animate-readiness .readiness-radar span,
  .slide-title .title-word {
    animation: none !important;
    transition: none !important;
  }
}
