/* Hero film (draft): the rendered intro plays full width; the HTML that sits on it lives in a
   1920x1080 layer scaled with the video, so it stays locked to the baked "Better together." type.
   Positions are the live hero's, measured at 1920x1080. */
/* v6c (2026-11-02): the render is the whole hero card, 1920x1126 at 1920 wide, and runs on behind the
   ticker band, so the stage is 16:9 plus the ticker and there is no flat cream strip. */
.hero--film{min-height:0;display:block;padding-bottom:0;background:var(--cream)}
.hf-stage{position:relative;width:100%;height:calc(56.25vw + var(--tick));overflow:hidden;background:var(--cream) center top/cover no-repeat}
.hf-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;display:block;pointer-events:none}
img.hf-alt{max-width:none}   /* the film as an animated image, when a phone will not autoplay video */
.hf-drip{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;z-index:1;visibility:hidden}
.hf-drip.is-on{visibility:visible}
.hf-layer{position:absolute;left:0;top:0;width:1920px;height:1080px;transform:scale(var(--k,1));transform-origin:0 0;z-index:2}

.hf-frame{position:absolute;left:32px;top:96px;width:1856px;height:952px;pointer-events:none}
.hf-frame svg{width:100%;height:100%;overflow:visible}
.hf-frame rect{fill:none;stroke:var(--line-strong);stroke-width:1;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 2.2s var(--ease)}
.hf-frame rect.inner{stroke:var(--blush);transition-delay:.3s}

.hf-eyebrow{position:absolute;left:104px;top:156px;margin:0}
.hf-foot{position:absolute;left:104px;top:803px;display:grid;gap:18px;justify-items:start}
.hf-lede{width:616px;max-width:none;margin:0;font-size:22px;line-height:33px}
.hf-actions{display:flex;gap:12px}
.hf-meta{position:absolute;left:104px;right:104px;top:1016px;display:flex;justify-content:space-between;font-size:10.5px;letter-spacing:.28em;text-transform:uppercase;font-weight:600;color:var(--ink-muted)}

/* reveal once the syringe has crossed the logo */
.hf-eyebrow,.hf-lede,.hf-actions,.hf-meta{opacity:0;transform:translateY(10px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.hero--film.is-revealed .hf-eyebrow,.hero--film.is-revealed .hf-lede,.hero--film.is-revealed .hf-actions,.hero--film.is-revealed .hf-meta{opacity:1;transform:none}
.hero--film.is-revealed .hf-lede{transition-delay:.25s}
.hero--film.is-revealed .hf-actions{transition-delay:.5s}
.hero--film.is-revealed .hf-meta{transition-delay:.8s}
.hero--film.is-revealed .hf-frame rect{stroke-dashoffset:0}

.hf-mobile{display:none}

@media (max-width:760px){
  .hero--film{padding-bottom:var(--tick)}       /* phones: the ticker sits under the text, not on the film */
  .hf-stage{margin-top:76px;height:auto;aspect-ratio:1550/1300}   /* the phone render (hero-intro-m.mp4, v2: desktop-style layout) */
  /* the seam: phone video decoding shifts the cream by a level or two, which reads as a line on a straight edge.
     The film's last stretch fades into the page's own colour here in CSS, so the bottom row is always exact. */
  .hf-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16%;pointer-events:none;
    background:linear-gradient(to bottom,rgba(239,230,218,0),var(--cream))}
  .hf-eyebrow,.hf-foot,.hf-meta,.hf-frame{display:none}
  .hf-mobile{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding-top:20px;padding-bottom:44px;text-align:center;justify-items:center}
  .hf-mobile .lede{max-width:34ch}
  .hf-mobile .eyebrow{white-space:normal;line-height:1.7}
  .hf-mobile .lede{margin:0}
  .hf-actions-m{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
  .hf-mobile>*{opacity:0;transform:translateY(10px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
  .hero--film.is-revealed .hf-mobile>*{opacity:1;transform:none}
  .hero--film.is-revealed .hf-mobile>:nth-child(2){transition-delay:.25s}
  .hero--film.is-revealed .hf-mobile>:nth-child(3){transition-delay:.5s}
}

@media (prefers-reduced-motion:reduce){
  .hf-eyebrow,.hf-lede,.hf-actions,.hf-meta,.hf-mobile>*{transition:none}
  .hf-frame rect{transition:none}
}
@media(max-width:760px){
 .hf-stage{overflow:visible}
 .hf-mobile{position:relative;z-index:2}
}
