/* Vanilla replacements for behaviors the former Webflow runtime provided:
   mobile nav toggle and scroll/load reveals. Loaded after styles.css so these
   rules win ties by source order. Paired with js/site.js. */

/* ---- Navbar floating background ----
   The Webflow runtime was applying this via inline styles at runtime. Without it
   the navbar is fully transparent and the hero gradient bleeds through.

   The frosted background lives on a ::before layer, NOT on the navbar itself, so
   the navbar never becomes a containing block. A non-`none` backdrop-filter on the
   navbar would anchor its `position: fixed` descendants (the mobile menu panel) to
   the ~80px-tall navbar instead of the viewport, collapsing the full-screen menu.
   (.w-nav:before/:after in styles.css is only a vestigial clearfix — this flex
   navbar has no floats to clear — so repurposing ::before is safe.) */
.navbar.w-nav {
  background-color: transparent;
}
.navbar.w-nav::before {
  content: "";
  /* Override the clearfix's `display: table`, which would otherwise shrink this
     absolutely-positioned box to 0×0 and ignore `inset: 0`, leaving the navbar
     transparent so scrolled page content bleeds through it. */
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(26, 15, 41, 0.85); /* --brand--purple-brand at 85% */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

/* ---- Mobile nav toggle ----
   Below 992px the menu is a full-screen fixed panel (styled in styles.css).
   styles.css leaves it hidden by default; js/site.js toggles `.nav-open` on the
   navbar to open it and swap the hamburger for the close icon. */
@media screen and (max-width: 991px) {
  .navbar.w-nav .nav-menu {
    display: none;
  }
  .navbar.w-nav.nav-open .nav-menu {
    display: block;
  }
  .navbar.w-nav.nav-open .menu-icon {
    display: none;
  }
  .navbar.w-nav.nav-open .menu-icon.close {
    display: flex;
  }
}

/* ---- Scroll/load reveals (replaces Webflow IX2) ----
   The hidden state only applies once site.js adds `js-reveal` to <html>, so if
   JS never runs nothing is permanently hidden. Reveals only fire >=992px, matching
   the original (mobile shows everything immediately). */
@media (min-width: 992px) {
  .reveal {
    transition:
      opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1),
      transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  html.js-reveal .reveal {
    opacity: 0;
  }
  html.js-reveal .reveal-down {
    transform: translateY(100px);
  }
  html.js-reveal .reveal-left {
    transform: translateX(-100px);
  }
  html.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* ============================================================
   Contact page — "Centered Focus" redesign.
   Self-contained, scoped under .contact-redesign so it can't leak
   into the rest of the Webflow-exported stylesheet. Colors reuse the
   site brand tokens (--brand--light-blue-brand cyan, --brand--lavender-brand
   purple, --brand--purple-brand ink); the rest are local design tokens.
   ============================================================ */
.contact-redesign {
  --cr-cyan: var(--brand--light-blue-brand); /* #00c4f0 */
  --cr-purple: var(--brand--lavender-brand); /* #9642f7 */
  --cr-ink: var(--brand--purple-brand); /* #1a0f29 */
  --cr-gradient: linear-gradient(120deg, #00c4f0, #9642f7);
  --cr-text-dim: rgba(255, 255, 255, 0.66);
  --cr-text-faint: rgba(255, 255, 255, 0.45);
  --cr-border: rgba(255, 255, 255, 0.1);
  --cr-border-2: rgba(255, 255, 255, 0.16);
  --cr-motion: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  overflow: hidden;
  background: radial-gradient(
      60% 50% at 82% 4%,
      rgba(0, 196, 240, 0.16),
      transparent 60%
    ),
    radial-gradient(
      55% 45% at 6% 22%,
      rgba(150, 66, 247, 0.18),
      transparent 60%
    ),
    radial-gradient(120% 100% at 50% 0%, #20003e 0%, #160b29 55%, #11071f 100%);
}

/* Soft CSS glows (replace the old ellipse-201/202 images). The radial
   gradients above already do the heavy lifting; these add a little extra
   bloom toward the top corners. */
.contact-redesign .cr-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.contact-redesign .cr-glow-cyan {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 360px;
  background: rgba(0, 196, 240, 0.18);
}
.contact-redesign .cr-glow-purple {
  top: 40px;
  left: -120px;
  width: 460px;
  height: 380px;
  background: rgba(150, 66, 247, 0.2);
}

.contact-redesign .cr-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 9rem 1.5rem 6rem; /* top clears the fixed navbar */
  text-align: center;
}

.contact-redesign .cr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr-cyan);
  white-space: nowrap;
}
.contact-redesign .cr-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cr-cyan);
}
.contact-redesign .cr-title {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: #fff;
}
.contact-redesign .cr-lede {
  max-width: 540px;
  margin: 20px auto 0;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--cr-text-dim);
}

