/*
 * HomeAgain Services — responsive repairs
 * Kept separate from the bundled export so the original page and its imagery
 * remain untouched.
 */

/* Shared fonts and initial-page tokens are defined in loading.css. */

html, body, .sc-host * {
  scrollbar-width: thin;
  scrollbar-color: gray transparent;
}

:root, .sc-host, .hg-root {
  --font-ui: "Satoshi", sans-serif !important;
}

/* Headings retain the site's heading typeface, including nested title text.
   Body/UI overrides do not change any authored font size or line height. */
.sc-host :where(*):not(:is(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, .area-word, .es-title, .es-title *)),
.nojs-content {
  font-family: "Satoshi", sans-serif !important;
  font-weight: 500 !important;
}

.nojs-content :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Satoshi", sans-serif;
}

/* Active navigation is 200 heavier than the Satoshi 500 menu baseline. */
.sc-host .hg-side nav a[data-hg-nav-weight="600"],
.sc-host .hg-side nav a[data-hg-nav-weight="600"] * {
  font-weight: 700 !important;
}

/* The active section label gets a restrained size emphasis without changing
   the sidebar's layout or affecting the compact mobile menu. */
@media (min-width: 901px) {
  .sc-host .hg-side nav a {
    transform: scale(1);
    transform-origin: left center;
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
  }

  .sc-host .hg-side nav a[data-hg-nav-weight="600"] {
    transform: scale(1.03);
  }

  /* Keep the desktop estimate action balanced and on one line. */
  .hg-root .hg-side > .hg-mobile-menu > div > a[href="#estimate"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 0 12px !important;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  /* Desktop hero keeps the headline and supporting copy uncluttered. */
  .hg-root main > section:first-child div:has(> a[href="#estimate"]):has(> a[href="#transformation"]) {
    display: none !important;
  }
}

.sc-host :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading, "Satoshi", sans-serif) !important;
}

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: block !important;
  min-height: 100dvh;
  background-color: var(--color-bg, #f3f6fa) !important;
}

.hg-root {
  width: 100%;
  min-height: 100dvh;
}

.hg-root main {
  min-width: 0;
  max-width: 100%;
}

.hg-root main > * {
  min-width: 0;
}

.hg-root :is(#overview) > div:first-of-type {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)) !important;
}

[role="dialog"] :where(div, input, select, textarea) {
  min-width: 0;
}

[role="dialog"] :where(input, select, textarea) {
  width: 100%;
  box-sizing: border-box;
}

[role="dialog"] .g-gal + div {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important;
}

.hg-root img,
.hg-root svg,
.hg-root image-slot {
  max-width: 100%;
}

.hg-root :where(p, h1, h2, h3, a, button, dt, dd, label) {
  overflow-wrap: anywhere;
}

.hg-root :where(button, input, select, textarea) {
  font: inherit;
}

/* The project prompt is part of the mobile-only hero treatment. */
.hg-mobile-project-caption {
  display: none;
}

.hg-root :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #4056a1;
  outline-offset: 3px;
}

html[data-input-modality="pointer"] .hg-root a[href="#transformation"]:focus,
html[data-input-modality="pointer"] .hg-root a[href="#transformation"]:focus-visible,
html[data-input-modality="pointer"] .tf-close:focus,
html[data-input-modality="pointer"] .tf-close:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

.hg-menu-toggle {
  display: none;
}

/* The frosted step switcher sits separately above the process display. */

.hg-root .g-foot {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, .72fr));
}

.hg-root .g-foot > div > p {
  flex-wrap: wrap;
}

/* Keep the numbered service badge, without a countdown ring. */
.hg-root .svc-badge {
  flex: 0 0 36px;
  width: 36px !important;
  height: 36px !important;
}


.hg-root .hg-project-details:disabled {
  opacity: .5;
  cursor: not-allowed !important;
}


