.vg-nav-host:has(.vg-quick-families) .vg-nav-shell {
  width: min(1392px, calc(100% - 2 * var(--vg-side)));
}

.vg-nav-bar:has(.vg-quick-families) {
  gap: clamp(10px, 1vw, 18px);
}

.vg-quick-families {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.vg-quick-families .vg-quick-family {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 38px;
  padding-inline: clamp(7px, .7vw, 12px);
  border-radius: 9px;
  color: #202327;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -.025em;
  transition: background-color .15s ease, color .15s ease;
}

.vg-quick-family:is([data-current], [aria-expanded="true"], [aria-current]:not([aria-current="false"])) {
  color: #193d98;
  background-color: #eef2fa;
}

@media (hover: hover) {
  .vg-quick-families .vg-quick-family:hover {
    color: #13171e;
    background-color: #eff1f4;
  }
}

.vg-nav-shell .vg-quick-family:focus-visible {
  outline-offset: -2px;
}

.vg-nav-host:has(.vg-quick-families) .vg-nav-body {
  max-height: calc(100dvh - var(--vg-top) - max(12px, env(safe-area-inset-bottom)));
}

@media (min-width: 1216px) and (max-width: 1439px) {
  .vg-nav-bar:has(.vg-quick-families) .vg-nav-specialty { display: none; }
}

@media (max-width: 1215px) {
  .vg-nav-host:has(.vg-quick-families) {
    --vg-quick-row: 45px;
    --vg-quick-height: calc(var(--vg-bar) + var(--vg-quick-row));
    height: calc(var(--vg-top) + var(--vg-quick-height) + 12px);
  }

  main > .vg-nav-host:has(.vg-quick-families):has(+ .project-hero) {
    height: calc(max(16px, env(safe-area-inset-top)) + var(--vg-quick-row));
  }

  body:has(> #main[data-vg-family]) > .vg-nav-host:has(.vg-quick-families) {
    height: calc(18px + var(--vg-quick-row));
  }

  html:has(.vg-nav-host .vg-quick-families) {
    scroll-padding-top: calc(106px + max(12px, env(safe-area-inset-top)));
  }

  .vg-nav-host:has(.vg-quick-families) .vg-nav-shell {
    min-height: var(--vg-quick-height);
  }

  .vg-nav-host:has(.vg-quick-families) .vg-nav-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: calc(var(--vg-bar) - 2px) var(--vg-quick-row);
    gap: 0 12px;
    height: calc(var(--vg-quick-height) - 2px);
    padding-inline: 12px;
  }

  .vg-nav-bar:has(.vg-quick-families) .vg-nav-specialty {
    grid-area: 1 / 2;
  }

  .vg-nav-bar:has(.vg-quick-families) .vg-nav-compact {
    grid-area: 1 / 3;
    margin: 0;
  }

  .vg-nav-host[data-vg-ready]:has(.vg-quick-families) .vg-nav-compact {
    margin-inline-end: 104px;
  }

  .vg-quick-families {
    grid-area: 2 / 1 / 3 / -1;
    align-self: stretch;
    justify-content: safe center;
    gap: 3px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    border-top: 1px solid #e4e7eb;
  }

  .vg-quick-families::-webkit-scrollbar { display: none; }

  .vg-quick-families .vg-quick-family {
    min-height: 42px;
    padding-inline: 12px;
  }
}

@media (max-width: 700px) {
  .vg-nav-host:has(.vg-quick-families) .vg-nav-bar { gap: 0 5px; padding-inline: 9px; }
  .vg-nav-host[data-vg-ready]:has(.vg-quick-families) .vg-nav-compact { margin-inline-end: 80px; }
  .vg-quick-families { gap: 1px; }
  .vg-quick-families .vg-quick-family { padding-inline: 12px; }
}

/* Each column is an independent list: opening a long branch leaves its
   neighbours in place. The source order is also the mobile reading order. */
.vg-drill-list,
.vg-drill-resources {
  --tree-rule: #dce1e6;
  --tree-indent: clamp(10px, 1.15vw, 18px);
  --tree-duration: 280ms;
  --tree-ease: cubic-bezier(.22, .68, .21, 1);
}

.vg-drill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(32px, 5.3vw, 76px);
  margin-top: clamp(16px, 1.7vw, 25px);
  min-width: 0;
}

