/* Mobile art direction for Home. Desktop and category compositions stay intact. */
@media (max-width: 980px) {
  .home-page .hero-logo-led {
    --home-hero-gutter: clamp(24px, 6.5vw, 64px);
    min-height: 600px;
    min-height: max(560px, min(760px, calc(100svh - var(--header-height))));
  }
  .home-page .hero .red-sliver {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
  }
  .home-page .hero-inner {
    width: 100%;
    max-width: none;
    padding: 48px var(--home-hero-gutter) 96px;
    text-align: left;
  }
  .home-page .hero .eyebrow {
    max-width: 100%;
    margin: 0 0 26px;
    line-height: 1.5;
    text-align: left;
  }
  .home-page .hero-logo-led h1 {
    width: 100%;
    max-width: 540px;
    margin-inline: 0;
  }
  .home-page .hero-logo-heading img { transform-origin: left center; }
  .home-page .hero-logo-led .hero-copy {
    max-width: 680px;
    margin: 26px 0 0;
    padding: 0;
    border: 0;
    font-size: clamp(20px, 3.2vw, 25px);
    line-height: 1.35;
    letter-spacing: .02em;
    text-align: left;
    text-wrap: pretty;
  }
  .home-page .hero .button-row {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 26px;
  }
  .home-page .hero .button { min-width: 0; }
  .home-page .hero .button > [aria-hidden="true"] { display: none; }
  .home-page .hero .button { justify-content: center; }
  .home-page .hero-meta {
    inset: auto var(--home-hero-gutter) 20px;
    justify-content: space-between;
    gap: 8px 20px;
    text-align: left;
    font-size: 10px;
  }
  .home-page .hero-has-video .hero-bg::after {
    background: linear-gradient(180deg, rgba(0,0,0,.54), rgba(0,0,0,.58) 55%, rgba(0,0,0,.86));
  }

  /* Show several marks at once, with a continuous, gap-free loop. */
  .home-page .client-logo-marquee { height: 80px; }
  .home-page .client-logo-marquee::before,
  .home-page .client-logo-marquee::after { width: 24px; }
  .home-page .client-logo-track {
    gap: 8px;
    padding: 0;
    animation-name: home-mobile-logo-marquee;
    animation-duration: 20s;
  }
  .home-page .client-logo-item {
    flex: 0 0 132px;
    /* Safari otherwise sizes max-content from the image's intrinsic width,
       despite laying out each flex item at 132px. The loop then overshoots. */
    width: 132px;
    min-width: 0;
    height: 80px;
    padding: 0 4px;
  }
  @keyframes home-mobile-logo-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - 4px), 0, 0); }
  }

  .home-page .expertise-pullquote {
    min-height: 0;
    padding: 52px var(--page-gutter);
  }
  .home-page .expertise-pullquote-inner { justify-content: flex-start; }
  .home-page .expertise-pullquote blockquote {
    width: 100%;
    max-width: 620px;
    margin: 0;
    padding: 0;
    font-size: clamp(48px, 10vw, 80px);
    line-height: .98;
    text-align: left;
  }
  .home-page .quote-copy { width: 100%; margin: 0; text-align: left; }
  .home-page .quote-line + .quote-line { margin-top: .22em; }
  .home-page .quote-mark-open {
    display: block;
    margin: 0 0 12px;
    font-size: 1.35em;
    line-height: .55;
    vertical-align: baseline;
  }
  .home-page .quote-ending { white-space: nowrap; }
  .home-page .quote-mark-close { margin-left: .08em; font-size: 1em; vertical-align: -.08em; }

  .home-page .credentials { gap: 32px; }
  .home-page .credentials-grid { gap: 32px; }
  .home-page .credential-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 20px;
    text-align: center;
  }
  .home-page .credential-logo { justify-content: center; height: 154px; }
  .home-page .credential-card > div:last-child { width: 100%; max-width: 340px; }
  .home-page .credential-card h3 { text-wrap: balance; }
  .home-page .credential-card + .credential-card { padding-top: 32px; }

  .home-page .home-intro-heading h2 { font-size: clamp(48px, 9vw, 72px); line-height: .98; }
  .home-page .home-intro-lead { font-size: clamp(28px, 4.8vw, 38px); line-height: 1.15; }
  .home-page .home-intro-journey { border-top: 0; }
  .home-page .home-intro-journey article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    min-width: 0;
    padding: 26px 20px 36px;
  }
  .home-page .home-intro-journey article > span { margin: 0; font-size: 36px; }
  .home-page .home-intro-journey h3 { margin: 0; font-size: 36px; }
  .home-page .home-intro-journey p {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    max-width: none;
    line-height: 1.6;
  }
  .home-page .home-intro-journey article::before { width: 220px; right: -36px; }
  .home-page .testimonial-track { gap: 16px; }
  .home-page .testimonial-track figure { flex-basis: calc(100% - 24px); }
}

@media (min-width: 641px) and (max-width: 980px) {
  .home-page .hero-logo-led h1 { max-width: clamp(540px, 60vw, 760px); }
  .home-page .credentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .home-page .credential-card + .credential-card { padding-top: 0; border-top: 0; }
  .home-page .home-intro-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .home-intro-journey article:first-child { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .home-page .hero .button-row { max-width: 380px; margin-inline: auto; }
  .home-page .hero .button { width: 100%; }
  .home-page .hero-meta { display: grid; }
}
