/* Home only. The first project remains usable with JavaScript disabled. */
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-carousel {
  background: #0b0e11;
  /* Native Saudade picture is 1920×754. Keep the stage within that size
     and no wider in aspect, so its faces never need a vertical crop. */
  min-height: clamp(620px, calc(100vw * 754 / 1920), 754px);
  max-height: 754px;
}
.hero-slides { max-width: 1920px; margin-inline: auto; }
.hero-slide {
  opacity: 0;
  transform: translateX(2.5%);
  transition: opacity 700ms ease, transform 900ms var(--ease);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; transform: translateX(0); }
.hero-slide .hero-image { object-fit: contain; object-position: center; }
.hero-clean-frame { position: absolute; inset: 0; overflow: hidden; }
.hero-clean-frame .hero-image {
  height: calc(100% * 1080 / 754);
  top: 50%; bottom: auto;
  transform: translateY(-50%);
  object-fit: cover;
  object-position: 65% 50%;
}
@media (min-width: 1400px) {
  /* Keep the actors to the right of the headline when there is room. */
  .hero-clean-frame .hero-image { object-position: 15% 50%; }
}
.hero-carousel .hero-content { max-width: 1920px; margin-inline: auto; }
.hero-carousel .hero-top, .hero-carousel .hero-bottom {
  left: max(var(--gutter), calc((100% - 1920px) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - 1920px) / 2 + var(--gutter)));
}
.hero-carousel .hero-bottom { align-items: flex-end; }
.hero-controls { display: flex; align-items: center; gap: 8px; }
.hero-controls[hidden] { display: none; }
.hero-controls button {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent;
  color: var(--paper); cursor: pointer;
  font: 500 12px var(--font-sans); letter-spacing: .04em;
  transition: background var(--fast), border-color var(--fast);
}
.hero-controls .hero-choice { border-bottom-color: rgba(255,255,255,.45); }
.hero-controls .hero-choice[aria-pressed="true"] { border-bottom: 3px solid var(--paper); background: rgba(255,255,255,.12); }
.hero-controls button:hover { background: rgba(255,255,255,.2); }
.hero-controls button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.hero-controls .hero-toggle { border: 1px solid rgba(255,255,255,.55); border-radius: 50%; margin-left: 8px; font-size: 14px; }
.hero-carousel .spotlight { width: 340px; max-width: 42%; min-width: 0; }
.hero-carousel .spotlight-title [data-hero-title] {
  font: inherit; letter-spacing: inherit; transform: none;
}
.hero-carousel .spotlight-title { gap: 24px; }
.hero-carousel .spotlight-credit { line-height: 1.5; }
/* The film and its caption share one column on tablets. Narrow windows
   put the film first and keep the whole composition visible on every slide. */
.hero-intro { display: contents; }
@media (max-width: 1200px), (pointer: coarse) and (max-width: 1440px) {
  .hero-carousel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas: "intro frame" "intro caption";
    align-content: center;
    column-gap: clamp(20px, 3.5vw, 52px);
    padding: clamp(26px, 4vw, 60px) var(--gutter);
    height: auto; min-height: 0; max-height: none;
  }
  .hero-intro { display: block; grid-area: intro; align-self: center; min-width: 0; }
  .hero-carousel .hero-top, .hero-carousel .hero-bottom { position: static; inset: auto; }
  .hero-carousel .hero-top { margin-bottom: clamp(16px, 2.4vw, 32px); }
  .hero-carousel .hero-top .eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .09em; }
  .hero-carousel .hero-edition, .hero-carousel .hero-shade { display: none; }
  .hero-carousel .hero-content { margin: 0; padding: 0; }
  .hero-carousel h1 { font-size: clamp(44px, 5.5vw, 80px); line-height: .98; margin-bottom: 18px; }
  .hero-carousel .hero-content p { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.5; margin-bottom: 20px; }
  .hero-actions { gap: 8px 20px; }
  .hero-actions .text-link { min-height: 44px; }
  .hero-slides {
    grid-area: frame; position: relative; inset: auto; width: 100%; min-width: 0;
    aspect-ratio: 16 / 9; margin: 0; align-self: end; overflow: hidden; background: #07090a;
    touch-action: pan-y pinch-zoom;
  }
  .hero-clean-frame .hero-image { height: 100%; top: 0; transform: none; object-fit: contain; }
  .hero-carousel .hero-bottom {
    grid-area: caption; display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px 18px; margin: 0; padding-top: 14px;
  }
  .hero-carousel .spotlight {
    order: -1; flex: 1 1 180px; width: auto; min-width: 0; max-width: none;
    margin: 0; padding: 0; border: 0;
  }
  .hero-carousel .spotlight .eyebrow { font-size: 11px; letter-spacing: .08em; margin-bottom: 5px; color: var(--pink); }
  .hero-carousel .spotlight-title { font-size: clamp(27px, 2.65vw, 40px); gap: 10px; justify-content: flex-start; align-items: baseline; }
  .hero-carousel .spotlight-title span[aria-hidden] { font-size: 16px; }
  .hero-carousel .spotlight-credit { margin-top: 5px; font-size: 13px; }
  .hero-controls { gap: 2px; }
  .hero-controls .hero-choice { color: #c9c4c0; border-bottom-color: #626263; }
  .hero-controls .hero-choice[aria-pressed="true"] { color: var(--pink); background: transparent; border-bottom-color: var(--pink); }
  .hero-controls .hero-toggle { color: var(--pink); margin-left: 6px; }
}
@media (max-width: 539px), (max-width: 639px) and (min-height: 481px), (max-width: 639px) and (orientation: portrait) {
  .hero-carousel {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "frame" "controls" "intro";
    padding: 0 0 28px;
  }
  .hero-carousel .hero-bottom { display: contents; }
  .hero-carousel .spotlight {
    grid-area: frame; align-self: end; z-index: 1; padding: 24px var(--gutter) 12px;
    background: linear-gradient(transparent, rgb(8 10 13 / 84%)); color: white;
  }
  .hero-carousel .spotlight-title { justify-content: space-between; font-size: 27px; }
  .hero-carousel .spotlight-credit { margin: 2px 0 0; }
  .hero-controls { grid-area: controls; margin-inline: var(--gutter); padding-block: 4px; }
  .hero-controls .hero-choice { flex: 1 1 auto; }
  .hero-intro { padding: 20px var(--gutter) 0; }
  .hero-carousel .hero-top { margin-bottom: 10px; }
  .hero-carousel h1 { margin-bottom: 12px; font-size: clamp(42px, 11vw, 60px); }
  .hero-carousel .hero-content p { margin-bottom: 14px; }
  .hero-carousel .hero-actions { flex-direction: row; align-items: center; }
}
@media (min-width: 540px) and (max-height: 480px) and (orientation: landscape) {
  .hero-carousel { padding-block: 18px; }
  .hero-carousel h1 { font-size: clamp(36px, 5.4vw, 52px); margin-bottom: 10px; }
  .hero-carousel .hero-top, .hero-carousel .hero-content p { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
}
