/* Recruiting film v11 (docs/brand-film-v11.md): one silent loop with chapter bars, captions in the page
   language and a contact button. The film opens and closes on the lime card, so the module starts there. */
.brand-film-section{--film-stage:#0b0d11;--film-text:#f2f3ee;--film-dim:#f2f3ee8c;--film-lime:#ecff71;--film-ink:#131415;padding-block:clamp(24px,3vw,40px) clamp(40px,5vw,72px);scroll-margin-top:24px}
.film-module{position:relative;aspect-ratio:16/9;margin-inline:auto;border-radius:28px;overflow:hidden;background:var(--film-stage);color:var(--film-text);isolation:isolate}
.film-module video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:transparent;pointer-events:none}
.film-chapters{position:absolute;inset-inline:0;top:0;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 28px 22px;background:linear-gradient(180deg,#0b0d11b8,#0b0d1100)}
.film-chapter{appearance:none;display:flex;flex-direction:column;gap:9px;min-width:0;margin:0;padding:8px 0;border:0;background:none;color:var(--film-dim);font:600 14px/1.25 var(--display);text-align:start;cursor:pointer;transition:color .25s}
.film-chapter[aria-current=step]{color:var(--film-text)}
@media(hover:hover){.film-chapter:hover{color:var(--film-text)}}
.film-bar{display:block;height:3px;border-radius:3px;background:#f2f3ee38;overflow:hidden}
.film-bar i{display:block;height:100%;background:var(--film-lime);transform:scaleX(0);transform-origin:left center}
[dir=rtl] .film-bar i{transform-origin:right center}
.film-foot{position:absolute;inset-inline:0;bottom:0;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:56px 28px 26px;background:linear-gradient(0deg,#0b0d11c7,#0b0d1100);pointer-events:none}
.film-foot>*{pointer-events:auto}
/* Every line stays in the page for screen readers and search; the film shows one at a time. */
.film-lines{display:grid;min-width:0;max-width:30em;margin:0;padding:0;list-style:none;font-size:clamp(20px,2.2vw,30px);font-weight:700;line-height:1.22;letter-spacing:-.01em}
.film-line{grid-area:1/1;align-self:end;opacity:0;transform:translateY(8px);transition:opacity .17s ease,transform .17s ease;text-wrap:balance}
.film-line.is-current{opacity:1;transform:none;transition:opacity .3s ease .17s,transform .3s ease .17s}
.film-line.is-question{color:var(--film-lime)}
.film-module.is-instant .film-line{transition:none}
.film-controls{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.film-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 22px;border-radius:999px;background:var(--film-lime);color:var(--film-ink);font-size:15px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap}
.film-cta .icon{width:20px;height:20px;stroke-width:1.8}
[dir=rtl] .film-cta>.icon:last-child{transform:scaleX(-1)}
.film-toggle{display:grid;place-items:center;width:50px;height:50px;flex:0 0 auto;padding:0;border:1px solid #f2f3ee47;border-radius:50%;background:#0b0d1173;color:var(--film-text);cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.film-toggle svg{width:18px;height:18px;fill:currentColor}
.film-module.is-playing .film-icon-play,.film-module:not(.is-playing) .film-icon-pause{display:none}
.film-module :focus-visible{outline:2px solid var(--film-lime);outline-offset:2px}
/* The lime card: labels, caption and buttons turn to ink, and the slogan sits under the mark. */
.film-slogan{position:absolute;inset-inline:0;top:calc(50% + 11.5%);z-index:1;margin:0;color:var(--film-ink);font:600 clamp(18px,2vw,28px)/1.25 'Space Grotesk',var(--display);letter-spacing:-.01em;text-align:center;opacity:0;transform:translateY(6px);transition:opacity .45s ease,transform .45s ease;pointer-events:none}
.film-module.is-end{background:var(--film-lime)}
.film-module.is-end .film-slogan{opacity:1;transform:none}
.film-module.is-end :is(.film-chapters,.film-foot){background:none}
.film-module.is-end .film-chapter{color:#131415b8}
.film-module.is-end .film-bar{background:#1314152e}
.film-module.is-end .film-bar i{background:var(--film-ink)}
.film-module.is-end :is(.film-lines,.film-line.is-question){color:var(--film-ink)}
.film-module.is-end .film-cta{background:var(--film-ink);color:var(--film-lime)}
.film-module.is-end .film-toggle{border-color:#1314154d;background:#13141514;color:var(--film-ink)}
.film-module.is-end :focus-visible{outline-color:var(--film-ink)}
.film-trust{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:12px auto 0;padding-inline:4px;font-size:14px;font-weight:600;line-height:1.4}
.film-trust .icon{width:17px;height:17px;stroke-width:1.8}
html:is([lang=ar],[lang=ur]) :is(.film-lines,.film-slogan){letter-spacing:0;line-height:1.45}
html:is([lang=hi],[lang=bn]) .film-lines{letter-spacing:0;line-height:1.45}
/* Chinese captions wrap at punctuation and spaces, so a word such as 收益 stays on one line. */
html[lang=zh] .film-lines{letter-spacing:0;line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}
html:is([lang=ar],[lang=ur],[lang=hi],[lang=bn]) .film-chapter{line-height:1.6}
/* The Russian "мероприятия" carries a soft hyphen; it is used only in a column too narrow for the whole word. */
.film-chapter{container-type:inline-size}
@container (min-width:7em){html[lang=ru] .film-chapter>span:last-child{-webkit-hyphens:none;hyphens:none}}
/* The whole film fits on the screen: a screen shorter than the film gets a narrower film, centred. */
.film-module,.film-trust{max-width:calc((100vh - 32px)*16/9);max-width:calc((100svh - 32px)*16/9)}
/* Tablets and phones on their side show the wide film small, so labels, captions and buttons shrink to stay off the cards. */
@media(min-width:701px) and (max-width:1050px),(orientation:landscape) and (max-height:500px){
  .film-chapters{gap:8px;padding:8px 16px 14px}
  .film-chapter{gap:6px;padding:5px 0;font-size:12px}
  .film-foot{gap:14px;padding:36px 16px 14px}
  .film-lines{font-size:17px}
  .film-controls{gap:8px}
  .film-cta{min-height:42px;padding:0 16px;gap:8px;font-size:14px}
  .film-toggle{width:42px;height:42px}
}
@media(orientation:landscape) and (max-height:500px){
  .film-chapters{padding:6px 14px 12px}
  .film-chapter{gap:5px;padding:4px 0;font-size:11px}
  .film-chapter>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .film-foot{padding:28px 14px 10px}
  .film-lines{font-size:15px}
  .film-cta{min-height:36px;padding:0 14px;font-size:13px}
  .film-cta .icon{width:17px;height:17px}
  .film-toggle{width:36px;height:36px}
}
/* The shortest screens on their side keep the chapter bars and drop the names, which stay in the buttons for screen readers. */
@media(orientation:landscape) and (max-height:330px){
  .film-chapters{padding:0 14px 6px}
  .film-chapter{gap:0;padding:11px 0}
  .film-chapter>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .film-foot{padding:24px 12px 8px}
  .film-lines{font-size:14px}
}
/* Phones keep the sticky join bar at the bottom of the screen, so the film leaves room for it and drops its own button. */
@media(max-width:700px){
  .film-module,.film-trust{max-width:calc((100vh - 104px)*16/9);max-width:calc((100svh - 104px)*16/9)}
  .film-cta{display:none}
  .film-trust{justify-content:center;margin-top:10px;font-size:13px}
}
/* Upright phones get the 4:5 cut; on their side they keep the wide one. */
@media(max-width:700px) and (orientation:portrait){
  .film-module,.film-trust{max-width:calc((100vh - 104px)*.8);max-width:calc((100svh - 104px)*.8)}
  .film-module{aspect-ratio:4/5;border-radius:22px}
  .film-chapters{gap:6px;padding:4px 12px 16px}
  .film-chapter{gap:6px;font-size:11px}
  .film-foot{gap:12px;padding:40px 14px 14px}
  .film-lines{font-size:17px}
  .film-toggle{width:42px;height:42px}
}
/* The smallest phones keep the longest captions (Filipino, four rows at 17px) and chapter names off the cards. */
@media(max-width:370px){
  .film-chapter{font-size:10px}
  .film-lines{font-size:15px}
}
@media(prefers-reduced-motion:reduce){.film-line,.film-line.is-current,.film-slogan,.film-chapter{transition:none}}
