.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-carousel {
  width: calc(100% - 32px);
  max-width: 416px;
  min-width: 0;
  justify-self: center;
  margin-inline: auto;
  margin-block: 40px;
  scroll-margin-top: 24px;
}

.carousel-heading {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--on-dark);
}

.carousel-heading h2 { letter-spacing: .14em; }
.carousel-count { font-size: 12px; font-variant-numeric: tabular-nums; }

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 16px;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 4px; }
.carousel-track.is-dragging { scroll-snap-type: none; }
.carousel-track.is-dragging,
.carousel-track.is-dragging * { cursor: grabbing; user-select: none; }

.hero-carousel .service-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 32px;
  min-height: 384px;
  color: var(--ink);
}

.hero-carousel .service-card:hover { transform: none; }
.hero-carousel .service-top { min-height: 64px; }
.hero-carousel .service-icon { width: 64px; height: 64px; }
.hero-carousel .service-card h3 { font-size: 32px; margin-top: 16px; }
.hero-carousel .service-card > p { max-width: 400px; }
.hero-carousel .service-tags { margin-block: 16px 24px; }
.hero-carousel .service-link { font-size: 16px; }

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel-controls[hidden] { display: none; }
.carousel-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #96bfe765;
  border-radius: 8px;
  background: var(--navy-light);
  color: var(--light);
  transition: background .2s, border-color .2s;
}

.carousel-arrow:hover { background: #183e67; border-color: var(--editorial); }
.carousel-prev .icon { transform: rotate(180deg); }
.carousel-dots { display: flex; gap: 0; }
.carousel-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 48px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--on-dark);
  border-radius: 8px;
}

.carousel-dots button span {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.carousel-dots button[aria-pressed="true"] span { background: var(--editorial); border-color: var(--editorial); }
.hero-carousel .service-help { margin-top: 16px; color: var(--on-dark); }
.hero-carousel .service-help a { color: var(--light); }

@media (max-width: 1100px) {
  .hero-grid { column-gap: 32px; }
  .hero-carousel .service-card { padding: 24px; }
  .hero-carousel .service-card h3 { font-size: 24px; }
}

@media (max-width: 600px) {
  .hero-carousel { width: calc(100% - 16px); max-width: 304px; margin-block: 8px 32px; }
  .hero-carousel .service-card { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-arrow { transition: none; }
}
