/* ============================================================
   OBELISK 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 + OBELISK text */
.nav_brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}
.nav_brand::before {
  content: "";
  display: inline-block;
  width: 58px;
  height: 58px;
  background-image: url("../assets/obelisk-logo-512.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
}
.nav_brand::after {
  content: "OBELISK";
  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: 380px !important;
  margin: 32px auto 32px 0 !important; /* push logo to the LEFT within its grid cell */
  opacity: 0.9;
  pointer-events: none;
  transform: translateX(-8%);
}
.impact_decor img.d-block {
  width: 100%;
  height: auto;
  display: block;
  content: url("../assets/obelisk-logo-512.png");
}

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

@media (max-width: 768px) {
  .nav_brand::before { width: 44px; height: 44px; }
  .nav_brand::after { font-size: 20px; }
  .section_footer .footer_bot::before { width: 40px; height: 40px; }
  .section_footer .footer_bot::after { font-size: 18px; }
  .impact_decor { max-width: 200px !important; transform: none; }
  .hero_grid.is-how-it-works .hero_image { min-height: 340px; background-size: 60% auto; }
}
