/* Overlook Studio Home Page Refined Styles */

/* 1. Remove Next.js blocking loader overlay */
body > div[style*="position:fixed"][style*="z-index:50"][style*="100vw"],
body > div[style*="position: fixed"][style*="z-index: 50"][style*="100vw"] {
  display: none !important;
}

body {
  visibility: visible !important;
  overflow-x: hidden !important;
}

/* 2. WebGL Fluid Background Placement */
.webgl-background_container__Ojc1v[data-background="3"] {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden !important;
  opacity: 1;
  transition: opacity 0.55s ease;
}

.home-fluid-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.webgl-background_container__Ojc1v[data-background="4"] {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100lvh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  transition: opacity 0.55s ease;
}

/* The light background's own opacity is driven inline by
   home-webgl-background.js (scroll fade 1 -> .5 -> 1, as on the reference);
   in the tail the opaque dark canvas simply paints over it. */
body.home-dark-tail-active .webgl-background_container__Ojc1v[data-background="4"] {
  opacity: 1;
}

/* The FAQ band sits between the fixed canvases and the tail; make sure its
   declared z-index actually applies so the dark canvas never paints over it. */
.FaqsList_faqsList__3yyiS {
  position: relative !important;
  z-index: 2 !important;
}

.kotaverse-fluid-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* 3. Section stacking context */
.Hero_hero__IrR3f,
.Approach_approach__kHR9Y,
.Services_services__YnZAs,
.Carousel_carousel__tZbXT,
.Work_work__rSI8c,
.StatisticsCarousel_panels__pxnru,
.Partners_partners__jBo8y,
.Testimonials_testimonials__AMUEx,
.Articles_articles__Wcz2C,
.KotaverseCta_kotaverseCta__bBpWa {
  position: relative !important;
  z-index: 1 !important;
}

/* 4. Keep the home footer transparent so the fixed home WebGL background
   continues beneath it, matching the original showreel/footer treatment. */
.Footer_footer__pQtti {
  position: relative !important;
  z-index: 10 !important;
  color: #ffffff !important;
  background-color: transparent !important;
}

/* The scraped award SVGs are black; the reference dark footer shows them white.
   The DAN badge is a full-colour PNG, so only invert the SVGs. */
.Footer_logos__jFNys img[src$=".svg"] {
  filter: brightness(0) invert(1);
}

/* 5. Smooth reveal animation support.
   FadeInUp is intentionally not forced visible: home-runtime.js replays the
   reference animation (opacity 0 / y 2.5rem -> visible, 1.5s power1.out) and
   without JS the elements simply stay visible via the base stylesheet. */
.FadeIn_container__bjQVL,
.FadeInRotate_container__QE9u9,
.ScaleFadeIn_container__cK78G,
.ImageEnter_image__FSEP_,
.MaskInUp_container__0AW5i {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 6. Services Section - Sticky Stacking Card Effect & Video Layout */
.Services_services__YnZAs {
  position: relative !important;
  padding-bottom: 5vh !important;
}

/* The reference reserves half a viewport below the heading: that is the room
   the pinned heading scrubs itself out in before the first panel arrives. */
@media (min-width: 850px) {
  .Services_services__YnZAs {
    padding-bottom: 50vh !important;
  }
}

.ServicesHeading_heading__w6gAZ {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
}

/* The arrow block's transform is scrubbed per scroll frame by home-runtime.js,
   so a transition here would only make it lag behind the scroll. */

/* Panels sit above the heading so the cards ride up over it, as they do on the
   reference (its .Services_services__YnZAs is unpositioned, so its z-index
   never takes effect and the panels win). */
.ServicesPanels_panels__NpKkK {
  position: relative !important;
  z-index: 3 !important;
}

.AnimatedPanel_panel__eAXfR {
  position: sticky !important;
  top: 14vh !important;
}

.AnimatedPanel_panel__eAXfR:nth-child(1) {
  top: 12vh !important;
  z-index: 2 !important;
}

.AnimatedPanel_panel__eAXfR:nth-child(2) {
  top: 14vh !important;
  z-index: 3 !important;
}

.AnimatedPanel_panel__eAXfR:nth-child(3) {
  top: 16vh !important;
  z-index: 4 !important;
}

@media (min-width: 850px) {
  .AnimatedPanel_spacer__w4GTD {
    height: 45vh !important;
    pointer-events: none !important;
  }
}

.ServicesPanel_panel__YF4OS {
  position: relative !important;
  border-radius: 2rem !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.04), 0 20px 45px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease !important;
  will-change: transform !important;
}