.vg-drill-column,
.vg-drill-nested,
.vg-drill-resource-list {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vg-drill-item {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.vg-drill-column > .vg-drill-item { border-top: 1px solid var(--tree-rule); }

.vg-nav-shell .vg-drill-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 11px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1c2025;
  font-size: clamp(16px, 1.23vw, 19px);
  font-weight: 610;
  line-height: 1.29;
  letter-spacing: -.026em;
  text-align: start;
  text-decoration: none;
}

.vg-nav-host[data-drill-overview] .vg-drill-column > .vg-drill-item > .vg-drill-choice {
  min-height: 58px;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 635;
  letter-spacing: -.036em;
}

.vg-drill-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.vg-drill-count {
  flex: none;
  color: #57616b;
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vg-drill-sign {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  color: #373f48;
}
.vg-drill-sign::before,
.vg-drill-sign::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 1.5px;
  margin: auto;
  background: currentColor;
}
.vg-drill-sign::after {
  transform: rotate(90deg);
  transition: transform var(--tree-duration) var(--tree-ease);
}
.vg-nav-shell .vg-drill-choice[aria-expanded="true"],
.vg-drill-choice[aria-expanded="true"] > .vg-drill-sign {
  color: #2040a0;
}
.vg-drill-choice[aria-expanded="true"] > .vg-drill-sign::after { transform: rotate(0); }

.vg-nav-shell .vg-drill-choice[aria-busy="true"] { cursor: progress; }
.vg-drill-choice[aria-busy="true"] .vg-drill-sign {
  animation: vg-tree-wait 1s ease-in-out 160ms infinite;
}
@keyframes vg-tree-wait {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* The existing white shell has intrinsic height. Let the branch contribute
   its actual animated height; the nav body already caps it to the viewport. */
.vg-drill-children {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--tree-duration) var(--tree-ease);
}
.vg-drill-choice[aria-expanded="true"] + .vg-drill-children { grid-template-rows: 1fr; }
.vg-drill-clip { min-height: 0; min-width: 0; overflow: hidden; }
.vg-drill-inner {
  min-width: 0;
  margin: 0 0 9px 2px;
  padding-inline-start: var(--tree-indent);
  border-inline-start: 1px solid #cdd6e4;
}

.vg-nav-shell .vg-drill-nested .vg-drill-choice {
  min-height: 42px;
  padding-block: 8px;
  font-size: 15px;
  font-weight: 555;
  line-height: 1.38;
  letter-spacing: -.014em;
}

.vg-nav-shell a.vg-drill-choice[data-product] { font-weight: 495; }
.vg-nav-shell .vg-drill-section,
.vg-nav-shell .vg-drill-retry,
.vg-nav-shell .vg-drill-trail button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 2px;
  border: 0;
  background: none;
  color: #284b95;
  font-size: 13px;
  font-weight: 540;
  line-height: 1.35;
  text-align: start;
}

.vg-nav-shell .vg-drill-choice:focus-visible,
.vg-nav-shell .vg-drill-section:focus-visible {
  outline-offset: -2px;
}

.vg-nav-detail:has(.vg-drill-list) { padding-top: clamp(13px, 1.35vw, 21px); }
.vg-drill-trail { display: flex; align-items: center; margin-bottom: 4px; }
.vg-drill-trail:empty,
.vg-drill-trail:not(:has(button, a)) { display: none; }

.vg-nav-detail .vg-nav-heading { align-items: center; gap: 10px 22px; }
.vg-nav-detail .vg-nav-heading [data-vg-title] {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.vg-drill-loading {
  margin: 0;
  padding-block: 12px;
  color: #535b65;
  font-size: 14px;
  line-height: 1.4;
}

.vg-nav-host[data-drill-overview] .vg-nav-carousel { display: none; }
.vg-nav-host[data-drill-overview] .vg-nav-detail { border: 0; padding-top: 4px; }
.vg-nav-host[data-drill-overview] .vg-nav-heading { padding-inline-end: 22px; }

.vg-drill-resources {
  min-width: 0;
  margin-top: clamp(17px, 2vw, 27px);
  padding-top: 5px;
  border-top: 1px solid var(--tree-rule);
}
.vg-drill-resources:empty { display: none; }
.vg-drill-resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0 clamp(18px, 3vw, 44px);
}
.vg-nav-shell .vg-drill-resource-list > .vg-drill-item > .vg-drill-choice {
  min-height: 44px;
  color: #2c405f;
  font-size: 15px;
  font-weight: 575;
  letter-spacing: -.016em;
}
.vg-drill-resource-list > .vg-drill-item > .vg-drill-choice .vg-drill-sign {
  width: 14px;
  color: #4d617b;
}
.vg-drill-resource-list > .vg-drill-item > .vg-drill-choice .vg-drill-sign::before,
.vg-drill-resource-list > .vg-drill-item > .vg-drill-choice .vg-drill-sign::after { width: 10px; }
.vg-drill-resources + .vg-nav-shortcuts { margin-top: 6px; }

