/* ========================================
   Stone & Grain — Hero Ribbon
   Auto-scrolling tile carousel
   ======================================== */

.hero {
  background: var(--charcoal);
  height: var(--ribbon-height);
  margin-top: var(--nav-height);
  overflow: hidden;
  position: relative;
}

/* Tile Track */
.hero__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hero__track:hover {
  animation-play-state: paused !important;
}

/* Individual Tile */
.hero__tile {
  flex: 0 0 380px;
  height: 100%;
  position: relative;
  overflow: hidden;
  filter: brightness(0.82) saturate(0.9);
  transition: filter 0.4s ease;
}

.hero__tile:hover {
  filter: brightness(1) saturate(1.05);
}

/* Tile images */
.hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback gradient if image fails */
.hero__tile {
  background: var(--charcoal);
}

/* Tile Label */
.hero__tile-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  text-align: center;
}

.hero__tile-label span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.7);
  font-style: italic;
}

/* Category labels at bottom of ribbon */
.hero__categories {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: var(--z-overlay);
  pointer-events: none;
}

.hero__category {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  padding: 16px 24px;
}

/* Headline overlay */
.hero__content {
  position: absolute;
  bottom: 60px;
  left: 0;
  z-index: var(--z-overlay);
  padding: 0 var(--page-px);
  max-width: var(--content-max);
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--warm-white);
}

.hero__headline em {
  font-style: italic;
  color: var(--light-accent);
}

/* Bottom gradient overlay for text readability */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(to top, rgba(42, 37, 32, 0.85) 0%, rgba(42, 37, 32, 0) 100%);
  z-index: calc(var(--z-overlay) - 1);
  pointer-events: none;
}
