.sh-section {
  --sh-font-title: "akzidenz-grotesk", "Akzidenz-Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sh-font-body: "brandon-grotesque", "Brandon Grotesque", "Helvetica Neue", Arial, sans-serif;

  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: var(--sh-mt);
  margin-bottom: var(--sh-mb);
  padding: var(--sh-pt) var(--sh-pr) var(--sh-pb) var(--sh-pl);
  overflow-x: hidden;
  background-color: transparent;
}

.sh-section,
.sh-section *,
.sh-section *::before,
.sh-section *::after {
  box-sizing: border-box;
}

.sh-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%,
              rgba(var(--sh-wash-rgb), var(--sh-wash-a)) 0%, transparent 60%);
}

.sh-nav-blend {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--orbiss-header-h, 64px);
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse 1400px 240px at 50% 100%,
              rgba(var(--sh-wash-rgb), var(--sh-wash-a)) 0%, transparent 70%);
}

.sh-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.sh-eyebrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.sh-eyebrow-line {
  height: 1px;
  width: 32px;
  flex-shrink: 0;
  background-color: var(--sh-eyebrow-line);
  opacity: var(--sh-eyebrow-line-a);
}

.sh-eyebrow {
  font-family: var(--sh-font-body);
  font-size: var(--sh-eyebrow-size);

  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sh-eyebrow-color);
}

.sh-heading {
  font-family: var(--sh-font-title);
  font-size: var(--sh-h-size);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sh-h-color);
  padding-top: var(--sh-h-pt);
  padding-bottom: var(--sh-h-pb);
  margin: 0 0 24px;
}


.sh-subtext {
  font-family: var(--sh-font-body);
  font-size: var(--sh-sub-size);
  font-weight: 400;
  color: var(--sh-sub-color);
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 auto;
  padding-top: var(--sh-sub-pt);
  padding-bottom: var(--sh-sub-pb);
}

.sh-ctas {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  text-decoration: none !important;


  white-space: normal;
  scroll-margin-top: 96px;
  font-family: var(--sh-font-body);
  font-size: var(--sh-btn-size);
  font-weight: 500;
  color: var(--sh-btn-color) !important;
  background-color: var(--sh-btn-bg);
  padding: var(--sh-btn-pt) var(--sh-btn-pr) var(--sh-btn-pb) var(--sh-btn-pl);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sh-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
  text-decoration: none !important;
  color: var(--sh-btn-color) !important;
}

.sh-btn:focus-visible {
  outline: 3px solid var(--sh-btn-bg);
  outline-offset: 3px;
}

.sh-btn__arrow {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.sh-btn:hover .sh-btn__arrow {
  transform: translateX(3px);
}


.sh-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sh-cards-gap);
  margin-top: var(--sh-cards-mt);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.sh-card {
  position: relative;
  text-align: center;
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  background-color: rgba(var(--sh-card-bg-rgb), var(--sh-card-bg-a));
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%,
                    rgba(var(--sh-card-hover-rgb), 0.045) 100%);
  border: 1px solid var(--sh-card-border);
  transition: background-color 0.4s ease, background-image 0.4s ease,
              border-color 0.3s ease, box-shadow 0.4s ease,
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sh-card:hover {
  background-image: none;
  border-color: rgba(var(--sh-card-hover-rgb), var(--sh-card-hover-a));
  box-shadow: 0 20px 45px -18px rgba(var(--sh-card-hover-rgb), 0.35);
  transform: translateY(-6px);
}

.sh-card__icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background-color: rgba(var(--sh-icon-bg-rgb), var(--sh-icon-bg-a));
  border: 1px solid rgba(var(--sh-icon-border-rgb), var(--sh-icon-border-a));
  color: var(--sh-icon-color);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.sh-card:hover .sh-card__icon-box {
  background-color: rgba(var(--sh-icon-hover-rgb), var(--sh-icon-hover-a));
  border-color: rgba(var(--sh-icon-hover-rgb), var(--sh-icon-hover-a));
  color: var(--sh-icon-hover-color);
}


.sh-card__icon-box img,
.sh-card__icon-box svg {
  display: block;
  width: var(--sh-icon-size);
  height: var(--sh-icon-size);
  object-fit: contain;
  transition: filter 0.3s ease;
}

.sh-card:hover .sh-card__icon-box img,
.sh-card:focus-within .sh-card__icon-box img {
  filter: brightness(0) invert(1);
}

.sh-card__title {
  font-family: var(--sh-font-title);
  font-size: var(--sh-card-title-size);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  padding: 0;
  color: var(--sh-card-title-color);
}

.sh-card__desc {
  font-family: var(--sh-font-body);
  font-size: var(--sh-card-desc-size);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--sh-card-desc-color);
}

