/* ============================================================
   Hood Compute 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 + Hood Compute text.
   Webflow hard-codes width:160px/height:16px on it, which the bigger mark
   overflows — size it to its content instead. */
.nav_brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  width: auto !important;
  height: auto !important;
  float: none !important;
  overflow: visible;
}
/* The mark art now fills its box edge-to-edge (no baked-in padding), so these
   px values are the real visible size of the star. */
.nav_brand::before {
  content: "";
  display: inline-block;
  width: 76px;
  height: 76px;
  background-image: url("../assets/hood-logo-512.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
}
.nav_brand::after {
  content: "Hood Compute";
  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;
}

/* hidden per user request 2026-07-17: CLI / API / Live prices sections
   (markup kept in index.html — flip this off to bring them back) */
.kcli,
.kapi,
.kprice {
  display: none !important;
}

/* hide the hero partner-logo carousel — fake "trusted by" robotics/VC logos
   (figure.ai, apptronik, 1x…) whose image files are broken (renamed src) and
   which imply associations Hood Compute doesn't have. */
.hero_logos_wrap {
  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.
*/
/* the heading block is only ~165px tall — give it room so the mark has air */
.impact_block {
  position: relative;
  min-height: 300px;
}
.impact_decor {
  /* absolute from webflow — span the right half and center the mark inside it */
  left: 50% !important;
  right: 0 !important;
  top: 50% !important;
  bottom: auto !important;
  width: auto !important;
  max-width: none !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
}
.impact_decor img.d-block {
  width: 240px;
  height: auto;
  display: block;
  content: url("../assets/hood-logo-1024.png");
}

/* ---------- footer wordmark replacement (logo + Hood Compute 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: 64px;
  height: 64px;
  background-image: url("../assets/hood-logo-512.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
  order: -2;
}
.section_footer .footer_bot::after {
  content: "Hood Compute";
  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/hood-logo-1024.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 76% auto;
  min-height: 620px;
  display: block;
}
.hero_grid.is-how-it-works .hero_image .lottie { display: none !important; }

@media (max-width: 991px) {
  /* below desktop the decor's right column collapses — flow it inline instead */
  .impact_decor {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 200px !important;
    transform: none !important;
    margin: 0 0 28px !important;
  }
}
@media (max-width: 768px) {
  .nav_brand::before { width: 56px; height: 56px; }
  .nav_brand::after { font-size: 20px; }
  .section_footer .footer_bot::before { width: 48px; height: 48px; }
  .section_footer .footer_bot::after { font-size: 18px; }
  .hero_grid.is-how-it-works .hero_image { min-height: 340px; background-size: 62% auto; }
}
