/* Foxtrot Mike — Homepage hero and featured products. Range rail: range.css. */

/* ========== Hero — platform rotator (1.13.06: everywhere; the phone reel is gone) ========== */
.fm-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #050505;
  border-bottom: 1px solid #141414;
  min-height: clamp(520px, 78vh, 820px);
}

.fm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fm-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.55) 32%, rgba(5, 5, 5, 0.12) 58%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, transparent 28%, rgba(5, 5, 5, 0.55) 100%);
}

.fm-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  width: min(100% - 3rem, var(--fm-max));
  margin-inline: auto;
  padding: 5.5rem 0 3.25rem;
}

.fm-hero__copy {
  max-width: 36rem;
}

.fm-hero__title {
  font-family: var(--fm-font-display);
  font-size: clamp(2.05rem, 4.6vw, 3.2rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: #fff;
}

.fm-hero__line {
  display: block;
}

.fm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .fm-hero__veil {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.42) 34%, rgba(5, 5, 5, 0.08) 58%, rgba(5, 5, 5, 0.12) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.28) 0%, transparent 24%, rgba(5, 5, 5, 0.42) 100%);
  }
}

.fm-btn--hero {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  border-radius: 8px;
  min-width: 9.5rem;
}

@media (max-width: 767px) {
  /* Fill the hole under header + shipping, sit above the email dock. */
  .fm-hero {
    min-height: calc(100svh - var(--fm-home-chrome, 7.35rem));
    max-height: calc(100svh - var(--fm-home-chrome, 7.35rem));
    padding-bottom: calc(var(--fm-subscribe-dock-h, 0px) + 0.55rem);
  }

  /* Crop the media to the type area so 9:16 cover can drop the empty sky. */
  .fm-hero__media {
    bottom: calc(var(--fm-subscribe-dock-h, 0px) + 0.15rem);
  }

  /* 1.13.06: the rotator copy already reserves the controls row; this keeps a ~20px gap above it. */
  .fm-hero__inner {
    width: calc(100% - 2rem);
    padding: 0 0 1rem;
  }

  .fm-hero__copy {
    max-width: none;
  }

  .fm-hero__title {
    font-size: clamp(1.75rem, 6.6vw, 2rem);
    margin: 0 0 0.75rem;
  }

  .fm-hero__actions {
    gap: 0.5rem;
  }

  .fm-btn--hero {
    padding: 0.7rem 1rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .fm-hero__veil {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.02) 32%, rgba(5, 5, 5, 0.18) 54%, rgba(5, 5, 5, 0.7) 78%, rgba(5, 5, 5, 0.92) 100%);
  }
}


/* ========== Platform tiles, then featured products ========== */
.fm-picks {
  padding: 1.75rem 0 0.25rem;
  background: var(--fm-bg);
}

.fm-picks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.fm-picks__card {
  margin: 0;
  flex: 1 1 15.5rem;
  max-width: 18.5rem;
  min-width: 0;
}

.fm-picks__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  overflow: hidden;
}

.fm-picks__link:hover {
  border-color: var(--fm-border-strong);
}

.fm-picks__media {
  display: block;
  aspect-ratio: 3 / 4;
  background: #0a0a0a;
  overflow: hidden;
}

.fm-picks__media.is-square {
  aspect-ratio: 1;
}

.fm-picks__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fm-picks__media.is-contain img {
  object-fit: contain;
}

.fm-picks__name {
  display: block;
  padding: 0.7rem 0.4rem 0.8rem;
  text-align: center;
  font-family: var(--fm-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--fm-text);
}

.fm-picks__link:hover .fm-picks__name {
  color: #fff;
}

@media (min-width: 701px) {
  .fm-picks__list {
    flex-wrap: nowrap;
  }

  .fm-picks__card {
    flex: 1 1 0;
    max-width: none;
  }

  .fm-picks__card--lead {
    order: -1;
  }
}

