/* Page-local About / Category hero sizing and manual slider. */
.ff-page-hero {
  position: relative;
  height: var(--ff-page-hero-desktop-height, 70vh);
  min-height: var(--ff-page-hero-desktop-min-height, 520px);
  padding: 10rem 0 6rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0c0a09;
}

.ff-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}

.ff-page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0c0a09, rgba(12, 10, 9, 0.6), rgba(12, 10, 9, 0.3));
  pointer-events: none;
}

.ff-page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ff-page-hero-content > img {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: min(100%, 14rem);
  object-fit: contain;
  opacity: 1;
}

.ff-page-hero-title {
  position: relative;
  z-index: 1;
}

/* The slider keeps every slide in the same fixed-height viewport. */
.ff-page-hero-slider {
  display: block;
  height: var(--ff-page-hero-desktop-height, 560px);
  min-height: var(--ff-page-hero-desktop-height, 560px);
  padding: 0;
}

.ff-page-hero-slides {
  position: absolute;
  inset: 0;
}

.ff-page-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10rem 0 6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.ff-page-hero-slide[hidden] {
  display: none;
}

.ff-page-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.ff-page-hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  color: inherit;
}

.ff-page-hero-slide-link .ff-page-hero-content {
  pointer-events: none;
}

.ff-page-hero-slide.is-active .ff-reveal {
  opacity: 1;
  transform: none;
}

.ff-page-hero-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 5;
  display: flex;
  max-width: calc(100% - 3rem);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ff-page-hero-arrow {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.ff-page-hero-arrow:hover,
.ff-page-hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.ff-page-hero-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0.4rem;
}

.ff-page-hero-dot {
  width: 2rem;
  min-width: 2rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ff-page-hero-dot span {
  width: 0.45rem;
  height: 0.45rem;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.ff-page-hero-dot.is-active span {
  width: 1.25rem;
  background: #fff;
}

.ff-page-hero-arrow:focus-visible,
.ff-page-hero-dot:focus-visible,
.ff-page-hero-slider:focus-visible {
  outline: 3px solid var(--ff-orange);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .ff-page-hero {
    height: var(--ff-page-hero-mobile-height, 70vh);
    min-height: var(--ff-page-hero-mobile-min-height, 520px);
    padding: 8rem 0 5.5rem;
  }

  .ff-page-hero-slide {
    padding: 8rem 0 5.5rem;
  }

  .ff-page-hero-slider {
    height: var(--ff-page-hero-mobile-height, 420px);
    min-height: var(--ff-page-hero-mobile-height, 420px);
  }

  .ff-page-hero-controls {
    left: 1rem;
    right: 1rem;
    bottom: 0.85rem;
    max-width: none;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-page-hero-slide,
  .ff-page-hero-dot span {
    transition: none;
  }
}