@media (min-width: 850px) {
  .ServicesPanel_panel__YF4OS {
    border-radius: 3rem !important;
  }
}

.ServicesPanel_tags__6NQOl {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.625rem 0.5rem !important;
  margin: 1.25rem 0 !important;
  z-index: 2 !important;
}

.ServicesPanel_tag__JYwRk {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #000000 !important;
  background-color: transparent !important;
  border: 1.5px solid #d4d4d4 !important;
  border-radius: 2rem !important;
  padding: 6px 14px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ServicesPanel_tag__JYwRk:hover {
  border-color: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

.ServiceMedia_mediaContainer__WGgZa {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-top-right-radius: 5rem !important;
  z-index: 2 !important;
  background: #0d0d0d !important;
}

@media (min-width: 850px) {
  .ServiceMedia_mediaContainer__WGgZa {
    border-top-right-radius: 12.5rem !important;
    width: 45% !important;
  }
}

.ServiceMedia_mediaContainer__WGgZa video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* 7. Featured Carousel Navigation & Layout (#carousel) - Brand-to-build Framework */
.Carousel_carousel__tZbXT {
  position: relative !important;
  z-index: 2 !important;
  padding: 4rem 0 !important;
}

.CarouselSlides_carouselNavigation__PT0fb {
  display: flex !important;
  gap: 0.75rem !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 2.5rem !important;
  flex-wrap: wrap !important;
  padding: 0 1rem !important;
}

.CarouselSlides_carouselNavigationButton__PEeuA {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1.5rem !important;
  color: #000000 !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 2rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.CarouselSlides_carouselNavigationButton__PEeuA:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

.CarouselSlides_carouselNavigationButton__PEeuA.active {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.CarouselSlides_carouselSlides__H1J6i {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  position: relative !important;
}

.CarouselSlides_swiperRoot__bWt6k {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 20px 130px 20px 20px !important;
}

.CarouselSlides_swiperRoot__bWt6k .swiper-wrapper {
  display: flex !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform !important;
}

.CarouselSlides_swiperRoot__bWt6k .swiper-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.CarouselSlides_carouselSlide__gJ_Hz {
  display: flex !important;
  flex-direction: column !important;
  background-color: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 20px 130px 20px 20px !important;
  overflow: hidden !important;
  min-height: 380px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

@media (min-width: 769px) {
  .CarouselSlides_carouselSlide__gJ_Hz {
    flex-direction: row !important;
  }
  .CarouselSlides_carouselMedia__aqYWx {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .CarouselSlides_carouselContent__bcvJC {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 3.5rem 3rem !important;
  }
}

.CarouselSlides_carouselMedia__aqYWx {
  position: relative !important;
  min-height: 260px !important;
  aspect-ratio: 562 / 434 !important;
  overflow: hidden !important;
  background: #000000 !important;
}

.CarouselSlides_carouselMedia__aqYWx video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.CarouselSlides_carouselContent__bcvJC {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  padding: 2rem !important;
}

.CarouselSlides_carouselContent__bcvJC h2 {
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.CarouselSlides_carouselContent__bcvJC p {
  font-size: 1.15rem !important;
  line-height: 1.5 !important;
  color: #333333 !important;
  margin: 0 !important;
}

.CarouselSlides_carouselSlides__H1J6i .swiper-prev,
.CarouselSlides_carouselSlides__H1J6i .swiper-next {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  user-select: none !important;
  z-index: 5 !important;
  transition: transform 0.2s ease !important;
}

.CarouselSlides_carouselSlides__H1J6i .swiper-prev:hover,
.CarouselSlides_carouselSlides__H1J6i .swiper-next:hover {
  transform: scale(1.1) !important;
}

/* Project Card Tags */
.ProjectCard_tags__XdVcf {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  margin: auto 0 0 !important;
  list-style: none !important;
  z-index: 5 !important;
}

.ProjectCard_tags__XdVcf li {
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  border-radius: 2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  padding: 6px 14px !important;
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* 8. Statistics Carousel 3D Deck Stacking ("Our Results") */
.StatisticsCarousel_panels__pxnru {
  position: relative !important;
  z-index: 2 !important;
  margin: 4rem 0 !important;
}

.StatisticsCarousel_container__2XA6W {
  overflow: visible !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  perspective: 1400px !important;
}

.StatisticsCarousel_swiper__PGdj6 {
  overflow: visible !important;
  width: 88% !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
  position: relative !important;
}

.StatisticsCarousel_swiper__PGdj6 .swiper-wrapper {
  display: grid !important;
  transform-style: preserve-3d !important;
  position: relative !important;
}

.StatisticsCarousel_swiperSlide__is8BS {
  grid-area: 1/1 !important;
  width: 100% !important;
  opacity: 1 !important;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease, visibility 0.6s ease !important;
  transform-origin: center center !important;
  will-change: transform, opacity, filter !important;
  display: flex !important;
}

.StatisticsPanel_panel__5YHtR {
  border: 2px solid hsla(0, 0%, 100%, 0.35) !important;
  width: 100% !important;
  background: #000000 !important;
  border-radius: 20px 140px 20px 20px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
  min-height: 520px !important;
  padding: 3rem !important;
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 1.5rem !important;
  align-items: center !important;
}

@media (min-width: 850px) {
  .StatisticsPanel_panel__5YHtR {
    border-radius: 20px 200px 20px 20px !important;
    padding: 4rem 5rem 3.5rem 4rem !important;
    min-height: 560px !important;
  }
}

.StatisticsPanel_backgroundImage___Dgsu {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.35 !important;
  z-index: 0 !important;
  margin: 0 !important;
}

.StatisticsPanel_backgroundImage___Dgsu img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.StatisticsPanel_panelWrap__XLJZs {
  position: relative !important;
  z-index: 2 !important;
  grid-column: span 12 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  height: 100% !important;
}

@media (min-width: 850px) {
  .StatisticsPanel_panelWrap__XLJZs {
    grid-column: span 6 !important;
  }
  .StatisticsPanel_visual__W0d30 {
    grid-column: span 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    z-index: 2 !important;
  }
}

.StatisticsPanel_visual__W0d30 img {
  max-width: 100% !important;
  height: auto !important;
  max-height: 440px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) !important;
}

.StatisticsPanel_heading__UrLlt {
  font-size: clamp(4.5rem, 8vw, 8.5rem) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  margin: 1.5rem 0 0.5rem 0 !important;
  background: linear-gradient(90deg, #633cc9, #3b8392, #cb24cc, #633cc9) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: rainbowText 4s ease infinite !important;
}

@keyframes rainbowText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.StatisticsPanel_description__csS74 {
  font-size: clamp(1.2rem, 2vw, 1.75rem) !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  margin-bottom: 2rem !important;
}

.StatisticsCarousel_swiperNavNext__sdg5A {
  width: 54px !important;
  height: 54px !important;
  border: 2px solid #ffffff !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  right: 2rem !important;
  bottom: 2rem !important;
  z-index: 25 !important;
  transition: all 0.3s ease !important;
}

.StatisticsCarousel_swiperNavNext__sdg5A:hover {
  background: #ffffff !important;
  transform: scale(1.1) !important;
}

.StatisticsCarousel_swiperNavNext__sdg5A:before {
  content: "" !important;
  width: 14px !important;
  height: 14px !important;
  border-right: 2px solid #ffffff !important;
  border-top: 2px solid #ffffff !important;
  transform: translateX(-20%) rotate(45deg) !important;
  transition: border-color 0.3s ease !important;
}

.StatisticsCarousel_swiperNavNext__sdg5A:hover:before {
  border-color: #000000 !important;
}

/* 9. Testimonials Section ("What our clients say") - Compact Solid 3D Deck */
.Testimonials_testimonials__AMUEx {
  background: #000000 !important;
  padding: 4rem 0 8rem !important;
  color: #ffffff !important;
  position: relative !important;
  z-index: 2 !important;
}

.Testimonials_testimonials__AMUEx .container {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
}

@media (min-width: 900px) {
  .Testimonials_testimonials__AMUEx .container {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 2.5rem !important;
    align-items: center !important;
  }

  .Testimonials_heading__k0Yyf {
    grid-column: span 6 !important;
    align-self: center !important;
    font-size: clamp(3rem, 5.5vw, 5.5rem) !important;
    line-height: 0.95 !important;
    margin: 0 !important;
  }

  .Testimonials_testimonialDesktop__v5dZX {
    grid-column: span 6 !important;
    display: block !important;
    width: 100% !important;
  }
}

.TestimonialsCarousel_panels__qHnSA {
  margin: 0 !important;
  width: 100% !important;
}

.TestimonialsCarousel_container__YAjHa {
  overflow: visible !important;
  position: relative !important;
  width: 100% !important;
  perspective: 1200px !important;
}

.TestimonialsCarousel_swiper__AMmtm {
  overflow: visible !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  cursor: grab !important;
  position: relative !important;
}

.TestimonialsCarousel_swiper__AMmtm:active {
  cursor: grabbing !important;
}

.TestimonialsCarousel_swiper__AMmtm .swiper-wrapper {
  display: grid !important;
  transform-style: preserve-3d !important;
  position: relative !important;
}

.TestimonialsCarousel_swiperSlide__lovqP {
  grid-area: 1/1 !important;
  width: 100% !important;
  opacity: 1 !important;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease, visibility 0.6s ease !important;
  transform-origin: center center !important;
  will-change: transform, opacity, filter !important;
}

.TestimonialsPanel_panel__QSk4x {
  border-radius: 0 70px 0 0 !important;
  overflow: hidden !important;
  padding: 2.2rem 1.8rem !important;
  min-height: 380px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  color: #000000 !important;
  opacity: 1 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
}

@media (min-width: 900px) {
  .TestimonialsPanel_panel__QSk4x {
    border-radius: 0 120px 0 0 !important;
    padding: 2.8rem 2.6rem 2.2rem 2.6rem !important;
    min-height: 420px !important;
  }
}

.TestimonialsPanel_panelWrap__Lm7Hv {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  height: 100% !important;
  position: relative !important;
  z-index: 2 !important;
}

.TestimonialsPanel_logo__m6tmz {
  margin-bottom: 1.25rem !important;
}

.TestimonialsPanel_logo__m6tmz img {
  height: 38px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  filter: brightness(0) !important;
}

.TestimonialsPanel_description__njfi8 {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #000000 !important;
  margin: 0 0 1.5rem 0 !important;
}

.TestimonialsPanel_details__ijkyr {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
  margin-bottom: 1.5rem !important;
}

.TestimonialsPanel_name__Spm5c {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #000000 !important;
}

.TestimonialsCarousel_swiperNavNext__Aabsb {
  width: 48px !important;
  height: 48px !important;
  border: 2px solid #000000 !important;
  background: transparent !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  right: 1.8rem !important;
  bottom: 1.8rem !important;
  z-index: 25 !important;
  transition: all 0.3s ease !important;
}

.TestimonialsCarousel_swiperNavNext__Aabsb:hover {
  background: #000000 !important;
  transform: scale(1.1) !important;
}

.TestimonialsCarousel_swiperNavNext__Aabsb:before {
  content: "" !important;
  width: 12px !important;
  height: 12px !important;
  border-right: 2px solid #000000 !important;
  border-top: 2px solid #000000 !important;
  transform: translateX(-20%) rotate(45deg) !important;
  transition: border-color 0.3s ease !important;
}

.TestimonialsCarousel_swiperNavNext__Aabsb:hover:before {
  border-color: #ffffff !important;
}

/* 10. Kotaverse CTA Video & Modal */
.KotaverseCta_backgroundVideo__FSZyH video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.overlook-video-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.94) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.overlook-video-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.overlook-video-modal video {
  max-width: 90vw !important;
  max-height: 85vh !important;
  border-radius: 12px !important;
  outline: none !important;
}

.overlook-video-close {
  position: absolute !important;
  top: 1.5rem !important;
  right: 2rem !important;
  font-size: 2.5rem !important;
  color: #ffffff !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  line-height: 1 !important;
}
