/* ==========================================================================
   Adrem: home-v2.css
   Motion layer for the alternative Home page (site/index-v2.html): full-bleed
   hero slider (Swiper), floating elements, marquee, tilt cards, scroll
   progress, scroll-drawn process line, testimonial slider, parallax band.
   Everything else on the page is the normal design system. Loaded only by v2.
   All motion is gated by prefers-reduced-motion (CSS here, GSAP in home-v2.js).
   ========================================================================== */

/* ---- Version switch (review aid, delete when a version is chosen) ------ */
.v2-switch {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-4);
  padding: var(--space-2) var(--gutter);
  background: var(--navy-900);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}
.v2-switch strong { color: var(--n-0); }
.v2-switch a { color: var(--blue-300); }

/* ---- Scroll progress bar ------------------------------------------------ */
.v2-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  transform: scaleX(0); transform-origin: left center;
  z-index: calc(var(--z-header) + 1);
  pointer-events: none;
}

/* ---- Keyframes ------------------------------------------------------------ */
@keyframes v2-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes v2-kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.2%, -1%); } }
@keyframes v2-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes v2-float-alt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes v2-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(4%, -6%) scale(1.08); } 66% { transform: translate(-3%, 5%) scale(0.95); } }
@keyframes v2-marquee { to { transform: translateX(-50%); } }
@keyframes v2-scroll-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes v2-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(27, 152, 224, 0.45); } 70% { box-shadow: 0 0 0 14px rgba(27, 152, 224, 0); } }
@keyframes v2-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- Floating background shapes (used in the hero, the dark section and the band) ---- */
.v2-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.v2-shape {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
}
.v2-shape--crimson { background: var(--blue-500); }
.v2-shape--navy { background: var(--navy-400); }
.v2-shape--ring {
  filter: none; opacity: 0.35; background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.28);
}
.v2-shape--dots {
  filter: none; opacity: 0.35; border-radius: 0; background-color: transparent;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
}

/* shape placements */
.v2-shape--a { left: -8%; top: -25%; width: 36rem; height: 36rem; }
.v2-shape--b { right: -10%; bottom: -30%; width: 32rem; height: 32rem; }
.v2-shape--c { left: 55%; top: 12%; width: 9rem; height: 9rem; }
.v2-shape--d { right: 4%; top: 8%; width: 18rem; height: 18rem; }
.v2-shape--e { right: -6%; top: -20%; width: 28rem; height: 28rem; opacity: 0.35; }
.v2-shape--f { left: 4%; bottom: 8%; width: 7rem; height: 7rem; }
.v2-shape--g { left: 38%; top: 60%; width: 16rem; height: 16rem; }
.v2-shape--h { right: 8%; top: 12%; width: 10rem; height: 10rem; }
.v2-dark { position: relative; overflow: hidden; }
.v2-dark .container { position: relative; }

/* ---- Hero slider ---------------------------------------------------------- */
.hero-v2 {
  position: relative;
  background: var(--navy-900);
  color: var(--color-on-dark-muted);
  overflow: hidden;
}
.hero-v2__swiper { width: 100%; }
.hero-v2__slide {
  position: relative;
  min-height: clamp(34rem, 82vh, 46rem);
  display: grid; align-items: center;
  padding-block: clamp(4rem, 9vw, 6rem) clamp(6rem, 12vw, 8rem);   /* room for the controls + wave */
}
.hero-v2__bg { position: absolute; inset: 0; overflow: hidden; }
.hero-v2__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; will-change: transform; }
.hero-v2__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 26, 54, 0.94) 0%, rgba(11, 26, 54, 0.78) 40%, rgba(11, 26, 54, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 26, 54, 0.2) 0%, rgba(11, 26, 54, 0) 40%, rgba(11, 26, 54, 0.75) 100%);
}
.hero-v2 .container { position: relative; z-index: 1; }
.hero-v2__content { max-width: 40rem; }
.hero-v2__content > * + * { margin-top: var(--space-5); }
.hero-v2__eyebrow { color: var(--blue-300); }
.hero-v2__title { color: var(--n-0); font-size: var(--text-5xl); line-height: 1.05; }
.hero-v2__title em { font-style: normal; color: var(--blue-300); }
.hero-v2__title .w { display: inline-block; }
.hero-v2__lead { font-size: var(--text-lg); max-width: 34rem; }
.hero-v2__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-v2__note { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); }
.hero-v2__note span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-v2__note .icon { color: var(--blue-300); }