.vg-nav-shortcuts:has(.vg-shortcut-group) {
  align-items: start;
  gap: 6px clamp(25px, 4vw, 62px);
  padding-top: 10px;
}
.vg-shortcut-group, .vg-shortcut-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 15px;
}
.vg-shortcut-label {
  margin: 0;
  color: #60666e;
  font-size: 12px;
  font-weight: 570;
  line-height: 1.4;
}

@media (hover: hover) {
  .vg-drill-choice:hover .vg-drill-name,
  .vg-nav-shell .vg-drill-section:hover,
  .vg-nav-shell .vg-drill-retry:hover,
  .vg-drill-trail button:hover {
    color: #173eae;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
  }
}

@media (min-width: 1100px) {
  .vg-nav-host:has(.vg-drill-list) .vg-nav-carousel { grid-template-columns: minmax(0, 1fr); }
  .vg-nav-host:has(.vg-drill-list) .vg-nav-rail {
    grid-auto-columns: unset;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 12px;
  }
  .vg-nav-host:has(.vg-drill-list) .vg-nav-step { display: none; }
}

@media (max-width: 799px) {
  .vg-drill-list { grid-template-columns: minmax(0, 1fr); }
  .vg-drill-resource-list { grid-template-columns: minmax(0, 1fr); }
  .vg-nav-shell .vg-drill-choice { min-height: 48px; }
  .vg-nav-shell .vg-drill-nested .vg-drill-choice { min-height: 44px; }
  .vg-nav-shell .vg-drill-section { min-height: 40px; }
}

@media (max-width: 620px) {
  .vg-drill-list, .vg-drill-resources {
    --tree-indent: 9px;
    --tree-duration: 300ms;
    --tree-ease: cubic-bezier(.4, .05, .34, 1);
    margin-top: 14px;
  }
  .vg-drill-nested .vg-drill-nested { --tree-indent: 6px; }
  .vg-drill-column > .vg-drill-item > .vg-drill-choice { gap: 7px; }
  .vg-nav-host[data-drill-overview] .vg-drill-column > .vg-drill-item > .vg-drill-choice {
    min-height: 47px;
    padding-block: 8px;
  }
  .vg-nav-shell .vg-drill-nested .vg-drill-choice { font-size: 14px; gap: 6px; }
  .vg-drill-count { font-size: 11px; }
  .vg-nav-host[data-drill-overview] .vg-nav-body { padding-top: 17px; }
  .vg-nav-host[data-drill-overview] .vg-nav-heading { min-height: 28px; padding-inline-end: 40px; }
  .vg-nav-detail .vg-nav-heading { flex-wrap: wrap; gap: 8px 12px; }
  .vg-nav-detail .vg-nav-heading [data-vg-title] { max-width: 100%; font-size: clamp(24px, 6.3vw, 32px); }
  .vg-nav-shortcuts:has(.vg-shortcut-group) { flex-direction: column; gap: 10px; }
  .vg-shortcut-group { display: block; }
  .vg-shortcut-links { gap: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .vg-drill-children, .vg-drill-sign::after { transition-duration: 0s; }
  .vg-drill-choice[aria-busy="true"] .vg-drill-sign {
    animation: none;
    opacity: .48;
    transition: opacity 0s linear 160ms;
  }
}

.project-actions .hc-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  gap: 10px;
  font: 620 14px/1.22 Manrope, Arial, sans-serif;
  letter-spacing: -.012em;
  white-space: nowrap;
}
.hc-trigger-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hc-trigger-icons img, .hc-chat img { display: block; flex: none; object-fit: contain; }
.hc-trigger-icons img { width: 15px; height: 15px; }