@media (max-width: 700px) {
  .fm-picks__list {
    gap: 0.7rem;
  }

  /* 1.12.77: seven cards. No grow, so an odd last card keeps the half width and sits centered
     instead of stretching to a full-width 3:4 tile. */
  .fm-picks__card {
    flex: 0 0 calc(50% - 0.35rem);
    max-width: none;
  }

  /* 1.12.21: six cards = clean 2x3 grid; Ranch Rifle stays first but no longer spans the row. */
  .fm-picks__card--lead {
    order: -1;
  }
}

.fm-home .fm-featured {
  padding: 1.75rem 0 2rem;
  background: var(--fm-bg);
}

.fm-home .fm-builders {
  padding: 0.25rem 0 2.5rem;
  background: var(--fm-bg);
}

/* 1.13.51: Black Friday Sale row sits first; Featured then follows it like For Builders does. */
.fm-home .fm-bf + .fm-featured {
  padding-top: 0.25rem;
}

.fm-featured__title,
.fm-builders__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.35rem;
  color: var(--fm-text);
  letter-spacing: -0.01em;
}


.fm-empty {
  color: var(--fm-muted);
  margin: 0;
}

/* Archive empty (e.g. accessories with no SKUs) */
.fm-archive-empty {
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  text-align: center;
}

.fm-archive-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fm-text);
}

.fm-archive-empty__text {
  margin: 0 0 1.35rem;
  color: var(--fm-muted);
  font-size: 0.95rem;
}

.fm-archive-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 0;
}

.fm-archive-empty__actions .fm-btn {
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
}

.fm-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .fm-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .fm-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* One row you can scroll. The next card stays in view so the row is obvious. */
.fm-home .fm-featured .fm-product-grid,
.fm-home .fm-builders .fm-product-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--fm-border) transparent;
  padding-bottom: 0.45rem;
}

.fm-home .fm-featured .fm-product-grid::-webkit-scrollbar,
.fm-home .fm-builders .fm-product-grid::-webkit-scrollbar {
  height: 6px;
}

.fm-home .fm-featured .fm-product-grid::-webkit-scrollbar-thumb,
.fm-home .fm-builders .fm-product-grid::-webkit-scrollbar-thumb {
  background: var(--fm-border);
  border-radius: 999px;
}

.fm-home .fm-featured .fm-product-grid > li.product,
.fm-home .fm-builders .fm-product-grid > li.product {
  flex: 0 0 78%;
  width: 78% !important;
  max-width: 78%;
  min-width: 0;
  scroll-snap-align: start;
}