/* floating fact chips over the photo (desktop) */
.hero-v2__chips { display: none; }
@media (min-width: 1024px) {
  .hero-v2__chips { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
  .v2-chip {
    position: absolute;
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    color: var(--n-0);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .v2-chip__icon { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--blue-500); }
  .v2-chip__icon .icon { width: 1.15rem; height: 1.15rem; }
  .v2-chip strong { display: block; font-family: var(--font-heading); font-size: var(--text-lg); line-height: 1.1; }
  .v2-chip span { font-size: var(--text-xs); color: var(--color-on-dark-muted); }
  .v2-chip--1 { right: 6%; top: 24%; }
  .v2-chip--2 { right: 30%; top: 40%; }
  .v2-chip--3 { right: 9%; bottom: 30%; }
}

/* controls */
.hero-v2__controls {
  position: absolute; left: 0; right: 0; bottom: clamp(3.25rem, 7vw, 4.5rem);
  z-index: 2; pointer-events: none;
}
.hero-v2__controls .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-right: calc(var(--gutter) + 4.5rem); } /* keep clear of the floating call/WhatsApp column */
.hero-v2__pagination { display: flex; gap: var(--space-2); pointer-events: auto; }
.hero-v2__pagination .swiper-pagination-bullet {
  width: 2.5rem; height: 4px; border-radius: 2px; margin: 0;
  background: rgba(255, 255, 255, 0.35); opacity: 1;
  transition: background-color var(--duration-base) var(--ease-out), width var(--duration-base) var(--ease-out);
}
.hero-v2__pagination .swiper-pagination-bullet-active { width: 4rem; background: var(--blue-500); }
.hero-v2__buttons { display: flex; gap: var(--space-2); pointer-events: auto; }
.hero-v2__btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--n-0);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.hero-v2__btn:hover { background: var(--blue-500); border-color: var(--blue-500); transform: scale(1.06); }
.hero-v2__btn .icon { width: 1.1rem; height: 1.1rem; }
.hero-v2__btn .icon--play { display: none; }
.hero-v2__btn[aria-pressed="true"] .icon--play { display: block; }
.hero-v2__btn[aria-pressed="true"] .icon--pause { display: none; }
.hero-v2__scroll-cue {
  position: absolute; left: 50%; bottom: clamp(3.5rem, 7.5vw, 5rem); transform: translateX(-50%);
  z-index: 2; width: 1.6rem; height: 2.6rem; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 1rem;
  display: none;
}
.hero-v2__scroll-cue::before { content: ""; position: absolute; left: 50%; top: 0.5rem; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue-300); animation: v2-scroll-cue 1.8s ease-in-out infinite; }
@media (min-width: 900px) { .hero-v2__scroll-cue { display: block; } }

/* wave divider */
.v2-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; display: block; width: 100%; height: clamp(2.5rem, 6vw, 5rem); pointer-events: none; }
.v2-wave path { fill: var(--n-0); }
.v2-wave--tint path { fill: var(--color-bg-tint); }

/* slide entrance: staggered rise on the active slide */
.hero-v2__content > :nth-child(1) { --i: 0; }
.hero-v2__content > :nth-child(2) { --i: 1; }
.hero-v2__content > :nth-child(3) { --i: 2; }
.hero-v2__content > :nth-child(4) { --i: 3; }
.hero-v2__content > :nth-child(5) { --i: 4; }
.swiper-slide-active .hero-v2__content > * { animation: v2-rise 0.75s var(--ease-out) both; animation-delay: calc(0.12s + var(--i) * 0.11s); }
.swiper-slide-active .hero-v2__bg img { animation: v2-kenburns 9s ease-out both; }
.v2-chip { animation: v2-float 6s ease-in-out infinite; }
.v2-chip--2 { animation-name: v2-float-alt; animation-duration: 7.5s; }
.v2-chip--3 { animation-duration: 8.5s; animation-delay: -2s; }
.v2-shape--crimson, .v2-shape--navy { animation: v2-drift 18s ease-in-out infinite; }
.v2-shape--navy { animation-duration: 24s; animation-direction: reverse; }
.v2-shape--ring { animation: v2-float 10s ease-in-out infinite; }

/* ---- Tilt cards (services) --------------------------------------------- */
.v2-tilt { transform-style: preserve-3d; will-change: transform; }
.v2-tilt .card__body, .v2-tilt .card__media { transform: translateZ(0); }
.v2-tilt:hover { box-shadow: var(--shadow-lg); }
.v2-tilt .card__media img { transition: transform 0.6s var(--ease-out); }
.v2-tilt:hover .card__media img { transform: scale(1.06); }

