#jml-home-release-root .landing-categories {
  padding-block: clamp(3.75rem, 7.5vw, 6.5rem);
  background: var(--landing-surface);
  color: var(--ink);
}

#jml-home-release-root .category-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(1.6rem, 4vw, 3.45rem);
}

#jml-home-release-root .category-label {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin: 0 0 .9rem;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}

#jml-home-release-root .category-label::before { content: ""; width: 1.45rem; height: 2px; background: var(--red); }
#jml-home-release-root .category-header h2 { margin: 0; font: var(--landing-section-title); letter-spacing: -.023em; }
#jml-home-release-root .category-header > p { max-width: 27rem; margin: 0 0 .2rem; color: var(--landing-copy); }

#jml-home-release-root .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 1.25vw, 1.1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

#jml-home-release-root .category-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .25s var(--ease);
}

#jml-home-release-root .category-card__number { position: absolute; top: .8rem; left: .95rem; z-index: 1; color: var(--landing-muted); font-size: .74rem; font-weight: 700; }
#jml-home-release-root .category-card__art { aspect-ratio: 1.95; position: relative; overflow: hidden; background: var(--landing-art); }

#jml-home-release-root .category-card__art img {
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: auto;
  height: auto;
  max-width: calc(var(--equipment-width-limit, 65%) * var(--equipment-width-ratio, 1));
  max-height: calc(69% * var(--equipment-height-ratio, 1) * var(--equipment-optical-scale, 1));
  translate: calc(-1 * var(--equipment-center, 50%)) calc(100% - var(--equipment-ground, 100%));
}

/* Canvas-to-silhouette ratios compensate for each WebP's transparent padding. */
#jml-home-release-root .category-card--truck-mounted {
  --equipment-width-ratio: 1.343;
  --equipment-height-ratio: 1.306;
  --equipment-center: 51.82%;
  --equipment-ground: 85.59%;
}

#jml-home-release-root .category-card--excavator {
  --equipment-width-ratio: 1.295;
  --equipment-height-ratio: 1.060;
  --equipment-center: 50.98%;
  --equipment-ground: 96.49%;
  --equipment-optical-scale: 1.05;
}

#jml-home-release-root .category-card--bulldozer {
  --equipment-width-ratio: 1.577;
  --equipment-height-ratio: 1.259;
  --equipment-center: 45.64%;
  --equipment-ground: 88.80%;
}

#jml-home-release-root .category-card--crawler {
  --equipment-width-ratio: 1.138;
  --equipment-height-ratio: 1.184;
  --equipment-center: 49.80%;
  --equipment-ground: 88.94%;
  --equipment-optical-scale: 1.12;
}

#jml-home-release-root .category-card--wheel-loader {
  --equipment-width-ratio: 1.016;
  --equipment-height-ratio: 1.589;
  --equipment-center: 49.74%;
  --equipment-ground: 95.77%;
}

#jml-home-release-root .category-card--vibro-roller {
  --equipment-width-ratio: 1.052;
  --equipment-height-ratio: 1.137;
  --equipment-center: 49.22%;
  --equipment-ground: 93.88%;
}

#jml-home-release-root .category-card--truck-mobile {
  --equipment-width-ratio: 1.191;
  --equipment-height-ratio: 2.024;
  --equipment-center: 51.24%;
  --equipment-ground: 87.14%;
}

#jml-home-release-root .category-card--rough-terrain {
  --equipment-width-ratio: 1.099;
  --equipment-height-ratio: 1.719;
  --equipment-center: 47.17%;
  --equipment-ground: 82.50%;
}

#jml-home-release-root .category-card__body { display: grid; align-content: end; gap: .35rem; padding: .95rem clamp(.75rem, 1.65vw, 1.55rem) 1.1rem; }
#jml-home-release-root .category-card h3 { margin: 0; font: var(--landing-card-title); }
#jml-home-release-root .category-card__cta { color: var(--landing-muted); font-size: .8rem; font-weight: 700; }
#jml-home-release-root .category-card:hover, #jml-home-release-root .category-card:focus-visible { border-color: #6c767e; box-shadow: 0 .45rem 1.1rem #1a27330d; }
#jml-home-release-root .category-card:hover .category-card__cta { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:has(body.jml-home-release):has(.jml-landing) { scroll-behavior: smooth; }
}

#jml-home-release-root .category-help { display: flex; flex-wrap: wrap; gap: .6rem 1.55rem; justify-content: space-between; align-items: center; margin-top: clamp(1.4rem, 3vw, 2.4rem); }
#jml-home-release-root .category-help > p { margin: 0; font-weight: 800; }
#jml-home-release-root .category-help__links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(1rem, 2vw, 2rem); }
#jml-home-release-root .category-help a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; font-size: .83rem; font-weight: 800; }
#jml-home-release-root .category-help a:hover { text-decoration: underline; text-underline-offset: .22em; }
#jml-home-release-root .category-help a:first-child { min-height: 3.2rem; padding: .6rem .9rem; background: var(--yellow); color: var(--ink); }

@media (max-width: 53rem) {
  #jml-home-release-root .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #jml-home-release-root .category-header { grid-template-columns: 1fr; }
}

@media (max-width: 38rem) {
  #jml-home-release-root .category-card__art { --equipment-width-limit: 74%; aspect-ratio: 1.52; }
  #jml-home-release-root .category-card__number { top: .44rem; left: .55rem; font-size: .65rem; }
  #jml-home-release-root .category-card__body { padding: .62rem .5rem .76rem; }
  #jml-home-release-root .category-card h3 { font-size: clamp(1.19rem, 4.8vw, 1.65rem); }
  #jml-home-release-root .category-card__cta { font-size: .71rem; }
}