@media (max-width: 1000px) {
  .hg-root .g-foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hg-root .g-foot > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Use a compact, single-row header instead of the original 420px menu stack. */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 80px;
    scroll-behavior: auto !important;
  }

  .hg-root {
    display: block !important;
  }

  /* The exported image editor sets touch-action:none inside its shadow DOM.
     This decorative background must not intercept swipes over the hero text. */
  .hg-root #bfb-hero:not([data-editable]) {
    pointer-events: none !important;
  }

  .hg-root #bfb-hero:not([data-editable])::part(image) {
    pointer-events: none !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .hg-root > .hg-side {
    position: sticky !important;
    inset-block-start: 0;
    z-index: 50;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between !important;
    gap: 8px 16px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 28px) 10px !important;
    overflow: visible !important;
    background: #f7f9fc !important;
    border-bottom: 1px solid rgba(23, 36, 58, .12);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Avoid repainting blurred backgrounds and animating layout during swipes. */
  .hg-root [style*="backdrop-filter"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hg-root :is(.svc-car, .p-car) {
    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scroll-behavior: auto !important;
  }

  .hg-root :is(.reveal, .reveal.in, .card-m) {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    will-change: auto;
  }

  .hg-root .svc-card {
    transition: none !important;
    transform: none !important;
  }

  .hg-root .svc-card :is(h3, p, .btn) {
    animation: none !important;
  }

  /* Keep the restored timer without resizing cards on every advance.
     The native horizontal scroll animation does not block vertical panning. */
  .hg-root .svc-card {
    width: min(300px, calc(100vw - 64px)) !important;
    height: 420px !important;
    min-height: 420px !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  .hg-root .svc-card > div:last-child {
    position: static !important;
    inset-inline: auto !important;
    top: auto !important;
    width: 100% !important;
  }

  .hg-root .svc-card .svc-more p {
    min-height: 0 !important;
  }

  .hg-root .svc-card .svc-more .btn {
    margin-top: 0 !important;
  }

  .hg-root :is(.fq-body, .fq-body p, .fq-ic) {
    transition: none !important;
  }

  .hg-root .rx-flip {
    transition-duration: .2s;
  }

  .hg-side > a:first-child {
    min-height: 44px;
    margin: 0 !important;
    flex: 0 1 auto;
  }

  .hg-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 48px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #17243a;
    background: #f7f9fc;
    font-family: var(--font-ui, system-ui, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .hg-menu-toggle:hover {
      background: #eaf0f7;
      border-color: #9aacc2;
    }
  }

  .hg-menu-toggle:active {
    transform: scale(.98);
  }

  .hg-menu-icon {
    position: relative;
    display: block;
    width: 17px;
    height: 12px;
    border-top: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
  }

  .hg-menu-icon::after {
    position: absolute;
    inset-inline: 0;
    top: 4px;
    border-top: 1.7px solid currentColor;
    content: "";
  }

  .hg-side[data-menu-open="true"] .hg-menu-icon {
    height: 0;
    border: 0;
  }

  .hg-side[data-menu-open="true"] .hg-menu-icon::after {
    top: -1px;
    transform: rotate(45deg);
  }

  .hg-side[data-menu-open="true"] .hg-menu-icon::before {
    position: absolute;
    inset-inline: 0;
    top: -1px;
    border-top: 1.5px solid currentColor;
    content: "";
    transform: rotate(-45deg);
  }

  .hg-mobile-menu {
    position: fixed;
    inset: calc(64px + env(safe-area-inset-top, 0px)) 0 auto;
    z-index: 60;
    display: grid;
    align-content: start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px clamp(16px, 4vw, 28px) max(12px, env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(247,249,252,.74);
    box-shadow: 0 12px 28px rgba(23,36,58,.16), inset 0 1px 0 rgba(255,255,255,.48);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 280ms cubic-bezier(.22, 1, .36, 1),
      transform 280ms cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear 280ms;
  }

  .hg-side[data-menu-open="true"] .hg-mobile-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .hg-mobile-menu nav {
    display: grid !important;
    gap: 0 !important;
    padding: 0;
  }

  .hg-mobile-menu nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 12px 8px;
    border-bottom: 0;
    font-size: 16px !important;
    line-height: 24px !important;
    text-align: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
  }

  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(1) { transition-delay: 35ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(2) { transition-delay: 55ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(3) { transition-delay: 75ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(4) { transition-delay: 95ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(5) { transition-delay: 115ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(6) { transition-delay: 135ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(7) { transition-delay: 155ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(8) { transition-delay: 175ms; }
  .hg-side[data-menu-open="true"] .hg-mobile-menu nav a:nth-child(9) { transition-delay: 195ms; }

  .hg-mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .hg-mobile-menu > div {
    display: grid !important;
    gap: 0 !important;
    padding-top: 10px !important;
  }

  .hg-mobile-menu > div > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch !important;
    width: 100% !important;
    min-height: 48px;
    padding: 12px 18px !important;
    border: 1px solid #f8f8f6 !important;
    border-radius: 999px !important;
    background: #f8f8f6 !important;
    color: #23344f !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 7px rgba(23, 36, 58, .12);
  }

  .hg-root main {
    width: 100%;
  }

  .hg-root :where(button, .btn, [role="tab"]) {
    min-height: 44px;
  }

  .hg-root main > section:first-child {
    min-height: 0 !important;
  }

  [role="dialog"] {
    max-height: calc(100dvh - 24px) !important;
    overscroll-behavior: contain;
  }

  #estimate :where(input, select, textarea) {
    min-height: 44px;
    font-size: 16px !important;
  }

  [role="dialog"] :where(button, a.btn) {
    min-height: 44px;
  }

}

@media (max-width: 680px) {
  .hg-root #overview > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hg-root #overview > div > div:last-child {
    max-width: none !important;
  }

  .hg-root #overview > div > div:last-child p {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  .hg-root .g-three,
  .g-gal {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hg-root .g-foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px !important;
    row-gap: 28px;
  }

  .hg-root .g-foot > div:first-child {
    grid-column: 1 / -1;
  }

  .g-gal .frame {
    min-width: 0;
  }

  .hg-root footer > div:last-child {
    align-items: flex-start !important;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hg-root .g-foot > div:last-child > p {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .hg-root > .hg-side {
    gap: 6px 10px;
  }

  .hg-menu-toggle {
    padding-inline: 11px;
  }

  .hg-menu-toggle-label {
    font-size: 13px;
  }

  .hg-root main > section:first-child {
    padding-inline: 22px !important;
  }

  .hg-root main > section:first-child h1 {
    max-width: 10ch !important;
    font-size: clamp(44px, 13.4vw, 56px) !important;
    letter-spacing: -2.3px !important;
  }

  .hg-root main > section:first-child > div > div {
    gap: 24px !important;
  }

  .hg-root main > section:first-child > div > div > div {
    width: 100%;
  }

  .hg-root main > section:first-child .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px !important;
  }

  .hg-root main > section:not(:first-child):not(#hero-scroll),
  .hg-root footer {
    padding-inline: 20px !important;
  }

  .hg-root .rx-face {
    padding: 22px !important;
  }

  .hg-root :is(.svc-car, .p-car) {
    margin-inline: -20px !important;
    padding-inline: 20px !important;
    scroll-padding-inline: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-car,
  .p-car {
    scroll-behavior: auto !important;
  }

  .hg-menu-toggle,
  .hg-mobile-menu,
  .hg-mobile-menu nav a,
  .hg-mobile-chrome,
  .hg-mobile-announcement {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes hgMenuReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Background-clipped gradient text needs paint room below the last baseline,
   particularly for the final descender in “methodology”. Offset the extra
   padding so the surrounding section spacing stays unchanged. */
.hg-root #research h2 {
  padding-bottom: .14em;
  margin-bottom: -.14em !important;
}

.hg-root :is(.card-m, .svc-card, .svc-card h3, .svc-card p, .rx-card, .rx-face, .rx-num) {
  animation: none !important;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Research showcase: one generous split-card at a time, with the next
   conceptual study held in view as a quiet preview. */
.hg-root #research .hg-research-carousel {
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  margin-top: clamp(28px, 4vw, 48px);
}

.hg-root #research .hg-research-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 0 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.hg-root #research .hg-research-viewport::-webkit-scrollbar { display: none; }

.hg-root #research .rx-grid {
  display: flex !important;
  align-items: stretch !important;
  gap: clamp(16px, 2vw, 26px) !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box;
  padding-inline: 3%;
}

.hg-root #research .rx-grid > .hg-research-flip {
  position: relative !important;
  display: grid !important;
  flex: 0 0 74% !important;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr) !important;
  grid-template-rows: minmax(480px, 1fr) !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 480px !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 36, 58, .12) !important;
  border-radius: 22px !important;
  background: #f8fafc !important;
  box-shadow: 0 18px 50px rgba(23, 36, 58, .08), 0 2px 8px rgba(23, 36, 58, .035) !important;
  cursor: pointer;
  perspective: none !important;
  text-align: left;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  transition: box-shadow 240ms ease, border-color 240ms ease !important;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.hg-root #research .hg-research-stage {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 480px !important;
  overflow: visible !important;
  background: #dbe4ee;
  transform-style: flat;
  transform: none;
  transition: none !important;
}

.hg-root #research .hg-research-stage > .rx-face {
  position: relative !important;
  inset: auto !important;
  grid-area: 1 / 1 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.hg-root #research .hg-research-stage > .rx-front {
  z-index: 1;
  overflow: hidden !important;
  padding: 0 !important;
  background: #dbe4ee !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease-out, visibility 0s linear 220ms;
}

.hg-root #research .hg-research-flip[data-flipped="true"] .rx-front {
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease-out, visibility 0s linear 220ms;
}

.hg-root #research .hg-research-stage > .rx-back {
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease-out, visibility 0s linear 220ms;
}

.hg-root #research .hg-research-flip[data-flipped="true"] .rx-back {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease-out;
}

.hg-root #research .hg-research-stage > .rx-front img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  opacity: 1 !important;
  transform: scale(1);
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.hg-root #research .hg-research-stage > .rx-front[data-construction-data] {
  background: #fff !important;
}

