/* home.css: home-page-only styles (former page-level embeds on the Webflow
   home page): carousel core, global utility classes, marquees and the
   testimonial carousel. Loaded only by index.html, after custom.css. */

/* ------------------------------------------------------------------ *
 * 1. Carousel core (replaces the Splide CDN stylesheet)
 * ------------------------------------------------------------------ */
.splide {
  position: relative;
  outline: none;
  visibility: hidden;
}
.splide.is-initialized {
  visibility: visible;
}
.splide__track {
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.splide__list {
  display: flex;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.splide__slide {
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0;
  list-style-type: none !important;
  outline: none;
  backface-visibility: hidden;
}
.splide__slide img {
  vertical-align: bottom;
}
.splide--draggable > .splide__track {
  user-select: none;
}

/* Home page override */
.splide__track {
  overflow: visible;
}

/* ------------------------------------------------------------------ *
 * 2. Global utility styles (former "global-styles" embed)
 * ------------------------------------------------------------------ */
/* Crisper text */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Focus state for keyboard navigation */
*[tabindex]:focus-visible,
input[type="file"]:focus-visible {
  outline: 0.125rem solid #4d65ff;
  outline-offset: 0.125rem;
}

.inherit-color * {
  color: inherit;
}

/* No top margin on the first / bottom margin on the last rich-text child */
.w-richtext > :not(div):first-child,
.w-richtext > div:first-child > :first-child {
  margin-top: 0 !important;
}
.w-richtext > :last-child,
.w-richtext ol li:last-child,
.w-richtext ul li:last-child {
  margin-bottom: 0 !important;
}

/* Containers always stay centred */
.container-medium,
.container-small,
.container-large {
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Line clamps */
.text-style-3lines,
.text-style-2lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}
.text-style-3lines { -webkit-line-clamp: 3; }
.text-style-2lines { -webkit-line-clamp: 2; }

.display-inlineflex {
  display: inline-flex;
}

/* Visibility helpers (never overwritten) */
.hide {
  display: none !important;
}
@media screen and (max-width: 991px) {
  .hide,
  .hide-tablet {
    display: none !important;
  }
}
@media screen and (max-width: 767px) {
  .hide-mobile-landscape {
    display: none !important;
  }
}
@media screen and (max-width: 479px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Spacing reset helpers */
.margin-0 { margin: 0 !important; }
.padding-0 { padding: 0 !important; }
.spacing-clean { padding: 0 !important; margin: 0 !important; }

.margin-top { margin-right: 0 !important; margin-bottom: 0 !important; margin-left: 0 !important; }
.padding-top { padding-right: 0 !important; padding-bottom: 0 !important; padding-left: 0 !important; }
.margin-right { margin-top: 0 !important; margin-bottom: 0 !important; margin-left: 0 !important; }
.padding-right { padding-top: 0 !important; padding-bottom: 0 !important; padding-left: 0 !important; }
.margin-bottom { margin-top: 0 !important; margin-right: 0 !important; margin-left: 0 !important; }
.padding-bottom { padding-top: 0 !important; padding-right: 0 !important; padding-left: 0 !important; }
.margin-left { margin-top: 0 !important; margin-right: 0 !important; margin-bottom: 0 !important; }
.padding-left { padding-top: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; }
.margin-horizontal { margin-top: 0 !important; margin-bottom: 0 !important; }
.padding-horizontal { padding-top: 0 !important; padding-bottom: 0 !important; }
.margin-vertical { margin-right: 0 !important; margin-left: 0 !important; }
.padding-vertical { padding-right: 0 !important; padding-left: 0 !important; }

/* ------------------------------------------------------------------ *
 * 3. Marquees (home page)
 * ------------------------------------------------------------------ */
.marquee-track {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-track 30s linear infinite;
}
@keyframes marquee-track {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media only screen and (min-width: 992px) {
  .marquee-track:hover {
    animation-play-state: paused;
  }
}

.logo-animate {
  animation: marquee-horizontal 20s linear infinite;
}
@keyframes marquee-horizontal {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ------------------------------------------------------------------ *
 * 4. Testimonial carousel (home page "Ongoing Projects")
 * ------------------------------------------------------------------ */
.splide .splide__pagination {
  display: none;
}
.splide__slide .project-img {
  transform: scale(0.8);
  opacity: 0.24;
}
.splide__slide.is-active .project-img {
  transform: scale(1);
  opacity: 1;
}
.splide__slide .projects-content-about {
  opacity: 0;
}
.splide__slide.is-active .projects-content-about {
  transition-delay: 0.45s;
  transform: translate(0, 0);
  opacity: 1;
}
