/* Match the hero's yellow highlight while retaining the heading reveal animation. */
#ca-home .cn-h2 .cn-section-highlight {
  display: inline-block;
  max-width: 100%;
  padding: .035em .24em .10em;
  border-radius: 999px;
  background: #ffc320;
  color: #17171a;
  line-height: 1.02;
  text-decoration: none;
  vertical-align: baseline;
}

#ca-home :is(.cn-work__t, .cn-srch__t) .cn-btns {
  justify-content: flex-start;
  justify-self: start;
  margin-left: 0;
}

@media (max-width: 1024px) {
  #ca-home :is(.cn-work__t, .cn-srch__t) {
    text-align: left;
    justify-items: start;
  }
  #ca-home .cn-srch__pts { justify-self: start; }
}

@media (max-width: 600px) {
  #ca-home .cn-h2 .cn-section-highlight { padding-inline: .18em; }

  /* Keep the mobile introduction compact; the showcase remains below it. */
  #ca-home .cn-hero .hero-scene { display: none; }
  #ca-home .cn-hero__t .cn-h1 { order: 0; }
  #ca-home .cn-hero__t .cn-lead { order: 1; }
  #ca-home .cn-hero__t .hero-highlights { order: 2; margin-top: 0 !important; }
  #ca-home .cn-hero__t .cn-btns {
    order: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  #ca-home .cn-hero__t .cn-btns .cn-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding-inline: 8px;
    font-size: clamp(11px, 3vw, 13px);
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  /* Place the laptop between the work introduction and its calls to action. */
  #ca-home .cn-work__g { gap: 18px; }
  #ca-home .cn-work__t { display: contents; }
  #ca-home .cn-work__t .cn-eye { order: 0; }
  #ca-home .cn-work__t .cn-h2 { order: 1; }
  #ca-home .cn-work__t .cn-sub { order: 2; }
  #ca-home .cn-work__g > .cn-lap { order: 3; width: 100%; }
  #ca-home .cn-work__t .cn-btns { order: 4; margin-top: 0; }

  #ca-home .cn-svc .cn-idx { display: none; }
  #ca-home .cn-svc .cn-deck {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none !important;
    perspective: none;
  }
  #ca-home .cn-svc .cn-deck .cn-card {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    opacity: 1 !important;
    scale: 1;
    transform: none;
    translate: none;
    pointer-events: auto !important;
    scroll-snap-align: none;
  }
}