.hg-root #research .hg-research-stage > .rx-front > :is(canvas, .hg-research-soon) {
  opacity: 1;
  transform: none;
  transition: none;
}

.hg-root #research .hg-research-soon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 7px 14px;
  border: 1px solid rgba(29, 36, 51, .14);
  border-radius: 999px;
  background: rgba(244, 246, 251, .88);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  color: #1d2433;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
}

.hg-root #research [data-graphic-entered="true"] .rx-front img {
  animation: hgResearchImageSettle 420ms cubic-bezier(.22, 1, .36, 1) 1 backwards;
}

@keyframes hgResearchImageSettle {
  from { transform: scale(1.015); }
  to { transform: scale(1); }
}

.hg-root #research .hg-research-stage > .rx-back {
  z-index: 0;
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  min-height: 480px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: clamp(24px, 3vw, 42px) !important;
  color: #eaf0f6 !important;
  background: #17243a !important;
  transform: none !important;
  overflow-wrap: anywhere;
}

.hg-root #research .rx-grid > .hg-research-flip[data-active="false"] {
  flex-basis: 23% !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.hg-root #research .hg-research-flip[data-active="false"] .hg-research-caption {
  display: none !important;
  pointer-events: none !important;
}

.hg-root #research .hg-research-flip[data-active="false"] .hg-research-stage {
  position: static !important;
  transform: none;
  transform-style: flat;
}

.hg-root #research .hg-research-flip[data-active="false"] .hg-research-stage > .rx-front {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
}

.hg-root #research .hg-research-flip[data-active="false"] .hg-research-stage > .rx-back {
  display: none !important;
}

.hg-root #research .hg-research-stage > .rx-back > div { flex-wrap: wrap; }

.hg-root #research .hg-research-stage > .rx-back h3 {
  margin: 0 !important;
  color: #f5f7fa !important;
  font-family: var(--font-heading, "Satoshi", sans-serif) !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.25 !important;
  letter-spacing: -.035em !important;
}

.hg-root #research .hg-research-stage > .rx-back p,
.hg-root #research .hg-research-stage > .rx-back li {
  color: #d0d9e4 !important;
  font-family: var(--font-ui, "Satoshi", sans-serif) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
}

.hg-root #research .hg-research-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(15px, 2vw, 24px);
  min-width: 0;
  padding: clamp(28px, 5vw, 68px);
  color: #17243a;
  background: #f8fafc;
}

