/* ===== Brand-animation card (after the hero) =====
   A fixed card under the hero (it does not grow on scroll). Until our own film is ready it
   shows an abstract 3D scene (film_motion_controller.js); with a film, .film__video. */

.film { padding: 100px 0 70px; }

/* holds the card and the mascot peeking over its top edge */
.film__sticky { position: relative; }

.film__frame {
  position: relative;
  aspect-ratio: 1812 / 871;
  border-radius: var(--radius-md);
  background: #121312;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.film__ui { position: absolute; inset: 0; pointer-events: none; }
.film__ui > * { pointer-events: auto; }
.film__ui > .film__meta { pointer-events: none; }

.film__meta {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.3;
  pointer-events: none;
}
/* small dark pills keep the labels readable over whatever the card shows */
.film__meta p {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(18, 19, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.film__media { position: absolute; inset: 0; }

.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Abstract 3D scene (film_motion_controller.js draws into a canvas). The warm gradient is
   plain CSS, so the card looks right before the scene loads and where WebGL isn't available. */
.film__scene {
  background:
    radial-gradient(60% 70% at 32% 18%, #ffe6dc 0%, rgba(255, 230, 220, 0) 70%),
    linear-gradient(180deg, #ffb48a 0%, #ff7a3c 40%, #f93d0d 75%, #b52305 100%);
}
.film__scene canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.film__scene.is-ready canvas { opacity: 1; }

@media (max-width: 1280px) {
  .film { padding-top: 64px; }
}

@media (max-width: 767px) {
  .film { padding: 40px 0 56px; }
  .film__frame { aspect-ratio: 16 / 9; border-radius: 20px; }
  .film__meta { top: 10px; left: 10px; right: 10px; font-size: 11px; }
  .film__meta p { padding: 4px 10px; }
}