@keyframes sh-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sh-animate-up {
  opacity: 0;
  animation: sh-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sh-animate-up--d1 { animation-delay: 0.12s; }
.sh-animate-up--d2 { animation-delay: 0.24s; }
.sh-card.sh-animate-up:nth-child(1) { animation-delay: 0.30s; }
.sh-card.sh-animate-up:nth-child(2) { animation-delay: 0.40s; }
.sh-card.sh-animate-up:nth-child(3) { animation-delay: 0.50s; }
.sh-card.sh-animate-up:nth-child(4) { animation-delay: 0.60s; }
.sh-card.sh-animate-up:nth-child(5) { animation-delay: 0.70s; }
.sh-card.sh-animate-up:nth-child(6) { animation-delay: 0.80s; }
.sh-card.sh-animate-up:nth-child(7) { animation-delay: 0.90s; }
.sh-card.sh-animate-up:nth-child(8) { animation-delay: 1.00s; }

@media (max-width: 1023px) {
  .sh-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 640px) {
  .sh-section {
    padding-top: 88px;
    padding-bottom: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sh-heading {
    font-size: clamp(34px, 10vw, var(--sh-h-size)) !important;
  }

  .sh-cards {
    grid-template-columns: 1fr;
  }
}

/* "Swipe slider on phones" switch (19 Oct 2026, class sh-section--swipe), phones only:
   1. The capability cards scroll sideways one at a time, like the Home "Services"
      slider (about 86% of the screen wide, next card peeking in, snaps, dots, no
      autoplay or looping). On phones each card is more compact: icon beside the
      title, text left-aligned.
   2. The whole section fits on one phone screen below the site header: smaller
      heading and subtext, tighter gaps. Spacing and the heading size follow the
      screen height (svh = the height with the browser bars showing), so shorter
      phones get a tighter layout. Checked on all 36 service pages EN/FR/ES: fits
      393x660 (iPhone 15 with Safari's bars); on 375x629 one FR page runs 16px over.
   Tablet and desktop unchanged. Switch off = the previous phone layout. Dots: module.js. */
.sh-dots {
  display: none;
}

@media (max-width: 767px) {
  .sh-section--swipe {
    --sh-vh: 1vh;
    padding: clamp(14px, calc(3 * var(--sh-vh)), 28px) 20px clamp(12px, calc(2 * var(--sh-vh)), 24px);
  }

  @supports (height: 1svh) {
    .sh-section--swipe {
      --sh-vh: 1svh;
    }
  }

  .sh-section--swipe .sh-eyebrow-wrap {
    gap: 8px;
    margin-bottom: clamp(8px, calc(1.5 * var(--sh-vh)), 14px);
  }

  .sh-section--swipe .sh-eyebrow-line {
    width: 20px;
  }

  .sh-section--swipe .sh-eyebrow {
    letter-spacing: 0.12em;
  }

  .sh-section--swipe .sh-heading {
    font-size: clamp(23px, min(7vw, calc(4 * var(--sh-vh))), 30px) !important;
    line-height: 1.08;
    margin-bottom: clamp(8px, calc(1.5 * var(--sh-vh)), 14px);
  }

  .sh-section--swipe .sh-subtext {
    font-size: clamp(15px, min(4vw, calc(2.35 * var(--sh-vh))), 17px);
    line-height: 1.5;
  }

  .sh-section--swipe .sh-ctas {
    margin-top: clamp(10px, calc(2 * var(--sh-vh)), 20px);
  }

  .sh-section--swipe .sh-btn {
    padding: 10px 22px;
  }

  .sh-section--swipe .sh-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
    margin: clamp(12px, calc(2.4 * var(--sh-vh)), 28px) -20px 0;
    padding: 6px 20px 10px;
  }

  .sh-section--swipe .sh-cards::-webkit-scrollbar {
    display: none;
  }

  .sh-section--swipe .sh-card {
    flex: 0 0 86%;
    height: auto;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 15px 16px;
    text-align: left;
  }

  /* No lift on tap: it would be cut off at the top of the scrolling row. */
  .sh-section--swipe .sh-card:hover {
    transform: none;
  }

  .sh-section--swipe .sh-card__icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    margin: 0;
  }

  .sh-section--swipe .sh-card__title {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.25;
  }

  .sh-section--swipe .sh-card__desc {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .sh-section--swipe .sh-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }

  .sh-dots i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background-color: #c9c6dc;
    transition: width 0.25s ease, background-color 0.25s ease;
  }

  .sh-dots i.is-active {
    width: 22px;
    background-color: var(--sh-btn-bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-dots i {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-animate-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .sh-card,
  .sh-card__icon-box,
  .sh-card__icon-box img,
  .sh-card__icon-box svg {
    transition: none;
  }
}

.sh-rt-block > *:first-child { margin-top: 0; }
.sh-rt-block > *:last-child  { margin-bottom: 0; }

/* Desktop and tablets (19 Oct 2026, Matt): subtext in Brandon Grotesque Light,
   21px. It also wins over a font, weight or size typed into the subtext box in
   the editor. Phones (up to 767px) keep their own size. */
@media (min-width: 768px) {
  .sh-subtext,
  .sh-subtext * {
    font-family: 'brandon-grotesque', sans-serif !important;
    font-weight: 300 !important;
    font-size: 21px !important;
  }
}
