/* Slim custom layer — animations & effects Tailwind CDN can't cover alone */

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #33d1ff;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link.is-active::after {
  width: calc(100% + 8px);
}

@media (min-width: 768px) {
  .nav-link {
    height: 100%;
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(0, 0, 0, 0.2) 75%);
}

.about-bg>img {
  position: relative;
  z-index: 0;
}

.about-content {
  z-index: 1;
  filter: brightness(1.18) contrast(1.04);
}

.services-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 20%, transparent 75%, rgba(0, 0, 0, 0.45) 100%);
}

.process-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 15%, transparent 70%, rgba(0, 0, 0, 0.4) 100%);
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Section 3 — logo travels along bg3 outer ring (wide ellipse) */
.orbit-stage {
  position: absolute;
  left: 50%;
  /* Shifted down so bottom stays on the ring while top pulls in */
  top: 58%;
  /* Wider than tall: left/right further out, top closer to the ring */
  width: 50%;
  aspect-ratio: 1.5 / 1;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.orbit-path {
  position: absolute;
  inset: 0;
  animation: orbitSpin 28s linear infinite;
}

.orbit-logo-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  animation: orbitSpinReverse 28s linear infinite;
}

.orbit-logo {
  display: block;
  width: clamp(64px, 5.2vw, 96px);
  height: auto;
  animation: pulseGlow 3.5s ease-in-out infinite;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(51, 209, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 55%;
  height: 55%;
}

.ring-2 {
  width: 78%;
  height: 78%;
  animation: spin 28s linear infinite;
}

.ring-3 {
  width: 100%;
  height: 100%;
  border-style: dotted;
  opacity: 0.5;
  animation: spin-reverse 40s linear infinite;
}

.float-card {
  will-change: transform;
}

.float-card.is-visible.fc-1 {
  animation: floatScale110 5.5s ease-in-out infinite;
}

.float-card.is-visible.fc-2 {
  animation: floatScale105 6.2s ease-in-out 0.4s infinite;
}

.float-card.is-visible.fc-3 {
  animation: floatScale110 5.8s ease-in-out 0.8s infinite;
}

.float-card.is-visible.fc-4 {
  animation: floatScale105 6.5s ease-in-out 1.1s infinite;
}

.partners-track {
  animation: marquee 32s linear infinite;
}

.partners-track>img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: brightness(1.35);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .partners-track>img {
    height: 2.5rem;
  }
}

/* Section 5 — center-peek carousel */
.carousel-viewport {
  overflow: hidden;
  contain: layout paint;
}

.carousel-track {
  position: relative;
  will-change: transform;
  backface-visibility: hidden;
  transition: none;
}

.carousel-slide {
  flex: 0 0 860px;
  opacity: 0.4;
  transform: scale(0.92);
  transition: opacity 0.28s ease, transform 0.28s ease;
  backface-visibility: hidden;
  /* Keep layout size stable — scale is visual only */
  transform-origin: center center;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex-basis: 860px;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex-basis: 900px;
  }
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  user-select: none;
}

.timeline-track {
  isolation: isolate;
}

.timeline-track-fill {
  height: 0%;
  will-change: height;
  /* Soft ease while scrolling between steps */
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .timeline-track-fill {
    transition: none;
  }
}