/* ---- Industries marquee ----------------------------------------------- */
.v2-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v2-marquee__track { display: flex; gap: var(--space-4); width: max-content; animation: v2-marquee 42s linear infinite; }
.v2-marquee__group { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
/* keeps moving under the pointer, :focus-within still holds it still so a
   keyboard user can reach the links, and reduced motion stops it outright */
.v2-marquee:focus-within .v2-marquee__track { animation-play-state: paused; }
.v2-marquee .tile { width: clamp(13rem, 22vw, 17rem); flex: none; }
.v2-marquee .tile--icon { aspect-ratio: 4 / 3; }

/* ---- Scroll-drawn process line ----------------------------------------- */
.v2-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.v2-steps::before { content: ""; position: absolute; left: 1.4rem; top: 1.5rem; bottom: 1.5rem; width: 2px; background: var(--n-200); }
.v2-steps__line { position: absolute; left: 1.4rem; top: 1.5rem; bottom: 1.5rem; width: 2px; background: var(--blue-500); transform: scaleY(0); transform-origin: top; }
.v2-step { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); align-items: start; }
.v2-step__num {
  width: 2.85rem; height: 2.85rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: var(--weight-bold);
  background: var(--n-0); color: var(--navy-500); border: 2px solid var(--n-200);
  position: relative; z-index: 1;
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.v2-step.is-active .v2-step__num { background: var(--blue-500); border-color: var(--blue-500); color: var(--n-0); transform: scale(1.08); animation: v2-pulse 1.6s ease-out 1; }
.v2-step__title { font-size: var(--text-lg); color: var(--color-heading); margin-bottom: var(--space-1); }
.v2-step__text { color: var(--color-text-muted); }

/* ---- Parallax media ------------------------------------------------------- */
.v2-parallax { overflow: hidden; }
.v2-parallax img { will-change: transform; transform: scale(1.12); }

/* ---- Testimonials slider ----------------------------------------------------- */
.v2-testimonials .swiper { padding: var(--space-2) var(--space-1) var(--space-12); }
.v2-testimonials .swiper-slide { height: auto; display: flex; }
@media (max-width: 767px) { .v2-testimonials .swiper-wrapper { align-items: flex-start; } } /* one per view: cards take their own height instead of the tallest quote's */
.v2-testimonials .testimonial { width: 100%; }
.v2-testimonials .swiper-pagination { bottom: 0; }
.v2-testimonials .swiper-pagination-bullet { width: 0.6rem; height: 0.6rem; background: var(--navy-200); opacity: 1; transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.v2-testimonials .swiper-pagination-bullet-active { background: var(--blue-500); transform: scale(1.25); }
.v2-testimonials__nav { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.section-head--row > .v2-testimonials__nav > * + * { margin-top: 0; } /* outranks layout.css's `.section-head--row > div > * + *` stacking rule, which pushed the second button down */
.v2-testimonials__nav .hero-v2__btn { color: var(--navy-500); background: var(--n-0); border-color: var(--color-border); }
.v2-testimonials__nav .hero-v2__btn:hover { color: var(--n-0); }
.v2-testimonials__nav .swiper-button-disabled { opacity: 0.4; pointer-events: none; }

/* ---- Job seekers parallax band --------------------------------------------- */
.v2-band { position: relative; overflow: hidden; color: var(--n-0); isolation: isolate; }
.v2-band__bg { position: absolute; inset: -12% 0; z-index: -1; }
.v2-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.v2-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 26, 54, 0.92), rgba(2, 62, 138, 0.72)); }
.v2-band .container { padding-block: clamp(4rem, 9vw, 7rem); }
.v2-band__inner { max-width: 44rem; }
.v2-band__inner > * + * { margin-top: var(--space-5); }
.v2-band h2 { color: var(--n-0); }
.v2-band .eyebrow { color: var(--blue-300); }
.v2-band .checklist { color: var(--n-0); }
.v2-band .checklist .icon { color: var(--blue-300); }
.v2-band .lead { color: var(--color-on-dark-muted); }

/* ---- Micro-interactions --------------------------------------------------- */
.btn--magnetic { will-change: transform; }
.v2-hover-lift { transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.v2-hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-v2 .input:focus, .home-v2 .select:focus, .home-v2 .textarea:focus { box-shadow: 0 0 0 4px rgba(2, 62, 138, 0.15); transition: box-shadow var(--duration-fast) var(--ease-out); }
.home-v2 details[open] .faq__a { animation: v2-fade 0.35s var(--ease-out) both; }
.home-v2 .feature__icon { transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out); }
.home-v2 .feature:hover .feature__icon { transform: translateY(-3px) rotate(-6deg); }

/* ---- Page-transition fallback (browsers without cross-document view transitions) ---- */
html.is-leaving body { opacity: 0; transition: opacity 0.22s ease-out; }

/* ---- Reduced motion: no autoplay drift, no floating, no marquee ------------- */
@media (prefers-reduced-motion: reduce) {
  .swiper-slide-active .hero-v2__content > *, .swiper-slide-active .hero-v2__bg img,
  .v2-chip, .v2-shape--crimson, .v2-shape--navy, .v2-shape--ring, .hero-v2__scroll-cue::before,
  .v2-step.is-active .v2-step__num, .home-v2 details[open] .faq__a { animation: none; }
  .v2-marquee { -webkit-mask-image: none; mask-image: none; }
  .v2-marquee__track { animation: none; width: auto; padding-inline: var(--gutter); }
  .v2-marquee__group { flex-wrap: wrap; }
  .v2-marquee__group[aria-hidden="true"] { display: none; }
  .v2-parallax img { transform: none; }
  .v2-steps__line { transform: none; }
  html.is-leaving body { transition: none; }
}

/* autoplay progress bar under the hero slides */
.hero-v2 { --hero-progress: 0; }
.hero-v2__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.14); z-index: 3; }
.hero-v2__progress span { display: block; height: 100%; transform: scaleX(var(--hero-progress)); transform-origin: left; background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); }
/* 3-D transition: give the stage depth and keep the slide corners clean */
.hero-v2__swiper { perspective: 1200px; }
.hero-v2__slide { backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .hero-v2__progress { display: none; } }
