/* ======================================================================
   Home: larger project cards
   Loads last. On desktop and tablet each featured-work card takes most of
   the screen and nearly the full page width, and its text scales with it.
   Below 861px the Log skin's full-screen snap cards are left alone.
   ====================================================================== */
@media (min-width: 861px) {
  .home-featured {
    --card-gutter: clamp(0.75rem, 1.5vw, 1.5rem);
    gap: var(--card-gutter);
    padding: 0 var(--card-gutter);
  }
  /* Most of the screen under the nav bar. The floor keeps short laptop windows
     from squeezing the text; the cap only bites on very tall displays. */
  .home-featured .feature-row,
  .home-featured .feature-row__body {
    min-height: clamp(36rem, 92vh, 80rem);
  }
  .home-featured .feature-row__body {
    padding: clamp(2rem, 4vw, 4.5rem);
  }

  /* Text layer grows with the card, and stays tight. */
  .home-featured .feature-row__num {
    padding: 0.35rem 0.9rem;
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  }
  .home-featured .feature-row__name {
    font-size: clamp(2.75rem, 5vw, 5rem);
    letter-spacing: var(--track-display);
    line-height: 0.96;
    margin: 0.85rem 0 0.5rem;
  }
  .home-featured .feature-row__tagline {
    font-size: clamp(1.15rem, 1.7vw, 1.625rem);
    letter-spacing: var(--track-heading);
    line-height: 1.22;
    max-width: 34ch;
  }
  .home-featured .feature-row__body::after {
    margin-top: 1.25rem;
    padding: 0.65rem 1.25rem;
    font-size: clamp(0.875rem, 1.05vw, 1rem);
  }

  /* A taller frame needs a deeper scrim: the text block is larger and sits
     further up the image than it did on the banner-height cards. */
  .home-featured .feature-row__media::before {
    background: linear-gradient(to top, rgba(18,16,13,0.72) 0%, rgba(18,16,13,0.38) 32%, rgba(18,16,13,0) 62%);
  }
  .home-featured .feature-row--sports-cars .feature-row__media::before {
    background: linear-gradient(to top, rgba(18,16,13,0.86) 0%, rgba(18,16,13,0.55) 36%, rgba(18,16,13,0) 66%);
  }
  .home-featured .feature-row--national-subrogation .feature-row__media::before {
    background: linear-gradient(to top, rgba(88,36,20,0.7) 0%, rgba(148,71,45,0.24) 38%, transparent 64%);
  }

  /* Crops for the taller frame. Sports.Cars now crops at the sides, so lean
     right to keep the nose and front wheel clear of the card edge. */
  .home-featured .feature-row--sports-cars .feature-row__media img { -o-object-position: 78% 55%; object-position: 78% 55%; }
  /* The larger name would run into the centred bars; sit them right of centre. */
  .home-featured .feature-row--national-subrogation .nss-home-bars { left: 36%; }

  /* Keyboard focus: the card clips its own outline, so draw it inside. */
  .home-featured .feature-row:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
  }

  /* Room around the "All work" pill, in step with the larger cards. */
  .home-featured + .home-all-work {
    padding-top: clamp(2.5rem, 4.5vw, 4rem);
    padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  }
}
