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

/* ========== Hero — brand reel ========== */
.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__video,
.fm-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.fm-hero__video {
  z-index: 1;
}

.fm-hero__poster {
  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;
}

/* 9:16 reel. On a wide hero, pin it to the right and fade its left edge into the black. */
.fm-hero__frame {
  position: absolute;
  inset: 0;
}

.fm-hero__fade {
  display: none;
}

@media (min-width: 768px) {
  .fm-hero__frame {
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
  }

  .fm-hero__frame .fm-hero__video,
  .fm-hero__frame .fm-hero__poster {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
    object-fit: cover;
    object-position: center 40%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .fm-hero__fade {
    display: none;
  }

  .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);
  }

  .fm-hero__video,
  .fm-hero__poster {
    object-position: 50% 78%;
  }

  .fm-hero__inner {
    width: calc(100% - 2rem);
    padding: 0 0 4.25rem;
  }

  .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%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-hero__video {
    display: none;
  }
}

/* ========== 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: #3a3a3a;
}

.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 (max-width: 700px) {
  .fm-picks__list {
    gap: 0.7rem;
  }

  .fm-picks__card {
    flex-basis: calc(50% - 0.35rem);
    max-width: none;
  }

  .fm-picks__card--lead {
    order: -1;
    flex-basis: 100%;
  }
}

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

.fm-featured__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);
  }
}