.hg-root #research .hg-research-caption-title {
  margin: 0 !important;
  color: #17243a !important;
  font-family: var(--font-heading, "Satoshi", sans-serif) !important;
  font-size: clamp(26px, 3vw, 42px) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -.04em !important;
  text-wrap: balance;
}

.hg-root #research .hg-research-caption-copy {
  margin: 0 !important;
  max-width: 38ch;
  color: #606b79 !important;
  font-family: var(--font-ui, "Satoshi", sans-serif) !important;
  font-size: clamp(15px, 1.3vw, 17px) !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

.hg-root #research .hg-research-hint {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  margin-top: 3px;
  padding: 0 18px;
  border: 1px solid rgba(23, 36, 58, .18);
  border-radius: 999px;
  color: #17243a;
  background: #f8fafc;
  font-family: var(--font-ui, "Satoshi", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hg-root #research .hg-research-affordance {
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.hg-root #research .hg-research-flip:focus-visible {
  outline: 3px solid #4056a1 !important;
  outline-offset: 5px !important;
}

.hg-root #research .hg-research-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: max-content;
  max-width: 100%;
  margin: 20px auto 0;
}

.hg-root #research .hg-research-arrow {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #58677b;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hg-root #research .hg-research-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hg-root #research .hg-research-pagination {
  display: flex;
  align-items: center;
  gap: 0;
}

.hg-root #research .hg-research-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hg-root #research .hg-research-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 200ms ease;
}

.hg-root #research .hg-research-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c3ccd7;
  transition: width 200ms ease, background-color 200ms ease;
}

.hg-root #research .hg-research-dot[aria-current="true"]::before {
  width: 26px;
  border-radius: 999px;
  background: #4056a1;
}

.hg-root #research :is(.hg-research-arrow, .hg-research-dot):focus-visible {
  outline: 2px solid #4056a1;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hg-root #research .hg-research-flip:hover {
    border-color: rgba(23, 36, 58, .2) !important;
    box-shadow: 0 22px 60px rgba(23, 36, 58, .12), 0 3px 9px rgba(23, 36, 58, .04) !important;
  }
  .hg-root #research .hg-research-flip:hover .rx-front img { transform: scale(1.02); }
  .hg-root #research .hg-research-flip:hover .hg-research-hint {
    color: #f8fafc;
    border-color: #17243a;
    background: #17243a;
  }
  .hg-root #research .hg-research-arrow:hover {
    color: #17243a;
    background: rgba(218, 224, 231, .96);
  }
}

@container (max-width: 760px) {
  .hg-root #research .rx-grid {
    gap: 14px !important;
    padding-inline: 4%;
  }

  .hg-root #research .rx-grid > .hg-research-flip {
    flex-basis: 84% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    min-height: 680px !important;
    border-radius: 18px !important;
  }

  .hg-root #research .hg-research-stage {
    height: auto !important;
    min-height: 320px !important;
    aspect-ratio: auto;
  }

  .hg-root #research .hg-research-flip[data-active="false"] .hg-research-stage > .rx-front img {
    width: 100% !important;
  }

  .hg-root #research .hg-research-stage > .rx-back {
    min-height: min-content !important;
  }

  .hg-root #research .rx-grid > .hg-research-flip[data-active="false"] {
    flex-basis: 23% !important;
    grid-template-rows: minmax(680px, 1fr) !important;
  }

  .hg-root #research .hg-research-flip[data-flipped="true"] .hg-research-stage > .rx-back {
    min-height: min-content !important;
  }

  .hg-root #research .hg-research-caption { padding: 25px clamp(22px, 6vw, 36px) 28px; }
  .hg-root #research .hg-research-caption-title { font-size: clamp(25px, 7vw, 34px) !important; }
  .hg-root #research .hg-research-caption-copy { font-size: 16px !important; }
  .hg-root #research .hg-research-controls { margin-top: 15px; gap: 8px; }
  .hg-root #research .hg-research-viewport { scroll-padding-inline: 0; }
}

@media (max-width: 420px) {
  .hg-root #research .hg-research-stage > .rx-back { padding: 20px !important; }
  .hg-root #research .hg-research-stage > .rx-back p,
  .hg-root #research .hg-research-stage > .rx-back li { font-size: 14px !important; }
  .hg-root #research .hg-research-caption { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-root #research .hg-research-viewport { scroll-behavior: auto !important; }
  .hg-root #research .hg-research-stage,
  .hg-root #research .hg-research-stage img,
  .hg-root #research .hg-research-arrow,
  .hg-root #research .hg-research-dot,
  .hg-root #research .hg-research-hint,
  .hg-root #research .hg-research-flip { transition: none !important; }
  .hg-root #research .hg-research-stage img { opacity: 1; transform: none; }
  .hg-root #research [data-graphic-entered="true"] .rx-front img { animation: none !important; }
}

/* Research carousel: one active split card, centered, with the neighbouring
   studies peeking in as image-only cards. The track slides with one transform
   (--rc-i is the active index) while the active card widens and the previous
   one narrows. Stage and caption have fixed widths, so nothing reflows. */
.hg-root #research .hg-research-carousel {
  position: relative !important;
  padding-bottom: 56px;
}

.hg-root #research :is(.hg-research-viewport, .hg-research-controls) {
  --rc-a: min(76cqw, 960px);
  --rc-p: calc(var(--rc-a) * .5);
  --rc-gap: 24px;
  --rc-h: 600px;
}

