/* ============================================================
   SparkGPU brand: nav logo + wordmark, footer logo, sized decor.
   ============================================================ */

/* hide the original Webflow nav logo (img and inline svg) */
.nav_brand .main_logo,
a.w-nav-brand .main_logo {
  display: none !important;
}

/* the .nav_brand anchor becomes a row: logo image + SparkGPU text */
.nav_brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}
.nav_brand::before {
  content: "";
  display: inline-block;
  width: 66px;
  height: 66px;
  background-image: url("../assets/spark-logo-512.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
}
.nav_brand::after {
  content: "SparkGPU";
  font-family: "Twkeverett", "TWK Everett", Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

/* hide the giant XMAQUINA wordmark graphic + decor strip in footer */
.footer_decor_img,
.carousel-horizontal {
  display: none !important;
}

/* ---------- big decoration: replace giant white emblem with our logo ----------
   Original .impact_decor sat behind the "Strategic Exposure" section with the
   old XMAQUINA emblem rendered at ~900px wide. Constrain it and swap the image.
*/
.impact_decor {
  max-width: 440px !important;
  /* the element is position:absolute from webflow — override its corner anchors */
  top: -80px !important;
  right: 200px !important;
  opacity: 0.95;
  pointer-events: none;
}
.impact_decor img.d-block {
  width: 100%;
  height: auto;
  display: block;
  content: url("../assets/spark-logo-512.png");
}

/* ---------- footer wordmark replacement (logo + SparkGPU text) ---------- */
.section_footer .footer_bot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section_footer .footer_bot::before {
  content: "";
  display: inline-block;
  width: 60px;
  height: 60px;
  background-image: url("../assets/spark-logo-512.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
  order: -2;
}
.section_footer .footer_bot::after {
  content: "SparkGPU";
  font-family: "Twkeverett", "TWK Everett", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  order: -1;
  margin-right: auto;
}

/* ============================================================
   PRELOADER — particle assembly (canvas) full-screen overlay
   ============================================================ */
#obx-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #010101;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#obx-preloader.fade { opacity: 0; pointer-events: none; }
#obx-preloader canvas { display: block; width: 100%; height: 100%; }
#obx-preloader .obx-pre-text {
  position: absolute;
  bottom: 12%;
  left: 0; right: 0;
  text-align: center;
  font-family: "Twkeverett", "TWK Everett", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
/* hide page content during preload to prevent flash */
html.obx-loading body { visibility: hidden; }
html.obx-loading #obx-preloader body,
html.obx-loading #obx-preloader { visibility: visible !important; }

/* ---------- how-it-works hero: fill empty right square with the logo ---------- */
.hero_grid.is-how-it-works .hero_image {
  background-image: url("../assets/spark-logo-1024.png");
  background-repeat: no-repeat;
  background-position: center 92%; /* sit near bottom of the cell to align with "Enter The 3 Steps" headline */
  background-size: 60% auto;
  min-height: 620px;
  display: block;
}
.hero_grid.is-how-it-works .hero_image .lottie { display: none !important; }

@media (max-width: 768px) {
  .nav_brand::before { width: 50px; height: 50px; }
  .nav_brand::after { font-size: 20px; }
  .section_footer .footer_bot::before { width: 46px; height: 46px; }
  .section_footer .footer_bot::after { font-size: 18px; }
  .impact_decor { max-width: 240px !important; margin: 60px auto 24px 0 !important; transform: none; }
  .hero_grid.is-how-it-works .hero_image { min-height: 340px; background-size: 65% auto; background-position: center 70%; }
}
