/* Home page: the product film (assets/js/film.js). */
#home .film-section { background: #fff; padding: 104px 24px 112px; }
.film-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
#home .film-head .section-label { margin: 0 auto 24px; display: table; }
#home .film-head .section-headline { margin: 0 auto 12px; }
#home .film-head .section-body { margin: 0 auto; }

.film-frame {
  position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; background: #070a12;
  box-shadow: 0 1px 2px rgba(11, 29, 51, 0.06), 0 40px 80px -40px rgba(11, 29, 51, 0.45);
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #070a12; }

/* Before it plays: the poster, a quiet scrim and one play button. */
.film-start {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.45), rgba(7, 10, 18, 0.05) 55%);
  color: #fff; font-family: var(--mag-sans); cursor: pointer;
  transition: opacity 200ms ease;
}
.film-start[hidden] { display: none; }
.film-start-inner { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 100px; background: rgba(255, 255, 255, 0.96); color: #0b0b0c; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.film-start-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #0b0b0c; color: #fff; }
.film-start-inner strong { font-size: 15px; font-weight: 700; }
.film-start-inner small { margin-left: 2px; font-size: 13px; color: #5b6b7e; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .film-start:hover .film-start-inner { transform: scale(1.03); } }
.film-start:active .film-start-inner { transform: scale(0.98); }
.film-start:focus-visible { outline: none; }
.film-start:focus-visible .film-start-inner { outline: 2px solid #31a1f7; outline-offset: 3px; }

/* Chapters: jump into the film. */
.film-chapters { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: 1040px; margin: 20px auto 0; padding: 0; list-style: none; }
.film-chapter { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 13px; border-radius: 100px; font-family: var(--mag-sans); font-size: 13px; font-weight: 500; color: #5b6b7e; transition: background-color 120ms ease, color 120ms ease; }
.film-chapter span { font-size: 12px; color: #94a1b0; font-variant-numeric: tabular-nums; }
.film-chapter[aria-current="true"] { background: #0b0b0c; color: #fff; }
.film-chapter[aria-current="true"] span { color: rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) { .film-chapter:not([aria-current="true"]):hover { background: #f3f5f8; color: #0b0b0c; } }
.film-chapter:focus-visible { outline: 2px solid #1f4e8c; outline-offset: 2px; }

@media (max-width: 700px) {
  #home .film-section { padding: 72px 16px 80px; }
  .film-frame { border-radius: 14px; }
  .film-start-inner { gap: 10px; padding: 8px 16px 8px 8px; }
  .film-start-icon { width: 36px; height: 36px; }
  .film-chapters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .film-chapters::-webkit-scrollbar { display: none; }
  .film-chapter { flex: none; }
}