.hg-root #research .hg-research-viewport {
  height: var(--rc-h);
  padding: 0 !important;
  box-sizing: border-box;
  overflow: clip !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  touch-action: pan-y pinch-zoom;
}

.hg-root #research .rx-grid {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: var(--rc-gap) !important;
  width: max-content !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  transform: translate3d(calc(50cqw - var(--rc-a) / 2 - var(--rc-i, 0) * (var(--rc-p) + var(--rc-gap))), 0, 0);
  transition: transform 500ms ease-in-out;
  will-change: transform;
}

.hg-root #research .rx-grid > .hg-research-flip {
  position: relative !important;
  display: block !important;
  flex: none !important;
  width: var(--rc-p) !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 32px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: width 500ms ease-in-out !important;
  scroll-snap-align: none !important;
}

.hg-root #research .rx-grid > .hg-research-flip[data-active="true"] {
  flex: none !important;
  width: var(--rc-a) !important;
}

.hg-root #research .rx-grid > .hg-research-flip[data-active="false"] { flex: none !important; }

/* The 1px border sits above the media so it never changes the layout. */
.hg-root #research .rx-grid > .hg-research-flip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 1px solid #e3e3e3;
  border-radius: inherit;
  pointer-events: none;
}

.hg-root #research .rx-grid > .hg-research-flip > .hg-research-stage {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: var(--rc-p) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
  transition: width 350ms cubic-bezier(.22, 1, .36, 1), height 350ms cubic-bezier(.22, 1, .36, 1) !important;
}

.hg-root #research .rx-grid > .hg-research-flip[data-flipped="true"] > .hg-research-stage {
  width: var(--rc-a) !important;
}

.hg-root #research .hg-research-stage > .rx-face,
.hg-root #research .hg-research-stage > .rx-back {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.hg-root #research .rx-grid > .hg-research-flip > .hg-research-caption {
  position: absolute;
  inset: 0 auto 0 var(--rc-p);
  display: flex;
  width: calc(var(--rc-a) - var(--rc-p));
  gap: 18px;
  min-height: 0;
  padding: clamp(24px, calc(var(--rc-a) * .055), 44px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.hg-root #research .rx-grid > .hg-research-flip[data-active="true"] > .hg-research-caption {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease 300ms, visibility 0s;
}

.hg-root #research .rx-grid > .hg-research-flip[data-flipped="true"] > .hg-research-caption {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.hg-root #research .hg-research-caption-title {
  font-size: clamp(24px, calc(var(--rc-a) * .052), 40px) !important;
}

.hg-root #research .hg-research-caption-copy {
  max-width: 34ch;
  font-size: clamp(14px, calc(var(--rc-a) * .024), 17px) !important;
  line-height: 1.55 !important;
}

.hg-root #research .hg-research-flip:focus-visible { outline-offset: -4px !important; }

.hg-root #research .hg-research-controls {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  pointer-events: none;
}

.hg-root #research .hg-research-arrow {
  position: absolute;
  top: calc(var(--rc-h) / 2);
  display: grid;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border: 0;
  color: #17243a;
  background: rgba(232, 236, 241, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
  pointer-events: auto;
  transform: translateY(-50%);
}

.hg-root #research .hg-research-arrow svg { width: 20px; height: 20px; stroke-width: 2; }
.hg-root #research .hg-research-arrow[hidden] { display: none !important; }
.hg-root #research .hg-research-arrow[data-research-previous] { left: 24px; }
.hg-root #research .hg-research-arrow[data-research-next] { right: 24px; }

.hg-root #research .hg-research-pagination {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  justify-content: center;
  pointer-events: auto;
}

.hg-root #research .hg-research-dot::before {
  width: 10px;
  height: 10px;
  border: 1.5px solid #5d6b7d;
  background: transparent;
}

.hg-root #research .hg-research-dot[aria-current="true"]::before {
  width: 10px;
  height: 10px;
  border-color: #17243a;
  background: #17243a;
}

/* Mid-size containers: the sidebar leaves less room, so the card is wider. */
@container (max-width: 899px) {
  .hg-root #research :is(.hg-research-viewport, .hg-research-controls) {
    --rc-a: 84cqw;
    --rc-gap: 20px;
    --rc-h: 560px;
  }
}

/* Narrow containers: stacked active card with the next card peeking right. */
@container (max-width: 699px) {
  .hg-root #research .hg-research-carousel { padding-bottom: 50px; }

  .hg-root #research :is(.hg-research-viewport, .hg-research-controls) {
    --rc-a: 88cqw;
    --rc-p: 40cqw;
    --rc-gap: 8px;
    --rc-h: 580px;
  }

  .hg-root #research .rx-grid {
    transform: translate3d(calc(3cqw - var(--rc-i, 0) * (var(--rc-p) + var(--rc-gap))), 0, 0);
  }

  .hg-root #research .rx-grid > .hg-research-flip { border-radius: 28px !important; }

  .hg-root #research .rx-grid > .hg-research-flip > .hg-research-stage,
  .hg-root #research .rx-grid > .hg-research-flip[data-flipped="true"] > .hg-research-stage {
    width: 100% !important;
  }

  .hg-root #research .rx-grid > .hg-research-flip[data-active="true"]:not([data-flipped="true"]) > .hg-research-stage {
    height: 55% !important;
  }

  .hg-root #research .rx-grid > .hg-research-flip > .hg-research-caption {
    inset: 55% auto 0 0;
    width: var(--rc-a);
    justify-content: flex-start;
    gap: 12px;
    padding: 20px 22px 18px;
  }

  .hg-root #research .hg-research-caption-title {
    font-size: clamp(23px, 6vw, 28px) !important;
    line-height: 1.15 !important;
  }

  .hg-root #research .hg-research-caption-copy {
    font-size: 14px !important;
    line-height: 1.48 !important;
  }

  .hg-root #research .hg-research-hint { min-height: 38px; margin-top: 0; }
  .hg-root #research .hg-research-arrow { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-root #research .rx-grid,
  .hg-root #research .rx-grid > .hg-research-flip,
  .hg-root #research .rx-grid > .hg-research-flip > .hg-research-stage,
  .hg-root #research .rx-grid > .hg-research-flip > .hg-research-caption,
  .hg-root #research .hg-research-stage img,
  .hg-root #research .hg-research-dot,
  .hg-root #research .hg-research-dot::before,
  .hg-root #research .hg-research-arrow {
    transition: none !important;
    animation: none !important;
  }
}