@media (min-width: 600px) {
  .fm-home .fm-featured .fm-product-grid > li.product,
  .fm-home .fm-builders .fm-product-grid > li.product {
    flex-basis: calc((100% - 0.75rem) / 2.15);
    width: calc((100% - 0.75rem) / 2.15) !important;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .fm-home .fm-featured .fm-product-grid,
  .fm-home .fm-builders .fm-product-grid {
    gap: 1rem;
  }

  .fm-home .fm-featured .fm-product-grid > li.product,
  .fm-home .fm-builders .fm-product-grid > li.product {
    flex-basis: calc((100% - 3rem) / 4.2);
    width: calc((100% - 3rem) / 4.2) !important;
  }
}

.fm-home .fm-featured .fm-card__title,
.fm-home .fm-builders .fm-card__title {
  height: 2.6em;
  line-height: 1.3;
  overflow: hidden;
}

.fm-home .fm-featured .fm-card__title a,
.fm-home .fm-builders .fm-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.fm-home .fm-featured .fm-card:hover,
.fm-home .fm-builders .fm-card:hover {
  transform: none;
}




/* Row header: title left; View all + arrows right. Arrows only with a mouse/trackpad. */
.fm-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.fm-row-head .fm-featured__title,
.fm-row-head .fm-builders__title {
  margin: 0;
}

.fm-row-head__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.fm-row-head__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fm-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fm-row-head__all:hover {
  color: var(--fm-text);
}

.fm-row-head__btn {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .fm-row-head__btn {
    display: inline-flex;
  }

  .fm-row-head__all {
    margin-right: 0.25rem;
  }
}

/* HOME-05: section headings match (1.5rem / 600). Titles stay as Kris set them. */
.fm-featured__title,
.fm-builders__title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* ========== Hero rotator (1.12.23, Critiquito HOME-07..19). 1.13.06: all screens. ========== */

.fm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* HOME-18: 48px between the hero and the platform cards. */
.fm-home .fm-picks {
  padding-top: 3rem;
}

/* HOME-08: one flat page colour; every hero photo's edges are baked to #0a0a0a with light noise. */
.fm-hero,
.fm-hero__media {
  background: #0a0a0a;
}

.fm-hrot {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fm-hrot__stage,
.fm-hrot__slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.fm-hrot__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.fm-hrot__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

/* HOME-09: one fixed square box for every slide, inside the hero, same centre point. */
.fm-hrot__slide img {
  position: absolute;
  top: 0;
  right: max(1.5rem, calc((100vw - var(--fm-max)) / 2));
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  max-width: 62%;
  object-fit: contain;
}

/* HOME-13: 44px hit areas; the dot keeps its 26x4 bar look. */
.fm-hrot__controls {
  position: absolute;
  z-index: 4;
  right: max(1.5rem, calc((100vw - var(--fm-max)) / 2));
  bottom: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fm-hrot__dots {
  display: flex;
  gap: 0;
}

.fm-hrot__dot {
  width: 44px;
  height: 44px;
  padding: 20px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fm-hrot__dot::before {
  content: "";
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.fm-hrot__dot[aria-current="true"]::before {
  background: var(--fm-red, #e11d2a);
}

.fm-hrot__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.fm-hrot__arrow:hover {
  border-color: #fff;
}

.fm-hrot button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* The copy layer spans the hero; only the copy itself takes clicks so the controls work. */
.fm-hero__inner {
  pointer-events: none;
}

.fm-hero__copy {
  pointer-events: auto;
}

/* HOME-10: fixed title line, so nothing moves between slides. 1.12.25: no description; title sits 1.5rem above the buttons. */
.fm-hero__slide {
  display: block;
}

.fm-hero__slide-title {
  margin: 0 0 1.5rem;
}

/* Inactive titles are hidden visually only, so the slide-1 H1 stays in the page outline. */
.fm-hero__slide-title:not(.is-active) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fm-hero__slide-desc {
  max-width: 30rem;
  min-height: calc(2 * 1.45em);
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #a0a0a0;
}

.fm-hero__slide-cta {
  display: inline-flex;
}


@media (prefers-reduced-motion: reduce) {
  .fm-hrot__slide,
  .fm-hrot__slide.is-active {
    transition: none;
  }
}

/* 1.12.24: hero photos reverted to the earlier *-blk-* images until Kris sends new ones. Restores their pre-1.12.23 placement and masks; all other 1.12.23 fixes stay. */
.fm-hero__media {
  background: radial-gradient(ellipse at 70% 48%, #1a1a1a 0%, #080808 60%, #050505 100%);
}

.fm-hrot__slide img {
  position: absolute;
  top: 46%;
  right: max(1.5rem, calc((100vw - var(--fm-max)) / 2));
  transform: translateY(-50%);
  width: auto;
  height: 112%;
  max-width: 60%;
  object-fit: contain;
  aspect-ratio: auto;
}

.fm-hrot__slide[data-slide="mike-9"] img {
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 9rem);
  top: 42%;
  height: 104%;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 98%);
}

.fm-hrot__slide[data-slide="mike-15"] img {
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 11rem);
  top: 30%;
  height: 112%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 66%, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 66%, #000 55%, transparent 100%);
}

.fm-hrot__slide[data-slide="mike-15"] img {
  top: 50%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

.fm-hrot__slide[data-slide="mike-9"] img {
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 4rem);
}

.fm-hrot__slide[data-slide="mike-15"] img {
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 4rem);
}

.fm-hrot__slide[data-slide="ranch-rifle"] img {
  top: 48%;
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 1rem);
  height: 112%;
  max-width: 64%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 24%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 24%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

.fm-hrot__slide[data-slide="isu-9"] img {
  top: 50%;
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 4rem);
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

.fm-hrot__slide[data-slide="mike-102"] img {
  top: 45%;
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 4rem);
  height: 94%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

/* 1.12.82: MIKE-47 studio shot. The rifle sits 11-89% across the square, so the 9% edge mask never touches it. */
.fm-hrot__slide[data-slide="mike-47"] img {
  top: 46%;
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 1rem);
  height: 112%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

.fm-hrot__slide[data-slide="vfm-9"] img {
  top: 45%;
  right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 4rem);
  height: 94%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}


/* 1.12.25: under 1024px (1.13.06: phones and tablets too). Gun centred above the copy; controls get their own row under the buttons. */
@media (max-width: 1023px) {
  .fm-hero {
    min-height: 640px;
  }

  .fm-hrot__slide img,
  .fm-hrot__slide[data-slide] img {
    top: 1rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    height: calc(100% - 15rem);
    max-width: calc(100% - 2rem);
    aspect-ratio: 1;
    object-fit: contain;
  }

  /* Full-width control row on the mobile/tablet hero (desktop >=1024px unchanged).
     Prev pins to the left page inset, next to the right, bars stretch evenly between.
     Inset matches .fm-container (1.5rem). Arrows stay 44px; dots stay 44px tall. */
  .fm-hrot__controls {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.25rem;
    margin-left: 0;
    gap: 0.5rem;
  }

  .fm-hrot__dots {
    flex: 1;
    min-width: 0;
    justify-content: stretch;
    gap: 0.25rem;
  }

  .fm-hrot__dot {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 44px;
    padding: 20px 0;
  }

  .fm-hrot__dot::before {
    width: 100%;
  }

  .fm-hrot__arrow {
    flex-shrink: 0;
  }

  .fm-hero__copy {
    padding-bottom: 4.25rem;
  }
}

/* 1.12.25: MIKE-9 slide uses mike9-blk-4-fit (bag faded into the backdrop). Show the whole gun inside the hero; soft edges, no hard cut. */
@media (min-width: 1024px) {
  .fm-hrot__slide[data-slide="mike-9"] img {
    top: 50%;
    right: calc(max(1.5rem, (100vw - var(--fm-max)) / 2) + 4rem);
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }
}

/* ========== 1.13.26: Learn the platform (2×2 photo cards) ========== */
.fm-learn {
  padding: 3rem 0;
  border-top: 1px solid var(--fm-border);
  scroll-margin-top: 6rem;
}

.fm-learn__header {
  margin-bottom: 1.25rem;
}

.fm-learn__title {
  margin: 0;
  font-family: var(--fm-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fm-learn__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-learn__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--fm-radius);
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
}

.fm-learn__card:focus-visible {
  outline: 2px solid var(--fm-text);
  outline-offset: 2px;
}

.fm-learn__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-learn__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 48%, transparent 100%);
  pointer-events: none;
}

.fm-learn__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem 1.15rem;
  color: #fff;
}

.fm-learn__card-title {
  font-family: var(--fm-font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}

.fm-learn__blurb {
  max-width: 28rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
  color: #e8e8e8;
}

.fm-learn__more {
  margin: 1.5rem 0 0;
}

.fm-learn__more .fm-btn {
  min-height: 2.75rem;
}

@media (max-width: 639px) {
  .fm-learn {
    padding: 2rem 0;
  }

  .fm-learn__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-learn__copy {
    padding: 1rem 1.1rem 0.95rem;
  }

  .fm-learn__card-title {
    font-size: 1.35rem;
  }
}

/* CARD-EQ: rail cards share one height. */
.fm-home .fm-featured .fm-product-grid,
.fm-home .fm-builders .fm-product-grid {
  align-items: stretch;
}
