/* ---------- Hero film ----------
   A scripted animation in a fixed 480 × 520 stage, scaled to fit its box and
   drawn straight onto the page (no frame). Every frame comes from assets/film.js. */
.film { position: relative; width: 100%; aspect-ratio: 416 / 456; overflow: visible; isolation: isolate; }
.fm-stage { position: absolute; left: 0; top: 0; width: 480px; height: 520px; transform-origin: 0 0; color: var(--ink, #111); font-family: var(--font); }
.fm-stage *, .fm-stage *::before, .fm-stage *::after { box-sizing: border-box; }
.fm-stage p, .fm-stage h4 { margin: 0; }
.fm-o { opacity: 0; }

/* captions */
.fm-cap { position: absolute; left: 32px; top: 32px; width: 416px; height: 72px; }
.fm-cap p { position: absolute; left: 0; top: 0; width: 100%; font-size: 26px; line-height: 1.16; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; text-align: center; }
.fm-cap span { display: inline-block; }
.fm-dot { color: var(--coral, #ff5a5f); }

/* map */
.fm-map { position: absolute; left: 32px; top: 128px; width: 416px; height: 340px; background: #fff; border: 1px solid var(--line, #e9e9e6); border-radius: 22px; overflow: hidden; }
.fm-cam { position: absolute; left: 0; top: 0; width: 416px; height: 340px; transform-origin: 0 0; }
.fm-cam > svg { position: absolute; left: 0; top: 0; overflow: visible; }
.fm-pin { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e9e9e6); font-size: 13px; font-weight: 600; box-shadow: 0 8px 18px -14px rgba(17,17,17,.4); }
.fm-pin svg { color: var(--coral, #ff5a5f); }
.fm-tag { position: absolute; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: #fff; border: 1px solid var(--line, #e9e9e6); color: #6b6b6b; box-shadow: 0 8px 18px -12px rgba(17,17,17,.35); }
.fm-tag.hit { background: var(--coral, #ff5a5f); border-color: var(--coral, #ff5a5f); color: #fff; }
.fm-lens { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 2.5px solid var(--ink, #111); background: rgba(255,255,255,.2); box-shadow: 0 10px 24px -12px rgba(17,17,17,.45); }
.fm-lens::after { content: ""; position: absolute; width: 22px; height: 3.5px; border-radius: 3px; background: var(--ink, #111); right: -18px; bottom: -3px; transform: rotate(45deg); }
.fm-lock { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; background: var(--ink, #111); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -14px rgba(17,17,17,.6); }
.fm-lock svg { color: var(--coral, #ff5a5f); }

/* message */
.fm-msg { position: absolute; left: 44px; top: 140px; width: 392px; background: #fff; border: 1px solid var(--line, #e9e9e6); border-radius: 22px; padding: 18px 20px 16px; box-shadow: 0 30px 50px -30px rgba(17,17,17,.28); }
.fm-from { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line, #e9e9e6); }
.fm-av { width: 40px; height: 40px; border-radius: 12px; background: var(--ink, #111); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.fm-from b { display: block; font-size: 15px; line-height: 1.3; }
.fm-from small { display: block; font-size: 13px; color: #6b6b6b; line-height: 1.35; }
.fm-body { font-size: 15.5px; line-height: 1.5; height: 112px; padding-top: 14px; }
.fm-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--coral, #ff5a5f); vertical-align: -2px; margin-left: 1px; }
.fm-send { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line, #e9e9e6); font-size: 13px; color: #6b6b6b; font-weight: 500; }
.fm-btn { background: var(--coral, #ff5a5f); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; min-width: 96px; justify-content: center; }
.fm-btn.sent { background: var(--ink, #111); }

/* conversation + qualification */
.fm-chat { position: absolute; left: 44px; top: 124px; width: 392px; }
.fm-b { display: flex; flex-direction: column; max-width: 86%; }
.fm-b small { font-size: 12.5px; font-weight: 600; color: #6b6b6b; margin-bottom: 5px; }
.fm-b p { font-size: 14.5px; line-height: 1.42; padding: 10px 14px; }
.fm-b.out { margin-left: auto; align-items: flex-end; }
.fm-b.out p { background: var(--ink, #111); color: #fff; border-radius: 16px 16px 4px 16px; }
.fm-b.in { margin-top: 8px; align-items: flex-start; }
.fm-b.in p { background: #fff; border: 1px solid var(--line, #e9e9e6); border-radius: 16px 16px 16px 4px; }
.fm-q { margin-top: 12px; background: #fff; border: 1px solid var(--line, #e9e9e6); border-radius: 20px; padding: 14px 18px 6px; box-shadow: 0 24px 40px -30px rgba(17,17,17,.3); }
.fm-q h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b6b6b; margin-bottom: 4px; }
.fm-qr { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 15px; font-weight: 600; border-top: 1px solid var(--line, #e9e9e6); }
.fm-ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #d5d5d0; display: grid; place-items: center; flex: none; color: #fff; }
.fm-ck.on { background: var(--coral, #ff5a5f); border-color: var(--coral, #ff5a5f); }

/* calendar + brief */
.fm-cal { position: absolute; left: 44px; top: 132px; width: 392px; background: #fff; border: 1px solid var(--line, #e9e9e6); border-radius: 22px; padding: 16px 16px 14px; box-shadow: 0 24px 40px -30px rgba(17,17,17,.25); }
.fm-month { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.fm-month span { color: #6b6b6b; font-weight: 500; margin-left: 3px; }
.fm-grid { position: relative; display: grid; grid-template-columns: 34px repeat(5, 1fr); }
.fm-dh { height: 40px; text-align: center; font-size: 12px; font-weight: 600; color: #6b6b6b; line-height: 1.25; border-bottom: 1px solid var(--line, #e9e9e6); }
.fm-dh b { display: block; font-size: 15px; color: var(--ink, #111); }
.fm-hr { height: 38px; font-size: 11.5px; font-weight: 600; color: #a5a5a0; padding-top: 3px; border-bottom: 1px solid var(--line, #e9e9e6); }
.fm-cell { height: 38px; border-left: 1px solid var(--line, #e9e9e6); border-bottom: 1px solid var(--line, #e9e9e6); }
.fm-ev { position: absolute; height: 38px; border-radius: 9px; padding: 5px 8px; background: var(--coral, #ff5a5f); color: #fff; white-space: nowrap; overflow: hidden; box-shadow: 0 14px 24px -12px rgba(255,90,95,.75); }
.fm-ev b { display: block; font-size: 12px; line-height: 1.3; }
.fm-ev span { display: block; font-size: 11.5px; line-height: 1.3; opacity: .85; }
.fm-brief { position: absolute; left: 44px; top: 318px; width: 392px; background: var(--ink, #111); color: #fff; border-radius: 20px; padding: 15px 18px 6px; box-shadow: 0 30px 50px -26px rgba(17,17,17,.55); }
.fm-brief h4 { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.fm-brief h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral, #ff5a5f); }
.fm-br { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid #2c2c2c; font-size: 13.5px; }
.fm-br span:first-child { color: #9a9a9a; }
.fm-br span:last-child { font-weight: 600; }

/* finale */
.fm-end { position: absolute; left: 0; top: 0; width: 480px; height: 520px; }
.fm-goo { position: absolute; left: 0; top: 0; width: 480px; height: 520px;
  /* the rising blobs fade in from nothing instead of appearing at a hard edge */
  -webkit-mask-image: linear-gradient(to top, transparent 0, transparent 70px, #000 190px); mask-image: linear-gradient(to top, transparent 0, transparent 70px, #000 190px); }
.fm-logo { position: absolute; left: 60px; top: 168px; width: 360px; height: 136px; }
.fm-logo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.fm-dot2 { position: absolute; border-radius: 50%; background: var(--coral, #ff5a5f); }
.fm-line { position: absolute; left: 40px; width: 400px; top: 330px; text-align: center; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