/* Buttons use quiet color transitions on fine pointers and only a small press
   response. Hover never lifts or scales the control. */
@media (prefers-reduced-motion: no-preference) {
  .hg-root a.btn,
  .hg-root button:not(:disabled) {
    transition:
      color 180ms ease-out,
      background-color 180ms ease-out,
      border-color 180ms ease-out,
      box-shadow 180ms ease-out,
      opacity 180ms ease-out,
      transform 120ms ease-out;
  }

  @media (hover: hover) and (pointer: fine) {
    .hg-root a.btn:hover,
    .hg-root button:not(:disabled):hover {
      transform: none;
    }
    .hg-root a.btn:hover {
      box-shadow: 0 6px 16px rgba(23, 36, 58, .08);
    }
    .hg-root button:not(:disabled):hover {
      box-shadow: none;
    }
  }

  @media (hover: none), (pointer: coarse) {
    .hg-root a.btn:hover,
    .hg-root button:not(:disabled):hover {
      transform: none;
      box-shadow: none;
    }
  }

  .hg-root a.btn:active,
  .hg-root button:not(:disabled):active {
    transform: scale(.98);
  }
}

/* The active card's picture keeps its resting size while the stage grows or
   shrinks around it, so returning from the details never re-crops the photo. */
.hg-root #research .rx-grid > .hg-research-flip[data-active="true"] > .hg-research-stage > .rx-front {
  width: var(--rc-p) !important;
  justify-self: start;
}

@container (max-width: 699px) {
  .hg-root #research .rx-grid > .hg-research-flip[data-active="true"] > .hg-research-stage > .rx-front {
    width: 100% !important;
    height: calc(var(--rc-h) * .55) !important;
    align-self: start;
  }
}

.hg-root #research .rx-grid > .hg-research-flip > .hg-research-stage { background: transparent !important; }

/* Keep selected-card copy anchored as card widths and content change. */
.hg-root #research .hg-research-flip[data-details-disabled="true"][data-active="true"] {
  cursor: default !important;
}

.hg-root #research [data-details-disabled="true"] .hg-research-hint {
  opacity: .4;
  cursor: not-allowed;
}

.hg-root .svc-card h3 {
  animation: none !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

.hg-root #services .svc-card[data-on="true"] h3 {
  color: #17243a !important;
}

.hg-root .svc-card {
  position: relative !important;
}

.hg-root .svc-card > div:last-child {
  position: absolute !important;
  top: 50% !important;
  inset-inline: clamp(22px, 2vw, 29px) !important;
}

.hg-root #research .hg-research-caption {
  justify-content: flex-start !important;
}

.hg-root #research .hg-research-stage > .rx-back {
  justify-content: flex-start !important;
}

/* Give research-card titles and supporting copy more room to read. */
.hg-root #research .hg-research-stage > .rx-back h3 {
  font-size: clamp(24px, 2.6vw, 34px) !important;
}

.hg-root #research .hg-research-stage > .rx-back p,
.hg-root #research .hg-research-stage > .rx-back li {
  font-size: 17px !important;
}

.hg-root #research .hg-research-caption-title {
  font-size: clamp(26px, calc(var(--rc-a) * .055), 42px) !important;
}

.hg-root #research .hg-research-caption-copy {
  font-size: clamp(16px, calc(var(--rc-a) * .028), 19px) !important;
}

@container (max-width: 699px) {
  .hg-root #research .hg-research-caption-title {
    font-size: clamp(25px, 6.4vw, 30px) !important;
  }

  .hg-root #research .hg-research-caption-copy {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .hg-root #research .hg-research-stage > .rx-back h3 {
    font-size: 25px !important;
  }

  .hg-root #research .hg-research-stage > .rx-back p,
  .hg-root #research .hg-research-stage > .rx-back li {
    font-size: 16px !important;
  }
}

/* Phones: 44px tap targets and a 14px minimum for small labels. The page
   sets these sizes inline, so the legacy overrides need !important. */
@media (max-width: 767px) {
  footer.ha-footer a,
  .hg-privacy-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  footer.ha-footer .ft-text-xs,
  footer.ha-footer nav[aria-label="Legal"] a {
    font-size: 14px;
    line-height: 20px;
  }

  .hg-menu-toggle-label,
  .hg-privacy-note,
  .sc-host [style*="font-size: 12px"],
  .sc-host [style*="font-size: 12.5px"],
  .sc-host [style*="font-size: 13px"] {
    font-size: 14px !important;
  }
}

