/* GUERIN TECH — native GhostCursor, no gray box, full letters */
.contact-lanyard-stage,
#contact-lanyard-root {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.contact-ghost-stage,
#contact-ghost-root,
.guerin-tech-ghost-container,
.guerin-tech-ghost-container .ghost-cursor,
.guerin-tech-ghost-container .ghost-cursor canvas {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
  filter: none;
}

.contact-ghost-stage {
  display: none;
  pointer-events: none;
  overflow: visible !important;
  isolation: auto;
  /* no fixed band — height comes from type only (kills gray slab) */
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

#contact-ghost-root {
  display: block;
  width: max-content;
  max-width: min(82vw, 1100px);
  height: auto;
  margin: 0 auto;
  overflow: visible !important;
  background: transparent !important;
}

.guerin-tech-ghost-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: min(82vw, 1100px);
  height: auto;
  margin: 0 auto;
  padding: 0.08em 0.12em;
  overflow: visible !important;
  pointer-events: auto;
  background: transparent !important;
}

.guerin-tech-text {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.25rem, 7.2vw, 140px);
  font-weight: 800;
  /* Slightly lifted charcoal so glyphs read as Boo! silhouettes over glow */
  color: #121214;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  text-align: center;
}

.guerin-tech-ghost-container .ghost-cursor {
  position: absolute;
  inset: -10% -3%;
  z-index: 0 !important;
  pointer-events: none;
  background: transparent !important;
}

.guerin-tech-ghost-container .ghost-cursor canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  mix-blend-mode: screen !important;
  opacity: 1 !important;
}

.contact-overlay.contact-overlay--success .contact-ghost-stage {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 901px) {
  .contact-overlay.is-active .contact-slide {
    position: relative;
    z-index: 5;
    isolation: auto;
    background: transparent !important;
    align-items: center;
    padding-bottom: clamp(120px, 18vh, 200px);
    box-sizing: border-box;
  }

  .contact-overlay.is-active .contact-slide-left {
    justify-content: flex-end;
    padding-left: clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(1rem, 2.5vw, 2rem);
  }

  .contact-overlay.is-active .contact-slide-right {
    justify-content: flex-start;
    padding-left: clamp(1rem, 2.5vw, 2rem);
    padding-right: clamp(1.5rem, 4vw, 3rem);
  }

  .contact-overlay.is-active .contact-slide-left .slide-content,
  .contact-overlay.is-active .contact-slide-left .contact-form-panel {
    margin-left: 0;
    margin-right: 0;
    align-self: flex-end;
  }

  .contact-overlay.is-active .contact-slide-right .slide-content,
  .contact-overlay.is-active .contact-slide-right .contact-query-panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start;
  }

  .contact-overlay.is-active .slide-content,
  .contact-overlay.is-active .contact-form-panel,
  .contact-overlay.is-active .contact-query-panel {
    position: relative;
    z-index: 6;
  }

  .contact-overlay.is-active .contact-ghost-stage {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    top: auto !important;
    bottom: 1rem;
    left: 50%;
    right: auto !important;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(82vw, 1100px);
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    z-index: 1;
    overflow: visible !important;
    pointer-events: none;
    background: transparent !important;
  }

  .contact-overlay.is-active .contact-ghost-stage .guerin-tech-ghost-container {
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .contact-overlay.is-active .contact-slide-left {
    order: 1;
  }

  .contact-overlay.is-active .contact-slide-right {
    order: 2;
  }

  .contact-overlay.is-active .contact-ghost-stage {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 auto;
    order: 3;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    margin: 1rem 0 calc(var(--space-6, 1.5rem) + env(safe-area-inset-bottom, 0px));
    z-index: 1;
    overflow: visible !important;
    pointer-events: auto;
    background: transparent !important;
  }

  .guerin-tech-text {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-ghost-stage {
    display: none !important;
  }
}
