/* Sun in Frame applies the viewfinder to the image, with show information on solid fields. */
.cinema-home .tux-hero {
  --sif-hero-inset: clamp(1rem, 2vw, 1.75rem);
  --sif-corner-size: clamp(2rem, 4.5vw, 4.5rem);
  --sif-corner-stroke: clamp(3px, .38vw, 6px);
  background-color: var(--sif-night);
}

.cinema-home .tux-hero-frame {
  inset: var(--sif-hero-inset);
  border-color: rgb(244 241 233 / 23%);
}

.cinema-home .tux-hero-frame::before,
.cinema-home .tux-hero-frame::after {
  width: var(--sif-corner-size);
  height: var(--sif-corner-size);
  background: none;
  border: 0 solid var(--sif-paper);
}

.cinema-home .tux-hero-frame::before {
  top: -1px;
  left: -1px;
  border-width: var(--sif-corner-stroke) 0 0 var(--sif-corner-stroke);
}

.cinema-home .tux-hero-frame::after {
  inset: auto -1px -1px auto;
  border-width: 0 var(--sif-corner-stroke) var(--sif-corner-stroke) 0;
}

.cinema-home .tux-hero-edition {
  position: relative;
  padding-top: clamp(2.85rem, 4vw, 3.65rem);
  color: var(--sif-paper);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .11em;
}

.cinema-home .tux-hero-edition > span {
  padding: .4rem .65rem;
  border: 1px solid rgb(244 241 233 / 24%);
  background: var(--sif-night);
}

.cinema-home .tux-hero-edition > span:first-child {
  border-color: var(--sif-gold);
  background: var(--sif-gold);
  color: var(--sif-night);
}

.cinema-home .tux-hero-copy h1 {
  line-height: .99;
  color: var(--sif-paper);
}

.cinema-home .tux-hero-copy .tux-gold {
  color: var(--sif-gold);
}

.cinema-home .tux-hero-caption {
  width: min(calc(100% - 2 * (var(--sif-hero-inset) + 1.25rem)), 1680px);
  bottom: calc(var(--sif-hero-inset) + .45rem);
  font-family: var(--font-brand);
}

.cinema-home .tux-hero-caption a {
  color: var(--sif-paper);
}

/* The repeat is a small transition between the show title and the editorial story. */
.cinema-home .tux-intro {
  position: relative;
}

.cinema-home .tux-intro::before {
  position: absolute;
  top: 1.35rem;
  left: 0;
  width: 7.5rem;
  height: 1.25rem;
  background: var(--sif-graphite) url("/preview/frame-weave-tile.svg") left top / 40px 40px repeat-x;
  content: "";
}

.cinema-home .tux-intro-title > p {
  color: var(--sif-accent, var(--primary));
}