/* The phone hero uses the existing HomeAgain project photos and overlays the
   compact announcement/header on top without taking space from the first view. */
.hg-mobile-announcement,
.hg-mobile-estimate,
.hg-mobile-hero-photo,
.hg-mobile-hero-shade,
.hg-mobile-project-card {
  display: none;
}

@media (max-width: 767px) {
  html,
  body {
    scroll-padding-top: 64px;
  }

  .hg-root .hg-mobile-announcement {
    display: flex;
    position: relative;
    z-index: 2;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    padding: 0 36px 0 12px;
    background: #17243a;
    color: #f7f8fa;
    font: 400 12px/1.2 "Satoshi", sans-serif;
    letter-spacing: .005em;
    text-align: center;
    transition: opacity 220ms cubic-bezier(.22,1,.36,1), transform 220ms cubic-bezier(.22,1,.36,1);
  }

  .hg-mobile-announcement p {
    max-width: calc(100% - 40px);
    margin: 0;
    color: inherit;
    white-space: normal;
  }

  .hg-mobile-announcement a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }

  .hg-mobile-announcement-close {
    position: absolute;
    inset: 0 3px 0 auto;
    width: 44px;
    min-height: 44px !important;
    padding: 0;
    border: 0;
    color: rgba(255,255,255,.8);
    background: transparent;
    font: 300 20px/1 "Satoshi", sans-serif;
    cursor: pointer;
  }

  .hg-root .hg-mobile-chrome {
    position: fixed;
    inset: env(safe-area-inset-top, 0px) 0 auto;
    z-index: 80;
    display: flex;
    width: 100%;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 260ms cubic-bezier(.22,1,.36,1);
  }

  .hg-mobile-chrome[data-past-hero="true"],
  .hg-mobile-chrome[data-announcement-dismissed="true"] {
    transform: translateY(-58px);
  }

  .hg-mobile-chrome[data-past-hero="true"] .hg-mobile-announcement,
  .hg-mobile-chrome[data-announcement-dismissed="true"] .hg-mobile-announcement {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
  }

  .hg-root .hg-mobile-chrome > .hg-side {
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    display: flex !important;
    width: 100%;
    height: 60px !important;
    min-height: 60px !important;
    max-height: none !important;
    flex: 0 0 60px !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    padding: 6px 16px !important;
    overflow: visible !important;
    border: 0;
    background: transparent !important;
    box-shadow: none;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: background-color 240ms ease-out, border-color 240ms ease-out;
  }

  .hg-mobile-chrome[data-past-hero="true"] .hg-side {
    border-bottom: 1px solid rgba(23,36,58,.1);
    background: rgba(247,249,252,.98) !important;
  }

  .hg-mobile-chrome > .hg-side > a:first-child {
    min-height: 44px;
    margin: 0 auto 0 0 !important;
    flex: 0 1 auto;
    gap: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(0,0,0,.2);
  }

  .hg-mobile-chrome[data-past-hero="true"] > .hg-side > a:first-child {
    color: #17243a !important;
    text-shadow: none;
  }

  .hg-mobile-chrome .hg-mobile-estimate {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #17243a !important;
    background: rgba(247,249,252,.9);
    background: linear-gradient(145deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.7) 48%, rgba(235,240,247,.62) 100%);
    font: 500 13px/1 "Satoshi", sans-serif !important;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    backdrop-filter: blur(22px) saturate(165%);
    box-shadow:
      0 8px 24px rgba(10,18,29,.18),
      0 2px 6px rgba(10,18,29,.08);
    transition: box-shadow 180ms ease-out, transform 180ms ease-out;
  }

  .hg-mobile-chrome .hg-menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #17243a;
    background: rgba(247,249,252,.9);
    background: linear-gradient(145deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.7) 48%, rgba(235,240,247,.62) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    backdrop-filter: blur(22px) saturate(165%);
    box-shadow:
      0 8px 24px rgba(10,18,29,.18),
      0 2px 6px rgba(10,18,29,.08);
    transition: box-shadow 180ms ease-out, transform 180ms ease-out;
  }

  .hg-mobile-chrome .hg-mobile-estimate:focus-visible,
  .hg-mobile-chrome .hg-menu-toggle:focus-visible,
  .hg-mobile-project-plus:focus-visible {
    outline: 2px solid rgba(255,255,255,.96);
    outline-offset: 3px;
  }

  @media (hover: hover) and (pointer: fine) {
    .hg-mobile-chrome .hg-mobile-estimate:hover,
    .hg-mobile-chrome .hg-menu-toggle:hover,
    .hg-mobile-project-plus:hover {
      box-shadow:
        0 10px 28px rgba(10,18,29,.2),
        0 3px 8px rgba(10,18,29,.1);
      transform: translateY(-1px);
    }
  }

  .hg-mobile-chrome .hg-menu-toggle-label {
    display: none;
  }

  .hg-mobile-chrome .hg-menu-icon {
    width: 17px;
    height: 12px;
  }

  .hg-mobile-chrome .hg-mobile-menu {
    inset: 138px 16px auto;
    width: auto;
    max-width: 460px;
    margin-inline: auto;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 140px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 20px;
    background: rgba(247,249,252,.72);
    box-shadow: 0 18px 44px rgba(10,18,29,.2), inset 0 1px 0 rgba(255,255,255,.5);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
  }

  .hg-mobile-chrome[data-past-hero="true"] .hg-mobile-menu {
    inset-block-start: 138px;
    max-height: calc(100dvh - 140px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .hg-mobile-chrome[data-announcement-dismissed="true"] .hg-mobile-menu {
    inset-block-start: 138px;
    max-height: calc(100dvh - 140px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .hg-root main > section:first-child {
    position: relative !important;
    width: 100%;
    height: 100vh !important;
    height: 100svh !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    max-height: none;
    padding: 0 !important;
    overflow: hidden;
    isolation: isolate;
    background: #17243a !important;
  }

  .hg-root #bfb-hero {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hg-root .hg-legacy-hero-shade {
    z-index: 1 !important;
    display: block !important;
  }

  .hg-root main > section:first-child > div:not([aria-hidden]):not(.hg-mobile-hero-photo):not(.hg-mobile-project-wrap) {
    position: absolute !important;
    top: 47% !important;
    left: 50%;
    width: min(100% - 36px, 620px);
    padding: 0 !important;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 3;
  }

  .hg-root main > section:first-child h1 {
    display: flex;
    max-width: none !important;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin: 0 !important;
    color: #fff;
    font-size: clamp(27px, 8.2vw, 39px) !important;
    font-weight: 400 !important;
    line-height: 1.05 !important;
    letter-spacing: -.045em !important;
    text-align: center;
    text-wrap: balance;
  }

  .hg-root main > section:first-child .hg-mobile-title-serif {
    font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif !important;
    font-size: clamp(32px, 9vw, 43px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: -.045em !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    white-space: nowrap;
  }

  .hg-root main > section:first-child .hg-mobile-title-sans {
    font-family: "Satoshi", sans-serif !important;
    font-size: clamp(24px, 7vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    white-space: nowrap;
  }

  .hg-root main > section:first-child > div:not([aria-hidden]):not(.hg-mobile-hero-photo) > div {
    display: block !important;
    margin-top: 0 !important;
  }

  .hg-root main > section:first-child > div:not([aria-hidden]):not(.hg-mobile-hero-photo) > div > div {
    display: none !important;
  }

  .hg-root main > section:first-child > div:not([aria-hidden]):not(.hg-mobile-hero-photo) > div > p {
    display: block !important;
    width: 100%;
    max-width: min(37ch, 100%) !important;
    margin: 16px auto 0 !important;
    color: rgba(255,255,255,.86) !important;
    font: 500 clamp(14px, 3.85vw, 16px)/1.48 "Satoshi", sans-serif !important;
    letter-spacing: .005em;
    text-align: center !important;
    text-wrap: pretty;
  }

  .hg-root .hg-mobile-project-wrap {
    position: absolute;
    right: clamp(16px, 5vw, 24px);
    bottom: max(22px, env(safe-area-inset-bottom, 0px));
    z-index: 2;
    display: flex;
    width: clamp(176px, 58vw, 260px);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    pointer-events: none;
  }

  .hg-mobile-project-caption {
    display: block;
    width: 100%;
    margin: 0;
    color: rgba(255,255,255,.94);
    font: 500 clamp(12px, 3vw, 13px)/1.35 "Satoshi", sans-serif;
    letter-spacing: .005em;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 1px 12px rgba(0,0,0,.46);
    pointer-events: none;
  }

  .hg-root .hg-mobile-project-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.55;
    flex: 0 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background-color: #d4d1cc;
    box-shadow: 0 10px 26px rgba(10,18,29,.22), 0 2px 8px rgba(10,18,29,.1);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
  }

  .hg-mobile-project-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
  }

  .hg-mobile-project-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
  }

  .hg-root .hg-mobile-project-card::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 52%, rgba(15,23,42,.14));
    content: "";
  }

  .hg-mobile-project-label {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    display: inline-flex;
    max-width: calc(100% - 14px);
    align-items: center;
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    color: #fff;
    background: rgba(15,23,42,.62);
    font: 500 clamp(12px, 3vw, 13px)/1 "Satoshi", sans-serif;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .hg-mobile-project-plus {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: grid;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.7);
    place-items: center;
    border-radius: 50%;
    color: #17243a;
    background: rgba(247,249,252,.9);
    background: linear-gradient(145deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.72) 55%, rgba(235,240,247,.64) 100%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow:
      0 6px 18px rgba(10,18,29,.17),
      inset 0 1px 0 rgba(255,255,255,.98),
      inset 0 -1px 0 rgba(23,36,58,.08);
    font: 300 24px/1 "Satoshi", sans-serif;
    transition: box-shadow 180ms ease-out, transform 180ms ease-out;
  }

  @media (max-width: 360px) {
    .hg-root .hg-mobile-chrome > .hg-side {
      gap: 6px;
      padding-inline: 12px !important;
    }

    .hg-mobile-chrome .hg-mobile-estimate {
      padding-inline: 9px;
      font-size: 12px !important;
    }

    .hg-root main > section:first-child .hg-mobile-title-serif {
      font-size: clamp(29px, 9.2vw, 33px) !important;
    }

    .hg-root main > section:first-child .hg-mobile-title-sans {
      font-size: clamp(22px, 6.9vw, 25px) !important;
    }
  }
}

.hg-side > a:first-child > span > span,
footer .g-foot > div:first-child > a > span > span {
  background: transparent !important;
}

.hg-side > a:first-child > span,
footer .g-foot > div:first-child > a > span {
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask-repeat: no-repeat;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  mask-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .hg-mobile-chrome,
  .hg-mobile-announcement,
  .hg-mobile-estimate {
    transition: none !important;
  }
}
