/* V164 — consistent controls, spacing and resilient mobile hero. Copy is unchanged. */
html body[data-v164="true"]{
  --v164-gutter:16px;
  --v164-control-radius:15px;
  --v164-control-height:54px;
}

/* A single control geometry and a single drawn chevron for actions. */
html body[data-v164="true"] .button,
html body[data-v164="true"] #services .service-copy-v107 button,
html body[data-v164="true"] #property .property45-cta-v75 button,
html body[data-v164="true"] #pricing .pricing-early-cta-v126 button,
html body[data-v164="true"] #faq .faq-chat-foot-v122 button,
html body[data-v164="true"] .contact-picker-lead-v100,
html body[data-v164="true"] [data-lead-submit]{
  min-height:var(--v164-control-height)!important;
  height:auto!important;
  border-radius:var(--v164-control-radius)!important;
  box-sizing:border-box!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.25!important;
  white-space:normal!important;
}
html body[data-v164="true"] .ui-arrow-v140{display:none!important}
html body[data-v164="true"] .button.button-gold:not(.button-phone-v98),
html body[data-v164="true"] .button.button-light:not(.button-phone-v98),
html body[data-v164="true"] #services .service-copy-v107 button,
html body[data-v164="true"] #property .property45-cta-v75 button,
html body[data-v164="true"] #pricing .pricing-early-cta-v126 button,
html body[data-v164="true"] #faq .faq-chat-foot-v122 button,
html body[data-v164="true"] .contact-picker-lead-v100,
html body[data-v164="true"] [data-lead-submit]{position:relative!important;padding:12px 42px 12px 18px!important}
html body[data-v164="true"] .button.button-gold:not(.button-phone-v98)::after,
html body[data-v164="true"] .button.button-light:not(.button-phone-v98)::after,
html body[data-v164="true"] #services .service-copy-v107 button::after,
html body[data-v164="true"] #property .property45-cta-v75 button::after,
html body[data-v164="true"] #pricing .pricing-early-cta-v126 button::after,
html body[data-v164="true"] #faq .faq-chat-foot-v122 button::after,
html body[data-v164="true"] .contact-picker-lead-v100::after,
html body[data-v164="true"] [data-lead-submit]::after,
html body[data-v164="true"] #quiz [data-quiz-next]::after{
  content:""!important;display:block!important;width:9px!important;height:9px!important;
  position:absolute!important;left:auto!important;right:18px!important;top:50%!important;
  border:0!important;border-top:2px solid currentColor!important;border-right:2px solid currentColor!important;
  border-radius:0!important;background:none!important;box-shadow:none!important;
  transform:translateY(-50%) rotate(45deg)!important;font-size:0!important;
}
html body[data-v164="true"] #quiz [data-quiz-prev]::after{display:none!important;content:none!important}
html body[data-v164="true"] .button-phone-v98::after{display:none!important;content:none!important}

/* Carousel buttons share one circular size and the same chevron stroke. */
html body[data-v164="true"] button[data-carousel-prev],
html body[data-v164="true"] button[data-carousel-next]{
  width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
  padding:0!important;border-radius:50%!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
}
html body[data-v164="true"] button[data-carousel-prev]::after,
html body[data-v164="true"] button[data-carousel-next]::after{
  content:""!important;display:block!important;width:10px!important;height:10px!important;
  border:0!important;border-top:2px solid currentColor!important;border-right:2px solid currentColor!important;
  background:none!important;color:#102f50!important;font-size:0!important;
  transform:rotate(45deg)!important;
}
html body[data-v164="true"] button[data-carousel-prev]::after{transform:rotate(225deg)!important}
html body[data-v164="true"] .carousel-controls-v58,
html body[data-v164="true"] .cases-controls-v129{gap:10px!important}

/* The pricing button should not float alone inside a very tall empty row. */
html body[data-v164="true"] #pricing .pricing-early-cta-v126{
  min-height:0!important;padding:14px 16px!important;align-items:center!important;
}

