/* Home services: a sideways row of image cards (name top left, key points as pills along the bottom). White band; theme tokens only. */
.home-services { overflow: hidden; background: #fff; padding: clamp(72px, 9vw, 130px) 0; color: var(--tm-color-ink); }
@media (min-width: 1200px) { .home-services { padding-left: var(--tm-rail-width); } }
.home-services__inner { width: min(var(--tm-shell-max), calc(100% - var(--tm-shell-gutter) * 2)); margin-inline: auto; }

.home-services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
/* Small label above the heading: same text style as the eyebrows on the other sections (no border). */
.home-services__pill { margin: 0 0 20px; color: var(--tm-color-accent); font-size: 11px; font-weight: 500; letter-spacing: 2px; line-height: 1.5; text-transform: uppercase; }
.home-services__head h2 { margin: 0; color: var(--tm-color-ink); font-size: clamp(34px, 3.8vw, 56px); font-weight: 500; letter-spacing: -1.6px; line-height: 1.08; }
.home-services__tools { display: flex; align-items: center; gap: 22px 30px; flex: 0 0 auto; }
.home-services__arrows { display: flex; gap: 10px; }
.home-services__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--tm-border); border-radius: 50%; background: #fff; color: var(--tm-color-ink); cursor: pointer; transition: background-color .3s var(--tm-ease), border-color .3s var(--tm-ease), color .3s var(--tm-ease), opacity .3s; }
.home-services__arrow:hover:not(:disabled), .home-services__arrow:focus-visible { background: var(--tm-color-accent); border-color: var(--tm-color-accent); }
.home-services__arrow:focus-visible { outline: 2px solid var(--tm-color-accent-text); outline-offset: 3px; }
.home-services__arrow:disabled { opacity: .35; cursor: default; }

/* Row: bleeds to both edges of the content area (right edge of the screen, left edge next to the rail) so cards
   are cut off on either side, inviting a swipe. The left padding keeps the first card aligned with the heading. */
.home-services { --hs-avail: 100vw; --hs-bleed: calc((100% - var(--hs-avail)) / 2); }
@media (min-width: 1200px) { .home-services { --hs-avail: calc(100vw - var(--tm-rail-width)); } }
.home-services__track {
  display: flex;
  gap: 20px;
  margin-left: var(--hs-bleed);
  margin-right: calc((100vw - 100%) / -2);
  padding: 10px 24px 10px calc(-1 * var(--hs-bleed));
  margin-top: -10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.home-services__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.home-services__track::-webkit-scrollbar { display: none; }
.home-services__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.home-services__track.is-dragging .home-service-card { pointer-events: none; }

.home-service-card {
  position: relative;
  flex: 0 0 clamp(290px, 27vw, 400px);
  aspect-ratio: 1.06 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round 14px);
  background: #0b1a3a;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .5s var(--tm-ease);
}
.home-service-card img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--tm-ease); }
.home-service-card__shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(6, 12, 28, .92) 0%, rgba(6, 12, 28, .72) 30%, rgba(6, 12, 28, .6) 55%, rgba(6, 12, 28, .72) 68%, rgba(6, 12, 28, .94) 100%); pointer-events: none; }
.home-service-card__title { position: relative; z-index: 2; margin: 0; max-width: 90%; color: #fff; font-size: clamp(20px, 1.7vw, 25px); font-weight: 500; letter-spacing: -.3px; line-height: 1.25; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.home-service-card__points { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-service-card__points li {     padding: 2px 8px;
    /* border: 1px solid rgba(255, 255, 255, .85); */
    border-radius: 999px;
    background: white;
    color: black;
    font-size: 12px;
    line-height: 1.3;
    transition: background-color .3s var(--tm-ease), transform .4s var(--tm-ease); }
.home-service-card:focus-visible { outline: 2px solid var(--tm-color-accent); outline-offset: 3px; }

/* Entrance */
.home-services--animate .home-service-card { opacity: 0; transform: translateY(36px); }
.home-services--animate .home-service-card.is-in { opacity: 1; transform: none; transition: opacity .8s var(--tm-ease), transform .8s var(--tm-ease); }

@media (max-width: 767.98px) {
  .home-services__head { flex-direction: column; align-items: flex-start; }
  .home-services__arrows { display: none; }
  .home-service-card { flex-basis: min(82vw, 340px); padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-service-card, .home-service-card img, .home-service-card__points li, .home-services__arrow { transition: none; }
  .home-services--animate .home-service-card { opacity: 1; transform: none; }
}

/* Ticker mode: snapping would fight the automatic movement. */
.home-services--ticker .home-services__track { scroll-snap-type: none; }
.home-services--ticker .home-service-card { scroll-snap-align: none; }