#hero-contact {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(428px, calc(100% - 28px));
  max-width: none;
  height: max-content;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce0e4;
  border-radius: 20px;
  background: #fff;
  color: #16191c;
  box-shadow: 0 16px 65px #11192329;
  font-family: Manrope, Arial, sans-serif;
  text-align: left;
}
#hero-contact:not([open]) { display: none; }
#hero-contact::backdrop { background: rgb(13 18 25 / .43); }
html:has(#hero-contact[open]) { overflow: hidden; }
.hc-panel { padding: 25px; }
.hc-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
#hc-title { margin: 0; color: inherit; font-size: clamp(25px, 3.1vw, 34px); font-weight: 650; letter-spacing: -.06em; line-height: 1.12; }
.hc-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f4;
  color: #2e3339;
}
.hc-close span { position: relative; width: 14px; height: 14px; }
.hc-close span::before, .hc-close span::after {
  position: absolute;
  top: 50%; left: 0;
  width: 14px; height: 1.5px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}
.hc-close span::after { transform: rotate(-45deg); }
#hero-contact .hc-instructions {
  margin: 10px 0 23px;
  font-size: 14px;
  font-weight: 480;
  letter-spacing: -.015em;
  line-height: 1.45;
  color: #4a5057;
}
.hc-channel { display: grid; width: min(190px,100%); margin-inline: auto; gap: 10px; }
.hc-qr-frame {
  display: grid;
  place-items: center;
  order: -1;
  aspect-ratio: 1;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #dde1e5;
  border-radius: 10px;
  background: #fff;
}
.hc-qr {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
#hero-contact .hc-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  background: #2954df;
  color: #fff;
  font-size: 14px;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: background-color .15s ease;
}
#hero-contact .hc-chat img { filter: brightness(0) invert(1); }
.hc-phone-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #dce0e4;
  color: #505761;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -.018em;
}
#hero-contact .hc-phone {
  color: #1b1e22;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) {
  #hero-contact a.hc-chat:hover { background: #173eae; }
  .hc-close:hover { background: #e6eaf0; }
  #hero-contact .hc-phone:hover { color: #173eae; text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 700px) {
  .project-actions .hc-trigger { font-size: 13px; }
  .hc-trigger-icons { gap: 4px; }
  .hc-trigger-icons img { width: 14px; height: 14px; }
}
@media (max-width: 480px) {
  #hero-contact { border-radius: 17px; }
  .hc-panel { padding: 20px; }
  #hero-contact .hc-instructions { margin: 9px 0 16px; }
  .hc-close { width: 40px; height: 40px; }
  .hc-phone-row { margin-top: 15px; padding: 0; border: 0; }
  #hero-contact .hc-phone { display: inline-flex; align-items: center; min-height: 36px; }
}
@media (max-width: 360px) and (max-height: 680px),
       (min-width: 560px) and (max-width: 900px) and (max-height: 540px) {
  .project-actions .hc-trigger { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  #hero-contact[open] { animation: hc-in .18s cubic-bezier(.22,.72,.2,1); }
  #hero-contact[open]::backdrop { animation: hc-shade .15s ease-out; }
  @keyframes hc-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes hc-shade { from { background: rgb(13 18 25 / 0); } to { background: rgb(13 18 25 / .43); } }
}
.project-hero .hero-call {
  position: absolute;
  z-index: 3;
  right: max(12px, 2.1%);
  bottom: max(12px, 7.5%);
  display: flex;
  align-items: center;
  gap: .7em;
  padding-right: .7em;
  height: clamp(44px, 2.85vw, 62px);
  border-radius: .85em;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(165deg, #23485deb, #163448ef);
  box-shadow: 0 8px 20px -6px #183b5359, inset 0 1px #ffffff38;
  color: #fff;
  font-size: clamp(16px, 1.38vw, 30px);
  font-weight: 540;
  letter-spacing: -.018em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.hero-call span {
  display: grid;
  place-items: center;
  height: 100%;
  width: 2.45em;
  background: repeating-linear-gradient(90deg, #051c3c69, #8edbff38 2px, transparent 5px),
              linear-gradient(115deg, #235169, #07567b 55%, #143f56);
}
.hero-call svg { width: 1.36em; height: 1.36em; }
.project-hero a.hero-call:focus-visible { outline: 3px solid #2954df; outline-offset: 3px; }
@media (hover: hover) {
  .hero-call:hover span { filter: brightness(1.22); }
}
