.hero-services .hero-stage {
  width: 100%;
  height: clamp(360px, 29vw, 560px);
  max-height: calc(100svh - 330px);
  aspect-ratio: auto;
}
.hero-services .hero-art img {
  object-fit: cover;
  object-position: center center;
}
.hero-services .hero-copy {
  top: 2%;
  left: 26%;
  right: 26%;
}
.hero-services h1 {
  font-size: clamp(32px, 3.6vw, 60px);
}
.hero-services .hero-copy > p {
  font-size: clamp(12px, 1vw, 16px);
}
.hero-services .hero-actions .button {
  min-height: 42px;
  padding: 11px 20px;
  font-size: 13px;
}
.hero-services .service-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  max-width: 280px;
  padding: 12px 16px;
  border: 2px solid #0874dd;
  border-radius: 12px;
  background: #fff;
  color: #063e7d;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.25;
  box-shadow:
    0 5px 0 #0066ca13,
    0 8px 24px #034f9725;
}
.hero-services .service-pin > svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #006ed6;
}
.hero-services .service-pin:hover,
.hero-services .service-pin:focus-visible {
  background: #056ed9;
  color: #fff;
  border-color: #056ed9;
}
.hero-services .service-pin:hover > svg,
.hero-services .service-pin:focus-visible > svg {
  color: #fff;
}
.hero-services .service-pin--video {
  left: 87%;
  top: 18%;
}
.hero-services .service-pin--alarm {
  left: 10%;
  top: 49%;
}
.hero-services .service-pin--intercom {
  left: 21%;
  top: 73%;
}
.hero-services .service-pin--network {
  left: 28%;
  top: 61%;
}
.hero-services .service-pin--light {
  left: 46%;
  top: 74%;
}
.hero-services .service-pin--smart {
  left: 72%;
  top: 53%;
}
.hero-services .service-pin--dispatch {
  left: 16%;
  top: 92%;
}
.hero-services .service-pin--fire {
  left: 43%;
  top: 92%;
}
.hero-services .service-pin--design {
  left: 69%;
  top: 92%;
}
.hero-services .service-pin--access {
  left: 88%;
  top: 79%;
}
.desktop-nav a {
  font-size: 12px;
  font-weight: 600;
}
@media (min-width: 1101px) and (max-width: 1450px) {
  .desktop-nav a {
    font-size: 11px;
  }
  .desktop-nav {
    gap: 13px;
  }
}
@media (min-width: 701px) and (max-width: 1200px) {
  .hero-services .hero-copy {
    left: 24%;
    right: 24%;
  }
  .hero-services .hero-copy .pill {
    display: none;
  }
  .hero-services h1 {
    font-size: 34px;
  }
  .hero-services .hero-actions .button {
    font-size: 11px;
    min-height: 36px;
    padding: 9px 11px;
  }
  .hero-services .service-pin {
    font-size: 12px;
    padding: 9px 10px;
    min-height: 42px;
    gap: 6px;
    max-width: 230px;
  }
  .hero-services .service-pin > svg {
    width: 17px;
    height: 17px;
  }
}
@media (max-width: 700px) {
  .hero-services .hero-stage {
    height: auto;
    max-height: none;
  }
  .hero-services .hero-copy {
    position: relative;
    inset: auto;
    padding: 20px 18px 5px;
  }
  .hero-services h1 {
    font-size: clamp(31px, 8.5vw, 48px);
  }
  .hero-services .hero-actions .button {
    padding: 12px 9px;
    min-height: 44px;
    font-size: 11px;
  }
  .hero-services .hero-art img {
    object-fit: contain;
  }
  .hero-services .service-pin {
    left: auto;
    top: auto;
    max-width: none;
    min-height: 60px;
    font-size: 13px;
    padding: 11px 9px;
    gap: 7px;
  }
  .hero-services .service-pin > svg {
    width: 18px;
    height: 18px;
  }
  .hero-service-map {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-services .service-pin {
    min-width: 0;
  }
  .hero-services .service-pin span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  .hero-services .service-pin {
    flex-direction: column;
    font-size: 12px;
    min-height: 76px;
  }
}
/* Navigation and contact alignment */
.desktop-nav {
  gap: 18px;
  flex-wrap: wrap;
}
.desktop-nav a {
  font-size: 16px;
  font-weight: 600;
  padding: 9px 0;
}
.header-contact {
  --contact-icon: 19px;
  --contact-number: 140px;
  --contact-gap: 9px;
  display: grid;
  grid-template-columns: var(--contact-icon) var(--contact-number);
  column-gap: var(--contact-gap);
  row-gap: 4px;
  justify-items: center;
}
.header-contact .header-phone {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--contact-icon) var(--contact-number);
  gap: var(--contact-gap);
}
.header-contact .header-phone svg {
  width: var(--contact-icon);
  height: var(--contact-icon);
}
.header-contact .header-phone span {
  display: block;
}
.header-contact .header-phone .phone-image {
  width: var(--contact-number);
  display: block;
}
.header-contact .header-email {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
.hero-services .service-pin {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 6px 0;
  gap: 9px;
  text-align: left;
}
.hero-services .service-pin > svg {
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(140deg, #168fff, #0059cf);
  color: white;
  box-shadow:
    0 0 0 3px #ffffffdd,
    0 5px 15px #0063b94d;
  transition: transform 0.2s ease;
}
.hero-services .service-pin span {
  text-shadow:
    0 1px 3px white,
    0 0 8px white,
    0 0 14px white;
}
.hero-services .service-pin::before,
.hero-services .service-pin::after {
  display: none;
}
.hero-services .service-pin:hover,
.hero-services .service-pin:focus-visible {
  background: transparent;
  color: #003a80;
}
.hero-services .service-pin:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-services .service-pin:hover > svg {
  transform: translateY(-3px);
}
.hero-services .service-pin:focus-visible {
  outline: 2px solid #0066d8;
  outline-offset: 5px;
  border-radius: 24px;
}
@media (min-width: 1101px) and (max-width: 1600px) {
  .header-inner {
    gap: 16px;
  }
  .desktop-nav {
    gap: 5px 17px;
  }
  .desktop-nav a {
    font-size: 14px;
    padding: 5px 0;
  }
  .header-call {
    display: none;
  }
}
@media (min-width: 701px) and (max-width: 1200px) {
  .hero-services .service-pin > svg {
    width: 34px;
    height: 34px;
    padding: 8px;
  }
}
@media (max-width: 700px) {
  .header-contact {
    --contact-icon: 14px;
    --contact-number: 130px;
    --contact-gap: 5px;
    row-gap: 3px;
  }
  .hero-services .service-pin {
    justify-content: flex-start;
    padding: 10px 5px;
  }
  .hero-services .service-pin > svg {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .hero-services .service-pin span {
    text-shadow: none;
  }
}
@media (max-width: 360px) {
  .header-contact {
    --contact-number: 120px;
    --contact-icon: 12px;
  }
  .hero-services .service-pin {
    text-align: center;
  }
}
@media (min-width: 701px) {
  .hero-services .service-pin--network {
    left: 29%;
    top: 55%;
  }
}
@media (min-width: 701px) and (max-width: 1200px) {
  .hero-services .service-pin--network {
    left: 35%;
    top: 56%;
    max-width: 175px;
  }
}
@media (max-width: 700px) {
  .hero-services .service-pin {
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
    gap: 9px;
  }
  .hero-services .service-pin span {
    overflow-wrap: normal;
  }
}
.header-contact .header-phone span {
  grid-column: 2;
}
/* Solid light capsules separate service navigation from the illustration. */
.hero-services .service-pin {
  padding: 6px 13px 6px 6px;
  border: 1px solid #c4ddf5;
  border-radius: 999px;
  background: #fff;
  color: #063770;
  box-shadow:
    0 5px 18px #003b752b,
    0 1px 3px #003b751a;
  gap: 10px;
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.hero-services .service-pin > svg {
  box-shadow: inset 0 1px 0 #ffffff55;
  width: 40px;
  height: 40px;
  padding: 9px;
}
.hero-services .service-pin span {
  text-shadow: none;
}
.hero-services .service-pin:hover,
.hero-services .service-pin:focus-visible {
  background: #eef7ff;
  color: #002e68;
  box-shadow:
    0 6px 22px #003b7540,
    0 0 0 2px #66b1ff;
}
.hero-services .service-pin:hover > svg {
  transform: none;
}
@media (min-width: 701px) and (max-width: 1200px) {
  .hero-services .service-pin {
    gap: 6px;
    padding: 5px 10px 5px 5px;
  }
  .hero-services .service-pin > svg {
    width: 32px;
    height: 32px;
    padding: 7px;
  }
}
@media (max-width: 700px) {
  .hero-services .service-pin {
    border-radius: 22px;
    padding: 13px 8px;
    gap: 9px;
    box-shadow: 0 3px 12px #003b7510;
  }
  .hero-services .service-pin > svg {
    width: 40px;
    height: 40px;
    padding: 9px;
  }
}
@media (min-width: 1201px) {
  .hero-services .service-pin--network {
    left: 26%;
    max-width: 250px;
  }
}
@media (min-width: 701px) {
  .hero-services .service-pin--alarm {
    top: 39%;
  }
}
/* Keep email centered beneath the number in every shared contact area. */
.contact-band-links {
  --contact-number: 235px;
  display: grid;
  grid-template-columns: 24px var(--contact-number);
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  justify-content: center;
}
.contact-band-links > a:not(.email-link) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 24px var(--contact-number);
  gap: 14px;
}
.contact-band-links > a > svg {
  width: 24px;
  height: 24px;
}
.contact-band-links .phone-image {
  display: block;
  width: var(--contact-number);
}
.contact-band-links .email-link {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
.footer-contact {
  display: grid;
  grid-template-columns: 18px 170px auto;
  gap: 6px 8px;
  align-items: center;
  justify-content: center;
}
.footer-contact .footer-phone {
  grid-column: 1 / 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 18px 170px;
  gap: 8px;
}
.footer-contact .footer-phone .phone-image {
  display: block;
  width: 170px;
}
.footer-contact .button {
  grid-column: 3;
  grid-row: 1 / 3;
  margin-left: 12px;
}
.footer-contact .email-link {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  text-align: center;
}
.consult-phone,
.consult-email {
  display: block;
  text-align: center;
}
@media (min-width: 601px) and (max-width: 1100px) {
  .consult-email {
    grid-column: 2;
    grid-row: 4;
    margin: 0;
  }
}
@media (max-width: 700px) {
  .contact-band-links {
    --contact-number: 210px;
  }
}
@media (max-width: 600px) {
  .footer-contact {
    grid-template-columns: 18px 170px;
  }
  .footer-contact .button {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 10px 0 0;
  }
}
/* Open labels preserve the illustration; a fine light outline protects contrast. */
@media (min-width: 701px) {
  .hero-services .service-pin,
  .hero-services .service-pin:hover,
  .hero-services .service-pin:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #111318;
  }
  .hero-services .service-pin span {
    font-weight: 800;
    -webkit-text-stroke: 2px #fff;
    paint-order: stroke fill;
    text-shadow:
      0 0 5px #fff,
      0 0 10px #fff,
      0 2px 3px #00000038;
  }
  .hero-services .service-pin > svg {
    box-shadow:
      0 0 0 2px #fff,
      0 3px 10px #00376750;
  }
  .hero-services .service-pin:hover span {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
}
/* Leaders share the icon geometry, independent of label height. */
@media (min-width: 701px) {
  .hero-services .service-pin {
    --leader-center: 27px;
    --leader-radius: 22px;
    --leader-length: 34px;
    width: max-content;
  }
  .hero-services .service-pin--alarm {
    left: 12%;
    top: 15%;
    --leader-length: clamp(38px, 5vw, 96px);
  }
  .hero-services .service-pin--network {
    top: 42%;
  }
  .hero-services .service-pin::after {
    display: block;
    content: '';
    position: absolute;
    left: calc(var(--leader-center) + var(--leader-radius) * 0.422618);
    top: calc(50% + var(--leader-radius) * 0.906308);
    bottom: auto;
    width: 1.5px;
    height: var(--leader-length);
    background: #0874c9;
    box-shadow: 0 0 0 1px #ffffffa6;
    transform: rotate(-25deg);
    transform-origin: top center;
    pointer-events: none;
  }
  .hero-services .service-pin::before {
    display: block;
    content: '';
    position: absolute;
    left: calc(
      var(--leader-center) + (var(--leader-radius) + var(--leader-length)) * 0.422618 - 3px
    );
    top: calc(50% + (var(--leader-radius) + var(--leader-length)) * 0.906308 - 3px);
    bottom: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #006ed8;
    box-shadow: 0 0 0 2px white;
    pointer-events: none;
    transition: box-shadow 0.2s ease;
  }
  .hero-services .service-pin--intercom,
  .hero-services .service-pin--dispatch,
  .hero-services .service-pin--fire,
  .hero-services .service-pin--design {
    --leader-length: 36px;
  }
  .hero-services .service-pin--intercom::after,
  .hero-services .service-pin--dispatch::after,
  .hero-services .service-pin--fire::after,
  .hero-services .service-pin--design::after {
    top: auto;
    bottom: calc(50% + var(--leader-radius) * 0.906308);
    transform-origin: bottom center;
    transform: rotate(25deg);
  }
  .hero-services .service-pin--intercom::before,
  .hero-services .service-pin--dispatch::before,
  .hero-services .service-pin--fire::before,
  .hero-services .service-pin--design::before {
    top: auto;
    bottom: calc(50% + (var(--leader-radius) + var(--leader-length)) * 0.906308 - 3px);
  }
  .hero-services .service-pin:hover {
    outline: none;
  }
  .hero-services .service-pin:hover::before,
  .hero-services .service-pin:focus-visible::before {
    box-shadow:
      0 0 0 2px white,
      0 0 0 7px #0077e92b;
  }
  .hero-services .service-pin:hover span {
    color: #004c9e;
  }
}
@media (min-width: 1201px) {
  .hero-services .service-pin--network {
    left: 16.5%;
    max-width: 250px;
  }
}
@media (min-width: 701px) and (max-width: 1200px) {
  .hero-services .service-pin {
    --leader-center: 22px;
    --leader-radius: 18px;
  }
  .hero-services .service-pin--network {
    left: 14%;
  }
}
/* All service branches connect to one shared building backbone. */
.system-network {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.system-hub {
  display: none;
}
@media (min-width: 701px) {
  .has-system-network .system-network {
    display: block;
  }
  .has-system-network .service-pin::before,
  .has-system-network .service-pin::after {
    display: none;
  }
  .has-system-network .system-hub {
    display: block;
    position: absolute;
    z-index: 4;
    left: 56%;
    top: 64%;
    transform: translate(-50%, -135%);
    padding: 5px 10px;
    color: #06457f;
    font-size: 12px;
    font-weight: 700;
    border-radius: 7px;
    background: #ffffffed;
    box-shadow: 0 2px 10px #0063a918;
    pointer-events: none;
    white-space: nowrap;
  }
  .system-wire-under {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-opacity: 0.72;
  }
  .system-wire {
    fill: none;
    stroke: #117ac6;
    stroke-width: 1.5;
    stroke-opacity: 0.75;
    transition:
      stroke 0.2s,
      stroke-width 0.2s;
  }
  .system-junction {
    fill: #087cd4;
    stroke: white;
    stroke-width: 1.5;
  }
  .system-root-ring {
    fill: #ffffffcf;
    stroke: #0579db;
    stroke-width: 1.5;
  }
  .system-root-dot {
    fill: #0073d5;
  }
  .system-branch.is-active .system-wire,
  .system-is-active .system-backbone .system-wire {
    stroke: #0064d8;
    stroke-width: 2.5;
    stroke-opacity: 1;
  }
}
@media (max-width: 700px) {
  .system-hub {
    display: block;
    text-align: center;
    color: #06457f;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 10px 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .system-wire {
    transition: none;
  }
}
@media (min-width: 701px) {
  .has-system-network .system-hub {
    left: 60%;
    transform: translate(20px, 14px);
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .has-system-network .system-hub {
    display: none;
  }
}
