/* ---------- Basics ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #FBF5EF;
  color: #111;
  font-family: "Geist", sans-serif;
  font-weight: 300;
  font-size: 14px;
}

img, video { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* Small uppercase label used across the page */
.label {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5c5c5c;
}

/* Fade links a little on hover */
.nav a, .footer-group a, .tags a { transition: opacity 0.3s ease; }
.nav a:hover, .footer-group a:hover, .tags a:hover { opacity: 0.6; }


/* ---------- Header ---------- */

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
}

.logo-link img {
  height: 28px;
  padding: 4px;
}

.nav {
  display: flex;
  gap: 60px;
  font-size: 14px;
  text-transform: uppercase;
}

.nav--right {
  justify-content: flex-end;
  gap: 40px;
}


/* ---------- Hero (trailer) ---------- */

.hero {
  position: relative;
  margin: 0 40px;
  height: 55vh;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media.is-playing {
  object-fit: contain;
}

/* Dark fade at the bottom of the video */
.hero__scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;   /* lets clicks pass through to the video */
}

.hero__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);   /* centers the button */
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.hero__play-btn img {
  width: 60px;
  height: 60px;
}


/* ---------- Title, synopsis and credits ---------- */

/* Two columns: title + synopsis on the left, credits on the right */
.credits {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  column-gap: 96px;
  align-items: start;
  margin: 0 40px;
  padding: 64px 0 80px;
  border-bottom: 1px solid #e6e6e6;
}

/* Keeps the left column in view while the credits scroll.
   Delete these two lines to turn that off. */
.credits__intro {
  position: sticky;
  top: 40px;
}

.title {
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 1;
}

.meta {
  margin-top: 16px;
  font-size: 16px;
  color: #5c5c5c;
}

.synopsis {
  margin-top: 32px;
  max-width: 480px;
  font-size: 20px;
  line-height: 1.5;
}

/* Right column: Cast, Direction & production, Crafts */
.credits__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.group-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

/* One row = label on the left, names on the right */
.credit {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: baseline;   /* lines the label up with the first name */
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #e6e6e6;
}

.credit li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: capitalize;
}


/* ---------- Gallery ---------- */

.carousel {
  padding: 40px 40px 0 40px;
}

/* "Gallery" heading with the dots next to it */
.carousel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-nav button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-nav button:hover {
  background: #888;
}

/* The row of images you scroll sideways */
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 80%;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}


/* ---------- Footer ---------- */

.main-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 64px;
  margin: 40px;
  padding: 64px 40px 0;
  border: 1px solid rgba(31, 31, 31, 0.15);
  border-radius: 8px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand img {
  height: auto;
  max-width: 180px;
}

.about-sentence {
  max-width: 280px;
  font-size: 13px;
  line-height: 1.5;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 100px;
}

.footer-group {
  width: 160px;
}

.footer-heading {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-group ul {
  font-size: 12px;
  text-transform: uppercase;
}

.footer-group a {
  display: inline-block;
  padding: 4px 0;
}

.footer-bottom {
  flex: 0 0 100%;
}

.footer-rule {
  margin: 0 0 24px;
  border: 0;
  border-top: 1px solid rgba(31, 31, 31, 0.15);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
  font-size: 12px;
  opacity: 0.6;
}


/* =====================================================
   SMALLER SCREENS
   Each block only applies when the window is this wide or narrower.
   ===================================================== */

@media (max-width: 1100px) {
  /* Credits stack: title and synopsis on top, credits below */
  .credits {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .credits__intro {
    position: static;   /* turns the sticky behavior off */
  }

  .main-footer {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* Side margins shrink from 40px to 20px */
  .header { padding: 20px; }
  .hero { margin: 0 20px; }
  .credits { margin: 0 20px; padding: 40px 0 56px; }
  .carousel { padding: 0 20px; }
  .festival-details { margin: 24px 20px 0; }
  .main-footer { margin: 20px; padding: 40px 20px 0; gap: 40px; }

  .nav { gap: 24px; }
  .nav--right { gap: 20px; }

  .laurel-strip { margin-top: 40px; padding-bottom: 40px; }
  .laurel-strip > .label { margin: 0 20px 40px; }
  .laurel-track { gap: 40px; padding: 0 20px; }
  .laurel-track img { height: 56px; }
  .laurel-marquee.is-animated .laurel-track { gap: 40px; padding: 0 40px 0 0; }

  .links-container { gap: 40px; }
  .footer-group { width: auto; min-width: 140px; }
  .hero__play-btn { display: none; }
}

@media (max-width: 560px) {
  .title { font-size: 52px; }

  /* Credit label sits above the names instead of beside them */
  .credit {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}