/* Scroll reveals — applied per section */
.reveal {
  opacity: 0;
  translate: 0 32px;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-left {
  translate: -36px 0;
}

.reveal-right {
  translate: 36px 0;
}

.reveal-scale {
  translate: 0 20px;
  scale: 0.94;
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.stat-card.reveal {
  transition-duration: 1.15s;
}

.reveal-stagger>.reveal:nth-child(1) {
  --reveal-delay: 0ms;
}

.reveal-stagger>.reveal:nth-child(2) {
  --reveal-delay: 100ms;
}

.reveal-stagger>.reveal:nth-child(3) {
  --reveal-delay: 200ms;
}

.reveal-stagger>.reveal:nth-child(4) {
  --reveal-delay: 300ms;
}

.reveal-stagger>.reveal:nth-child(5) {
  --reveal-delay: 400ms;
}

.reveal-stagger>.reveal:nth-child(6) {
  --reveal-delay: 500ms;
}

.animate-fade-up {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-fade-up-delay {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.animate-fade-up-delay-2 {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 24px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes floatY {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes floatScale110 {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes floatScale105 {

  0%,
  100% {
    translate: 0 -8px;
  }

  50% {
    translate: 0 -18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    translate: none;
    scale: none;
    transition: none;
  }

  .animate-fade-up,
  .animate-fade-up-delay,
  .animate-fade-up-delay-2,
  .float-card.is-visible.fc-1,
  .float-card.is-visible.fc-2,
  .float-card.is-visible.fc-3,
  .float-card.is-visible.fc-4,
  .orbit-path,
  .orbit-logo-wrap,
  .orbit-logo,
  .partners-track {
    animation: none !important;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(51, 209, 255, 0.45));
  }

  50% {
    filter: drop-shadow(0 0 28px rgba(51, 209, 255, 0.85));
  }
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-bg::after {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.55) 100%);
  }
}

/* ========== View switching: desktop >=1024, mobile <1024 ========== */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 1023.98px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: block;
  }
}

/* ========== Mobile layout (<1024) — fluid, no per-device breakpoints ========== */
.mobile-only {
  --m-pad: clamp(0.75rem, 4.2vw, 2rem);
  --m-content: min(90vw, 28rem);
  --m-hero-title: min(92vw, 36rem);
  --m-hero-sub: min(90vw, 32rem);
  --m-hero-btn: clamp(11.5rem, 42vw, 16rem);
  --m-btn-md: clamp(3rem, 80vw, 15rem);
  --m-hero-pt: clamp(3.5rem, 8vw, 5rem);
  --m-stats-bottom: clamp(2.25rem, 16vw - 1rem, 14rem);
  --m-stats-basis: clamp(48%, calc(100% - 8vw), 78%);
  --m-carousel-basis: clamp(58%, calc(112% - 5vw), 90%);
  --m-header-h: clamp(3.5rem, 7vw, 4rem);
  --m-logo-h: clamp(1.35rem, 3.2vw, 1.75rem);
  --m-cta-h: clamp(1.75rem, 4vw, 2.25rem);
  --m-title-sm: min(60vw, 18rem);
  --m-title-xs: min(40vw, 12rem);
  --m-icon: clamp(4rem, 12vw, 10rem);
  --m-partner-h: clamp(1.75rem, 3.5vw, 2.15rem);
  width: 100%;
  max-width: none;
}

.m-shell {
  width: 100%;
  max-width: none;
}

.m-card,
.m-copy {
  max-width: var(--m-content);
}

.m-hero-title {
  max-width: var(--m-hero-title);
}

.m-hero-sub {
  max-width: var(--m-hero-sub);
}

.m-hero-btn {
  width: var(--m-hero-btn);
}

.m-btn-md {
  width: var(--m-btn-md);
}

.m-about-kicker {
  max-width: min(72vw, 22rem);
}

/* Fill bg height; spacers scale with section so layout stays responsive */
.m-about-content {
  min-height: 100%;
  box-sizing: border-box;
}

.m-about-gap {
  flex: 1 1 0;
  width: 100%;
  min-height: 1.5rem;
  pointer-events: none;
}

.m-about-gap-1 {
  flex-grow: 0.07;
}

.m-about-gap-2 {
  flex-grow: 0.18;
}

.m-about-gap-3 {
  flex-grow: 0.58;
}

.m-about-intro {
  transform: translateX(0.75rem);
}

.m-about-intro .m-copy {
  max-width: min(96vw, 32rem);
}

.m-about-intro .m-btn-md {
  width: clamp(12rem, 48vw, 17rem);
}

.m-story-title {
  max-width: min(58vw, 18rem);
}

.m-about-story-copy {
  max-width: min(96vw, 34rem);
}

.m-services-title {
  max-width: min(80vw, 22rem);
}

/* Services sticky-stack scroll effect */
.m-services-stack {
  position: relative;
  display: flex;
  flex-direction: column;
}

.m-service-card-wrap {
  position: sticky;
  top: calc(var(--m-header-h) + 1rem);
  margin-bottom: 1.25rem;
  transform-origin: center top;
  transition: transform 0.35s ease, opacity 0.35s ease;
  border-radius: 1rem;
  overflow: hidden;
  background: #05050c;
  opacity: 1;
}

.m-service-card-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* Behind cards: scale down and hide so content isn't visible under the active card */
.m-service-card-wrap.is-stacked {
  transform: scale(0.94);
  opacity: 0;
  pointer-events: none;
}

.m-dash-title {
  max-width: min(80vw, 22rem);
}

.m-process-logo {
  max-width: min(90vw, 28rem);
}

.m-process-logo.reveal.is-visible {
  opacity: 0.7;
}

.m-process-icon {
  height: clamp(5rem, 18vw, 8rem);
  width: clamp(5rem, 18vw, 8rem);
}

.m-orbit-logo {
  display: block;
  width: clamp(3.75rem, 13vw, 5rem);
  height: auto;
  animation: pulseGlow 3.5s ease-in-out infinite;
}

/* Mobile Section 3 — logo travels along bg3 rings */
.m-orbit-stage {
  position: absolute;
  left: 50%;
  top: 42.5%;
  z-index: 2;
  width: clamp(8rem, 110vw, 52rem);
  aspect-ratio: 1.3 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.m-orbit-path {
  position: absolute;
  inset: 0;
  animation: orbitSpin 28s linear infinite;
}

.m-orbit-logo-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  animation: orbitSpinReverse 28s linear infinite;
}

.m-tnc-title {
  max-width: min(90vw, 24rem);
}

.m-cta-text {
  max-width: min(80vw, 22rem);
}

.m-logo {
  height: var(--m-logo-h);
}

.m-header-cta {
  height: var(--m-cta-h);
}

.m-header {
  background: #05050c;
}

.m-header-bar {
  height: var(--m-header-h);
}

.m-main {
  padding-top: var(--m-header-h);
}

.m-nav-link {
  display: block;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.35rem 0;
}

.m-nav-link:hover,
.m-nav-link.is-active {
  color: #fff;
}

.m-nav.is-open {
  display: flex !important;
}

.m-partners-track {
  animation: marquee 28s linear infinite;
}

.m-partners-track>img {
  height: var(--m-partner-h);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.3);
}

.m-carousel-viewport {
  overflow: hidden;
}

.m-carousel-track {
  will-change: transform;
}

.m-carousel-slide {
  flex: 0 0 var(--m-carousel-basis);
  opacity: 1;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.m-carousel-slide.is-active {
  transform: scale(1);
}

.m-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.m-stats-viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.m-stats-viewport:active {
  cursor: grabbing;
}

.m-stats-track {
  will-change: transform;
  touch-action: pan-y;
  padding-left: var(--m-pad);
  padding-right: var(--m-pad);
}

.m-stats-slide {
  flex: 0 0 var(--m-stats-basis);
  opacity: 1;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.m-stats-slide.is-active {
  transform: scale(1);
}

.m-stats-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.m-stats-wrap {
  left: 0;
  right: 0;
  padding-left: 0;
  padding-right: 0;
  /* visible so scaled dots aren’t clipped at the bottom */
  overflow: visible;
}

.m-stats-dots {
  padding-bottom: 0.35rem;
}

.m-stats-dot {
  width: clamp(9px, 2.4vw, 12px);
  height: clamp(9px, 2.4vw, 12px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.m-stats-dot.is-active {
  background: #33d1ff;
  transform: scale(1.25);
}

/* Section 2 — Mission / Vision boxes slider
   One full card at a time, no peek on either side */
.m-boxes-carousel {
  width: 100%;
  align-self: stretch;
}

.m-boxes-viewport {
  overflow: hidden;
  width: 100%;
}

.m-boxes-track {
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}

.m-boxes-track:active {
  cursor: grabbing;
}

.m-boxes-slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  padding-left: var(--m-pad);
  padding-right: var(--m-pad);
  opacity: 1;
}

.m-boxes-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.m-boxes-dots {
  margin-top: 1rem;
  padding-bottom: 0.35rem;
}

.m-boxes-dot {
  width: clamp(9px, 2.4vw, 12px);
  height: clamp(9px, 2.4vw, 12px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.m-boxes-dot.is-active {
  background: #33d1ff;
  transform: scale(1.25);
}

/* Section 3 — match reference: title, orbit logo, info cluster, peeking text slider */
.m-diff-layer {
  pointer-events: none;
}

.m-diff-layer>*:not(.m-orbit-stage) {
  pointer-events: auto;
}

.m-diff-title {
  position: absolute;
  top: 10%;
  left: 50%;
  z-index: 3;
  width: min(92vw, 30rem);
  transform: translateX(-50%);
}

.m-diff-logo {
  display: block;
  width: clamp(2rem, 10vw, 5rem);
  height: auto;
}

.m-diff-info {
  position: absolute;
  top: 31.5%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: min(70vw, 40rem);
  grid-template-columns: 1.1fr 1.15fr;
  align-items: center;
  gap: clamp(0.3rem, 1.2vw, 0.55rem) clamp(0.4rem, 2vw, 1rem);
  transform: translateX(-50%);
}

.m-diff-info img {
  display: block;
  width: 100%;
  height: auto;
}

/* info1 & info3 (left column) */
.m-diff-info img:nth-child(1),
.m-diff-info img:nth-child(3) {
  width: 100%;
  justify-self: end;
}

/* info2 & info4 (right column) */
.m-diff-info img:nth-child(2),
.m-diff-info img:nth-child(4) {
  width: 100%;
  justify-self: start;
}

.m-diff-carousel {
  position: absolute;
  right: 0;
  bottom: 13%;
  left: 0;
  z-index: 3;
  width: 100%;
  /* Inset from screen edges — space left of active without revealing previous */
  padding-left: calc(var(--m-pad) - 0.75rem);
  box-sizing: border-box;
}

.m-diff-viewport {
  overflow: hidden;
}

.m-diff-track {
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}

.m-diff-track:active {
  cursor: grabbing;
}

.m-diff-slide {
  /* Leave room so the next card peeks on the right only */
  flex: 0 0 clamp(72%, calc(100% - 2.5rem), 82%);
  opacity: 1;
}

.m-diff-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.m-diff-dots {
  margin-top: 3rem;
  padding-bottom: 0.35rem;
}

.m-diff-dot {
  width: clamp(9px, 2.4vw, 12px);
  height: clamp(9px, 2.4vw, 12px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.m-diff-dot.is-active {
  background: #33d1ff;
  transform: scale(1.25);
}

.m-timeline-fill {
  height: 0%;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

@media (prefers-reduced-motion: reduce) {

  .m-orbit-path,
  .m-orbit-logo-wrap,
  .m-orbit-logo,
  .m-partners-track {
    animation: none !important;
  }

  .m-timeline-fill {
    transition: none;
  }
}