@media(max-width:699px){
  html body[data-v164="true"]{--v164-control-height:56px;--v164-control-radius:16px}
  html body[data-v164="true"] .container{width:calc(100% - 2 * var(--v164-gutter))!important;max-width:none!important;margin-inline:auto!important}
  html body[data-v164="true"] main>section{scroll-margin-top:88px}
  html body[data-v164="true"] .section-heading{margin-bottom:22px!important}

  /* One image and a translucent copy field; controls remain in document flow. */
  html body[data-v164="true"] #top{
    height:auto!important;max-height:none!important;
    min-height:max(610px,calc(100svh - 78px))!important;overflow:hidden!important;
    position:relative!important;background:#fbf7ef!important;
  }
  html body[data-v164="true"] #top .hero-content{
    width:100%!important;max-width:none!important;margin:0!important;
    min-height:max(610px,calc(100svh - 78px))!important;height:auto!important;
    padding:20px var(--v164-gutter) 18px!important;display:flex!important;box-sizing:border-box!important;
  }
  html body[data-v164="true"] #top .hero-copy,
  html body[data-v164="true"] #top .hero-copy .hero-text-v64{
    position:relative!important;display:flex!important;flex-direction:column!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    min-height:0!important;flex:1 1 auto!important;margin:0!important;padding:0!important;
    transform:none!important;align-self:stretch!important;box-sizing:border-box!important;
  }
  html body[data-v164="true"] #top .hero-copy .hero-text-v64::before{
    content:""!important;position:absolute!important;z-index:-1!important;
    inset:-8px auto 142px -16px!important;width:min(82vw,340px)!important;
    border-radius:0!important;filter:blur(5px)!important;
    background:linear-gradient(90deg,rgba(251,247,239,.99) 0%,rgba(251,247,239,.96) 57%,rgba(251,247,239,.72) 79%,rgba(251,247,239,0) 100%)!important;
    pointer-events:none!important;
  }
  html body[data-v164="true"] #top .hero-media-v57,
  html body[data-v164="true"] #top .hero-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important}
  html body[data-v164="true"] #top .hero-media-v57 .hero-photo img{
    width:100%!important;height:100%!important;object-fit:cover!important;
    object-position:0 0!important;transform:translateX(6%) scale(1.06)!important;
    transform-origin:right top!important;max-width:none!important;
  }
  html body[data-v164="true"] #top .hero-media-v57 .hero-wash{
    background:linear-gradient(90deg,rgba(251,247,239,.65) 0%,rgba(251,247,239,.52) 44%,rgba(251,247,239,.09) 72%,transparent 90%),
               linear-gradient(0deg,rgba(251,247,239,.84) 0%,rgba(251,247,239,.22) 22%,transparent 43%)!important;
  }
  html body[data-v164="true"] #top .hero-top-v151{
    position:relative!important;inset:auto!important;width:min(72%,272px)!important;
    max-width:272px!important;margin:0!important;padding:0!important;
  }
  html body[data-v164="true"] #top .hero-copy h1{font-size:clamp(31px,8.7vw,36px)!important;line-height:1.01!important;letter-spacing:-.044em!important}
  html body[data-v164="true"] #top .hero-main-v157{white-space:normal!important;overflow-wrap:normal!important}
  html body[data-v164="true"] #top .hero-gold-tail-v157{font-size:.76em!important;line-height:1.08!important;margin-top:8px!important}
  html body[data-v164="true"] #top .hero-bottom-v151{
    display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
    position:static!important;width:100%!important;min-height:0!important;height:auto!important;
    margin:0!important;padding:0!important;
  }
  html body[data-v164="true"] #top .hero-lead-v89{width:min(72%,272px)!important;max-width:272px!important;margin:15px 0 0!important}
  html body[data-v164="true"] #top .hero-lead-v89 strong{font-size:clamp(15.5px,4vw,17px)!important;line-height:1.34!important}
  html body[data-v164="true"] #top .hero-actions{
    position:static!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;max-width:none!important;display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
    margin:auto 0 0!important;padding:22px 0 0!important;
  }
  html body[data-v164="true"] #top .hero-actions .button{
    width:100%!important;min-height:58px!important;height:auto!important;
    padding:12px 44px 12px 18px!important;font-size:16px!important;
  }
  html body[data-v164="true"] #top .hero-stats-v157{display:none!important}

  /* Match section and card edges across the long page. */
  html body[data-v164="true"] .trust-strip-v74{padding:16px var(--v164-gutter) 22px!important}
  html body[data-v164="true"] .trust-strip-v74 .container{width:100%!important}
  html body[data-v164="true"] #services .service-grid-v107,
  html body[data-v164="true"] #property .property45-grid-v75,
  html body[data-v164="true"] #process .process-grid-v59,
  html body[data-v164="true"] #bankruptcy-facts .facts-grid-v59{gap:12px!important}
  html body[data-v164="true"] #services .service-copy-v107 button,
  html body[data-v164="true"] #property .property45-cta-v75 button,
  html body[data-v164="true"] #pricing .pricing-early-cta-v126 button,
  html body[data-v164="true"] #faq .faq-chat-foot-v122 button,
  html body[data-v164="true"] #quiz .quiz-actions .button,
  html body[data-v164="true"] #contacts .final-actions .button{
    min-height:56px!important;height:auto!important;font-size:15.5px!important;
  }
  html body[data-v164="true"] #pricing .pricing-early-cta-v126{padding:12px!important}
  html body[data-v164="true"] #pricing .pricing-early-cta-v126 button{width:100%!important}
  html body[data-v164="true"] #faq summary{min-height:56px!important}
  html body[data-v164="true"] .site-footer .footer-grid-v59,
  html body[data-v164="true"] .site-footer .footer-mobile-links-v75{max-width:100%!important}

  /* Rails scroll by touch; their arrows must not cover mobile content. */
  html body[data-v164="true"] #cases .cases-controls-v129,
  html body[data-v164="true"] #clients .clients-toolbar-v89,
  html body[data-v164="true"] #reviews .reviews-toolbar-v58,
  html body[data-v164="true"] #company .team-unified-toolbar-v85{display:none!important}
  html body[data-v164="true"] .messenger-float-v48{right:max(12px,env(safe-area-inset-right))!important}
}
@media(max-width:360px){
  html body[data-v164="true"] #top,
  html body[data-v164="true"] #top .hero-content{min-height:max(600px,calc(100svh - 78px))!important}
  html body[data-v164="true"] #top .hero-top-v151,
  html body[data-v164="true"] #top .hero-lead-v89{width:73%!important}
  html body[data-v164="true"] #top .hero-copy h1{font-size:30px!important}
  html body[data-v164="true"] #top .hero-gold-tail-v157{font-size:.75em!important}
  html body[data-v164="true"] #top .hero-actions{gap:8px!important;padding-top:16px!important}
  html body[data-v164="true"] #top .hero-actions .button{min-height:56px!important}
}