/* ---- Glass form card ---- */
.contact-redesign .cr-card {
  position: relative;
  margin-top: 44px;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--cr-border);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.contact-redesign .cr-card-accent {
  display: block;
  height: 4px;
  background: var(--cr-gradient);
}
.contact-redesign .cr-card-body {
  padding: 38px 44px 40px;
}

/* ---- Form ---- */
.contact-redesign .cr-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
}
.contact-redesign .cr-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-redesign .cr-group + .cr-group {
  padding-top: 22px;
  border-top: 1px solid var(--cr-border);
}
.contact-redesign .cr-group-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cr-text-faint);
}
.contact-redesign .cr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-redesign .cr-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-redesign .cr-field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.contact-redesign .cr-req {
  color: var(--cr-cyan);
  font-weight: 700;
}
.contact-redesign .cr-opt {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cr-text-faint);
  text-transform: none;
}
.contact-redesign .cr-hint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cr-text-faint);
}

.contact-redesign .cr-control {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--cr-border-2);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition:
    border-color var(--cr-motion),
    box-shadow var(--cr-motion),
    background var(--cr-motion);
}
.contact-redesign .cr-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.contact-redesign .cr-control:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.contact-redesign .cr-control:focus {
  border-color: var(--cr-cyan);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 196, 240, 0.22);
}
.contact-redesign textarea.cr-control {
  min-height: 120px;
  line-height: 1.55;
  resize: vertical;
}
.contact-redesign select.cr-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.contact-redesign select.cr-control option {
  color: var(--cr-ink);
}

/* ---- Submit ---- */
.contact-redesign .cr-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-redesign .cr-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 16px 30px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--cr-gradient);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition:
    transform var(--cr-motion),
    box-shadow var(--cr-motion),
    filter var(--cr-motion);
}
.contact-redesign .cr-submit svg {
  width: 18px;
  height: 18px;
}
.contact-redesign .cr-submit:hover {
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 10px 30px rgba(150, 66, 247, 0.35);
}
.contact-redesign .cr-submit:active {
  transform: scale(0.985);
}
.contact-redesign .cr-privacy {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cr-text-faint);
}

/* Turnstile widget (injected by js/forms.js above the submit row) */
.contact-redesign .cf-turnstile {
  display: flex;
  justify-content: center;
}

/* Success / error states (preserve the existing copy + JS hooks) */
.contact-redesign .cr-message {
  margin: 0;
  border-radius: 16px;
  padding: 20px;
  font-weight: 500;
  text-align: center;
}
.contact-redesign .form_message-success.cr-message {
  background: var(--cr-cyan);
  color: var(--cr-ink);
}
.contact-redesign .form_message-error.cr-message {
  margin-top: 16px;
  background: rgba(255, 0, 137, 0.12);
  border: 1px solid rgba(255, 0, 137, 0.4);
  color: #ff7ab8;
}

/* ---- Trust strip ---- */
.contact-redesign .cr-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
}
.contact-redesign .cr-reply {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cr-text-dim);
}
.contact-redesign .cr-reply svg {
  width: 17px;
  height: 17px;
  color: var(--cr-cyan);
}
.contact-redesign .cr-divider {
  width: 1px;
  height: 22px;
  background: var(--cr-border-2);
}
.contact-redesign .cr-badges {
  height: 48px;
  width: auto;
}

@media screen and (max-width: 560px) {
  .contact-redesign .cr-glow {
    display: none;
  }
  .contact-redesign .cr-inner {
    padding: 7.5rem 1.25rem 4.5rem;
  }
  .contact-redesign .cr-card-body {
    padding: 28px 22px 30px;
  }
  .contact-redesign .cr-row {
    grid-template-columns: 1fr;
  }
  .contact-redesign .cr-trust {
    gap: 18px;
  }
  .contact-redesign .cr-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-redesign .cr-control,
  .contact-redesign .cr-submit {
    transition: none;
  }
}

/* Skip-to-content link: visually hidden until focused (keyboard bypass block) */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.625rem 1.25rem;
  background: #4d65ff;
  color: #fff;
  font-size: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0.5rem;
}
