.browse-services {
  margin-top: 1.4rem;
  border-block: 1px solid var(--line);
}
.browse-services summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
.browse-services summary::-webkit-details-marker { display: none; }
.browse-services summary .icon { width: 16px; }
.browse-services[open] summary .icon { transform: rotate(180deg); }
.browse-services .sector-service-links {
  margin: 0;
  padding: 0 0 10px;
  gap: 0 24px;
}
.browse-services .textlink.dark {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
}
.browse-services .textlink.dark:is(:hover, :focus-visible) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .browse-services .sector-service-links { display: grid; }
  .browse-services .textlink.dark { min-height: 44px; justify-content: start; }
}

@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 0;
    background: #142c43;
  }
  /* Tune the image box as well as its focal point: tall phones crop landscape photos horizontally. */
  .slide-garden-event-evening-hd { --top: -10%; --height: 83%; --focus: 62% 52%; }
  .slide-town-square-marquees-natural { --top: -5%; --height: 90%; --focus: 54% 48%; }
  .slide-commercial-build-natural { --top: -7%; --height: 89%; --focus: 52% 54%; }
  .slide-garden-event-aerial { --top: -6%; --height: 95%; --focus: 47% 52%; }
  .slide-arai-branded-pvc-night { --top: -9%; --height: 84%; --focus: 69% 55%; }
  .slide-garden-event-dusk-hd { --top: -8%; --height: 85%; --focus: 43% 52%; }
  #hero-bg .slide-farmtrax-festival img {
    top: 0;
    height: 69%;
    object-fit: contain;
    object-position: center top;
  }
  .slide-countryside-clear-roof-aerial { --top: -11%; --height: 84%; --focus: 60% 70%; }
  .slide-versa-studios-natural { --top: -5%; --height: 87%; --focus: 32% 54%; }
  .slide-garden-event-overhead { --top: -3%; --height: 86%; --focus: 21% 50%; }
  .slide-oakwell-bars { --top: -8%; --height: 87%; --focus: 65% 57%; }
  #hero-bg img {
    top: var(--top, 0%);
    height: var(--height, 100%);
    object-position: var(--focus, center);
    -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent);
    mask-image: linear-gradient(to bottom, black 78%, transparent);
  }
  .hero-frame {
    min-height: clamp(31rem, 76svh, 40rem);
    height: auto;
  }
  .hero-copy {
    justify-content: flex-end;
    padding-block: clamp(8rem, 24svh, 13rem) 1.5rem;
  }
  .hero-shade {
    background: linear-gradient(to top, rgb(8 20 30 / 94%), rgb(8 20 30 / 79%) 30%, rgb(8 20 30 / 60%) 50%, rgb(8 20 30 / 12%) 73%, transparent);
  }
  .hero-copy:has(.hero-service) h1 {
    margin: .6rem 0 .75rem;
    font-size: clamp(2.25rem, 9.8vw, 3.125rem);
    line-height: 1.03;
  }
  .hero-description { display: none; }
  .hero-actions { flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
}

.hero-progress:not([hidden]) {
  position: absolute;
  inset: auto var(--margin) 8px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.hero-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgb(255 255 255 / 34%);
}
.hero-progress i {
  display: block;
  height: 100%;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-progress .completed i { transform: scaleX(1); }
.client-ticker .client-heading h2 { display: block; position: relative; padding-left: 21px; }
.client-ticker .client-heading h2::before { position: absolute; left: 0; top: 50%; translate: 0 -50%; }
@media(max-width:700px){.client-ticker .client-heading h2{padding-left:16px}}

/* Give the long illuminated frontage clear space beside the desktop headline. */
@media (min-width: 701px) {
  .slide-evening-lawn-hospitality {
    position: absolute;
    inset: 0;
    background: #13263d;
    opacity: 0;
    transition: opacity .48s;
  }
  .slide-evening-lawn-hospitality[aria-hidden="false"] { opacity: 1; }
  #hero-bg .slide-evening-lawn-hospitality img {
    left: auto;
    top: 48%;
    width: calc(100% - min(52vw, 560px));
    height: auto;
    transform: translateY(-60%);
    mask-image: linear-gradient(to right, transparent, black 12%), linear-gradient(to bottom, transparent, black 15% 84%, transparent);
    mask-composite: intersect;
  }
}
@media (max-width: 700px) {
  .slide-evening-lawn-hospitality { --top: 0%; --height: 65%; --focus: 60% 73%; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-evening-lawn-hospitality { transition: none; }
}

@media (min-width: 701px) {
  #hero-bg .slide-farmtrax-festival img {
    left: auto;
    width: calc(100% - min(41vw, 600px));
    height: auto;
    max-height: 145%;
    top: 50%;
    transform: translateY(-43%);
    object-fit: contain;
    mask-image: linear-gradient(to right, transparent, black 8%);
  }
  .hero:has(.slide-farmtrax-festival[aria-hidden="false"]) {
    background: #172830;
  }
}