.cinema-home :is(.tux-section-heading, .tux-format-grid) h2 {
  font-family: var(--font-promo);
  font-size: clamp(3rem, 5vw, 5.125rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.cinema-home .tux-section-heading h2 span {
  color: var(--sif-accent, var(--primary));
}

.cinema-home .tux-intro-stats > div {
  min-width: 0;
  border-left: 2px solid var(--sif-accent, var(--primary));
  padding-left: clamp(.6rem, 1.3vw, 1.15rem);
}

.cinema-home .tux-creators-section,
.cinema-home .tux-format-section {
  background: var(--surface);
}

.cinema-home .tux-cast-reel {
  align-items: stretch;
}

.cinema-home .tux-cast-portrait:nth-child(even) {
  margin-top: 0;
}

.cinema-home :is(.tux-cast-portrait, .tux-city-stage, .tux-academy-image)::before {
  --sif-photo-inset: 14px;
  --sif-photo-corner: 25px;
  --sif-photo-stroke: 3px;
  position: absolute;
  inset: var(--sif-photo-inset);
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(var(--sif-paper), var(--sif-paper)) left top / var(--sif-photo-corner) var(--sif-photo-stroke) no-repeat,
    linear-gradient(var(--sif-paper), var(--sif-paper)) left top / var(--sif-photo-stroke) var(--sif-photo-corner) no-repeat,
    linear-gradient(var(--sif-paper), var(--sif-paper)) right bottom / var(--sif-photo-corner) var(--sif-photo-stroke) no-repeat,
    linear-gradient(var(--sif-paper), var(--sif-paper)) right bottom / var(--sif-photo-stroke) var(--sif-photo-corner) no-repeat;
  content: "";
}

.cinema-home :is(.tux-city-stage, .tux-academy-image)::before {
  --sif-photo-inset: clamp(.75rem, 1.35vw, 1.25rem);
  --sif-photo-corner: clamp(1.5rem, 2.5vw, 2.5rem);
}

.cinema-home .tux-cast-index {
  border-color: var(--sif-gold);
  background: var(--sif-gold);
  color: var(--sif-night);
  font-size: .9rem;
}

.cinema-home .tux-cast-caption {
  left: 1.5rem;
  right: 1.5rem;
  bottom: 2.2rem;
}

.cinema-home .tux-cast-caption > span {
  color: var(--sif-gold);
  font-family: var(--font-brand);
  font-weight: 700;
}

.cinema-home .tux-city-dossier {
  top: 2rem;
  left: 2.1rem;
  right: 2.1rem;
  padding: .55rem .7rem;
  background: rgb(10 12 16 / 92%);
  border: 1px solid rgb(244 241 233 / 25%);
}

.cinema-home .tux-city-controls button {
  padding-inline: .65rem;
}

.cinema-home .tux-city-controls button[aria-pressed="true"] {
  border-color: var(--sif-accent, var(--primary));
  background: color-mix(in srgb, var(--sif-accent, var(--primary)) 12%, transparent);
}

.cinema-home .tux-format-list li {
  padding-inline: .9rem;
}

.cinema-home .tux-format-list li:nth-child(odd) {
  background: color-mix(in srgb, var(--sif-accent, var(--primary)) 7%, transparent);
}

.cinema-home .tux-academy-image > div {
  bottom: 2.4rem;
}

@media (max-width: 1023px) {
  .cinema-home .tux-hero {
    --sif-hero-inset: .8rem;
    min-height: 0;
  }

  .cinema-home .tux-hero-edition {
    width: calc(100% - 2 * (var(--sif-hero-inset) + .7rem));
    gap: .65rem;
    padding-top: 2rem;
    font-size: .6875rem;
    letter-spacing: .07em;
  }

  .cinema-home .tux-hero-edition > span:last-child {
    max-width: none;
    margin-left: auto;
  }

  .cinema-home .tux-hero-copy {
    width: calc(100% - 2 * (var(--sif-hero-inset) + .7rem));
    padding-block: clamp(10rem, 45vw, 17rem) 0;
  }

  .cinema-home .tux-hero-copy h1 {
    font-size: clamp(2.55rem, 12.8vw, 4.75rem);
    margin-bottom: 1rem;
  }

  .cinema-home .tux-hero-caption {
    position: relative;
    inset: auto;
    transform: none;
    width: calc(100% - 2 * (var(--sif-hero-inset) + .7rem));
    padding-block: .9rem 1.65rem;
    align-items: center;
  }

  .cinema-home .tux-hero-caption > span {
    font-size: .75rem;
    max-width: 24ch;
  }

  .cinema-home :is(.tux-section-heading, .tux-format-grid) h2 {
    font-size: clamp(2.5rem, 9vw, 3.4rem);
  }

  .cinema-home .tux-city-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem .65rem;
  }

  .cinema-home .tux-city-controls button {
    min-width: 0;
    font-size: .875rem;
  }

  .cinema-home .tux-city-controls button svg {
    flex: 0 0 14px;
  }
}

@media (max-width: 639px) {
  .cinema-home .tux-hero-picture {
    top: 3.75rem;
    height: 21.5rem;
  }

  .cinema-home .tux-hero-shade {
    top: 3.75rem;
    height: 22rem;
    background: linear-gradient(
      0deg,
      var(--sif-night),
      rgb(10 12 16 / 80%) 15%,
      rgb(10 12 16 / 30%) 38%,
      transparent 71%
    );
  }

  .cinema-home .tux-hero-copy {
    padding-top: clamp(11.75rem, 51vw, 17rem);
  }

  .cinema-home .tux-hero-actions {
    gap: .55rem;
    margin-top: 1rem;
  }

  .cinema-home .tux-hero-actions > a {
    min-height: 44px;
    padding-inline: .7rem;
    gap: .45rem;
    font-size: .8125rem;
  }

  .cinema-home .tux-hero-caption {
    gap: .6rem;
  }

  .cinema-home .tux-hero-caption a {
    font-size: .75rem;
    gap: .35rem;
  }

  .cinema-home .tux-intro-stats dd {
    font-size: clamp(1.45rem, 6.3vw, 1.85rem);
  }

  .cinema-home .tux-city-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

