.home-banner:has([data-carousel-rotation]:not([hidden])) {
  --banner-control-space: 160px;
}
.home-banner [data-carousel-rotation]:not([hidden]):not(:focus-visible) {
  position: static;
  width: 44px;
  height: 44px;
  overflow: visible;
  clip-path: none;
  pointer-events: auto;
  border: 1px solid rgb(255 255 255 / .7);
}
body.brand-design .mbar .mbar-sizing {
  background: transparent;
  color: inherit;
  font-weight: inherit;
}
body.brand-design .mbar a[aria-current] {
  background: #e6efff;
  color: var(--accent-text);
  box-shadow: inset 0 3px var(--azure);
  font-weight: 600;
}
.quote-limit-note {
  margin-block: 0 1rem;
  font-size: .9rem;
}
.catalogue-search {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 0 1.25rem;
  max-width: 30rem;
}
.catalogue-search input {
  min-width: 0;
  flex: 1 1 10rem;
  padding: .65rem .9rem;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}
.portfolio-refine .mobile-project-department { display: none; }
@media (max-width: 700px) {
  .portfolio-tools:has(.mobile-project-department) .project-filters { display: none; }
  .portfolio-tools .portfolio-refine:has(.mobile-project-department) {
    grid-template-columns: minmax(0, 1fr);
  }
  .portfolio-refine .mobile-project-department { display: flex; }
}
.site-results-title { margin-block-end: 2rem; }
.site-results-group { max-width: 55rem; margin-block: 2rem; }
.site-results-group h2 { border-bottom: 1px solid var(--line); padding-block-end: .65rem; }
.site-results-group article { margin-block: 1.25rem; }
.site-results-group h3 { margin-block-end: .4rem; }
.site-results-group h3 a { color: var(--accent-text); text-decoration: underline; text-underline-offset: .14em; }

@media (max-width: 700px) {
  body.brand-design[data-page="projects"] .proj-hero { padding-block: 24px; }
  body.brand-design[data-page="projects"] .portfolio-intro { gap: 12px; }
  body.brand-design[data-page="projects"] .portfolio-intro h1 { margin-block-start: 8px; font-size: clamp(30px,8.5vw,40px); }
  .portfolio-intro-side p { margin-block-end: 8px; line-height: 1.5; }
  body.brand-design[data-page="projects"] .portfolio-section { padding-block-start: 24px; }
  .portfolio-section .sec-head { gap: 4px; margin-block-end: 16px; }
}
@media (min-width: 360px) and (max-width: 700px) {
  .portfolio-tools .portfolio-refine:has(.mobile-project-department) { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
  .portfolio-refine select { width: 100%; min-width: 0; }
}
.alm-photo-viewer[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .5rem;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  background: #171516;
  color: #fff;
}
.alm-photo-viewer::backdrop { background: #171516; }
html:has(.alm-photo-viewer[open]) { overflow: hidden; }
.alm-photo-stage { display: grid; place-items: center; min-width: 0; min-height: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.alm-photo-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.alm-photo-close {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.alm-photo-close span { font-size: 24px; line-height: 1; }
@media (hover: hover) {
  .alm-photo-close:hover { background: rgb(255 255 255 / .1); }
}
.alm-photo-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media screen {
  .fab.alm-whatsapp {
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 48px;
    padding-inline: 14px 18px;
    border: 1px solid rgb(255 255 255 / .5);
    border-radius: 99px;
    background: #116548;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
  }
  .alm-whatsapp svg { width: 25px; height: 25px; fill: currentColor; }
  .alm-whatsapp:hover { background: #0d5039; color: #fff; }
  .alm-whatsapp:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
  .alm-whatsapp[inert] { visibility: hidden; }
}
@media screen and (max-width: 760px) {
  .fab.alm-whatsapp {
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: 48px;
    padding: 0;
  }
  .alm-whatsapp span { display: none; }
}

.portfolio-actions:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.25rem;
  margin-block-start: 1.5rem;
}
.portfolio-actions .count { flex-basis: 100%; text-align: center; margin: 0; }
.portfolio-actions button { min-height: 44px; }
.portfolio-actions .link { font: inherit; border: 0; background: transparent; cursor: pointer; }
.portfolio-actions [hidden], html:not(.js) .portfolio-tools { display: none; }
.map-region:has(.map-project-total) .map-region-dot { r: 14px; }
.map-region .map-project-total, .map-region[aria-current] .map-project-total {
  text-anchor: middle;
  fill: #fff;
  font: 600 16px system-ui, sans-serif;
  pointer-events: none;
}
html[dir="rtl"] .map-region text:not(.map-project-total) { text-anchor: end; }
