/* /film/<code>: the listing film played in the buyer's browser. A dark warm surround, the film as large as the screen
   allows in its own shape (9:16 on a phone held upright, 16:9 otherwise), the city under the words (film-page.js). */
.film-page { background: #16140F; color: #fff; min-height: 100dvh; }
.film { min-height: 100dvh; display: grid; place-items: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.film__stage { --tall: 1.7778; position: relative; overflow: hidden; background: var(--paper);
  width: min(100vw, 100dvh / var(--tall)); aspect-ratio: 1 / var(--tall); }   /* --tall: film-page.js, the phone's shape */
.film__stage[data-format="landscape"] { width: min(100vw, 100dvh * 16 / 9); aspect-ratio: 16 / 9; }
.film__under { position: absolute; inset: 0; visibility: hidden; }
/* the brochure's grade, near enough: a little less contrast and colour, a warm cast (the MP4 does it per pixel) */
.film__under canvas { filter: contrast(.95) saturate(.88) sepia(.07) brightness(1.03); }
.film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Cesium's credits (Google's logo, the data providers) stay readable above the words: required by Google */
.film__under .cesium-widget-credits { z-index: 2; }
.film__stage .cesium-widget-credits, .film__stage .cesium-credit-lightbox-overlay { pointer-events: auto; }

/* the preparation: the listing's title on paper, a brass line filling */
.film__wait { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 8%, 72px); background: var(--paper); color: var(--ink); transition: opacity .8s var(--ease); }
.film__wait.is-gone { opacity: 0; pointer-events: none; }
.film__wait.has-photo { justify-content: flex-end; padding-bottom: clamp(40px, 12%, 96px); color: #fff; background-size: cover; background-position: center;
  box-shadow: inset 0 -70vh 60vh -20vh rgba(17,15,12,.78); }
.film__wait.has-photo .film__kicker { color: #fff; }
.film__wait.has-photo .film__bar { background: rgba(255,255,255,.3); }
.film__wait.has-photo .film__note { color: rgba(255,255,255,.85); }
.film__kicker { font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--brass-ink); min-height: 1.2em; }
.film__title { margin-top: 14px; font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 300; max-width: 16ch; }
.film__bar { margin-top: 32px; height: 1px; background: var(--line); max-width: 320px; }
.film__bar span { display: block; height: 100%; background: var(--brass); transform: scaleX(var(--k, 0)); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.film__note { margin-top: 14px; font-size: var(--t-sm); color: var(--muted); }

/* the end: the agent's buttons over the foot of the last frame */
.film__end { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 28px 12px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(251,249,245,0), rgba(251,249,245,.96) 45%); }
.film__end:not([hidden]) { animation: film-up .7s var(--ease) both; }
@keyframes film-up { from { opacity: 0; transform: translateY(12px); } }
.film__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: var(--t-sm); }
.film__btn:hover { background: var(--blue-2); }
.film__btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.film__btn--ghost:hover { background: var(--sand); }
.film__end[hidden], .film__btn[hidden] { display: none; }

.film__pause { position: absolute; top: 12px; right: 12px; z-index: 3; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(22,20,15,.62); color: #fff; font-size: var(--t-sm); font-weight: 600; }
.film__pause[hidden] { display: none; }
.film__msg { max-width: 34ch; padding: 0 24px; text-align: center; font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 300; line-height: 1.25; }
.film__msg[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .film__wait, .film__bar span { transition: none; }
  .film__end:not([hidden]) { animation: none; }
}
