/* assets/css/home.css — homepage featured hero (carousel card, peeks, dots).
   Rails, cards, promo band and the All-series grid live in rails.css. */

/* --------------------------------------------------------------- hero */
.hero {
  padding: 16px 0 10px;
}
.hero-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
@media (min-width: 960px) {
  .hero {
    padding: 22px 0 8px;
  }
  .hero-frame {
    grid-template-columns: 0.1fr minmax(0, 1fr) 0.1fr;
    gap: 16px;
  }
}
/* Dimmed neighbours peeking either side of the featured card (desktop). */
.hero-peek {
  display: none;
  aspect-ratio: 21 / 9;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--plate) center / cover no-repeat;
  opacity: 0.45;
  transform: scale(0.94);
  filter: brightness(0.6) saturate(0.8);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-peek:hover {
  opacity: 0.7;
  transform: scale(0.96);
}
@media (min-width: 960px) {
  .hero-peek {
    display: block;
  }
}
.hero-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline-strong);
  background: var(--plate);
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
}
@media (min-width: 640px) {
  .hero-card {
    aspect-ratio: 16 / 9;
  }
}
@media (min-width: 960px) {
  .hero-card {
    aspect-ratio: 2 / 1;
  }
}
@media (min-width: 1240px) {
  .hero-card {
    aspect-ratio: 2.2 / 1;
  }
}
.hero-media {
  position: absolute;
  inset: 0;
}
/* Each slide holds a landscape banner (desktop) and the portrait poster (mobile). */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-slide .hero-img-wide {
  display: none;
  object-position: center;
}
@media (min-width: 640px) {
  .hero-slide .hero-img-tall {
    display: none;
  }
  .hero-slide .hero-img-wide {
    display: block;
  }
  /* No banner yet: blurred poster backdrop keeps the frame filled without cropping faces. */
  .hero-slide.no-banner .hero-img-tall {
    display: block;
    object-fit: contain;
    object-position: right center;
    background: #000;
  }
  .hero-slide.no-banner::before {
    content: "";
    position: absolute;
    inset: -10%;
    background: var(--poster) center / cover no-repeat;
    filter: blur(28px) brightness(0.45);
  }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 15, 28, 0) 35%, rgba(1, 15, 28, 0.55) 62%, rgba(1, 15, 28, 0.95) 100%),
    linear-gradient(90deg, rgba(1, 15, 28, 0.7) 0%, rgba(1, 15, 28, 0.25) 45%, rgba(1, 15, 28, 0) 70%);
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 20px;
  max-width: 560px;
}
@media (min-width: 960px) {
  .hero-copy {
    padding: 28px 32px 30px;
  }
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(1.55rem, 5.2vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  max-width: 16ch;
}
.hero-logline {
  margin-top: 8px;
  max-width: 34rem;
  color: rgba(247, 245, 242, 0.9);
  font-size: clamp(0.86rem, 1.3vw, 1rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-ctas .btn-primary {
  min-width: 150px;
}
.hero-arrow {
  position: absolute;
  top: 40%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: rgba(1, 15, 28, 0.55);
  color: var(--chalk);
  font-size: 1.4rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-arrow:hover {
  border-color: rgba(237, 27, 36, 0.7);
}
.hero-arrow[data-hero-prev] {
  left: 12px;
}
.hero-arrow[data-hero-next] {
  right: 12px;
}
@media (min-width: 640px) {
  .hero-arrow {
    display: inline-flex;
  }
}
.hero-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 5px;
}
.hero-dots button {
  width: 18px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.hero-dots button[aria-current="true"] {
  width: 30px;
  background: var(--red);
}
@media (min-width: 960px) {
  .hero-dots {
    right: 28px;
    bottom: 24px;
  }
}
