/* Strong Brain films: cinematic player. One element per film:
   <div class="vfilm" data-film="film1" data-title="Why we're building this"></div>
   Square corners, navy and copper, Bebas Neue / Space Grotesk / Inter. */
.vfilm{--vf-night:#121721;--vf-night2:#1B2230;--vf-paper:#E8E4D6;--vf-soft:rgba(232,228,214,.68);--vf-copper:#C2543A;--vf-copper-d:#A8432A;
  position:relative;width:100%;margin:32px 0;color:var(--vf-paper);font-family:Inter,"Helvetica Neue",Arial,sans-serif;border-radius:0}
.vfilm *{box-sizing:border-box;border-radius:0}
.vf-stage{position:relative;width:100%;aspect-ratio:16/9;background:#05070b;overflow:hidden;outline:none;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.9),0 0 0 1px rgba(232,228,214,.12)}
.vf-stage:focus-visible{box-shadow:0 0 0 3px var(--vf-copper),0 30px 80px -30px rgba(0,0,0,.9)}
.vf-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#05070b;opacity:0}
.vf-stage video.on{opacity:1}
.vf-poster{position:absolute;inset:0;background:#05070b center/cover no-repeat;transition:opacity .4s ease}
.vf-loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease}
.vf-loop.on{opacity:1}
.vf-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,13,20,.88) 0%,rgba(10,13,20,.55) 42%,rgba(10,13,20,.05) 75%),linear-gradient(0deg,rgba(10,13,20,.8) 0%,rgba(10,13,20,0) 40%)}
.vfilm.started .vf-poster{opacity:0;pointer-events:none}
.vf-titleblock{position:absolute;left:5%;bottom:13%;z-index:2;max-width:56%;pointer-events:none;transition:opacity .4s ease}
.vfilm.started .vf-titleblock{opacity:0}
.vf-kicker{font:600 13px/1.2 "Space Grotesk","Helvetica Neue",Arial,sans-serif;letter-spacing:.08em;color:var(--vf-copper);display:flex;align-items:center;gap:10px;margin-bottom:10px}
.vf-kicker img{height:16px;width:auto;display:block}
.vf-title{font:400 clamp(34px,6.2vw,84px)/.92 "Bebas Neue",Impact,"Arial Narrow",sans-serif;letter-spacing:.01em;margin:0;color:var(--vf-paper)}
.vf-sub{margin-top:12px;font:500 15px/1.4 "Space Grotesk","Helvetica Neue",Arial,sans-serif;color:var(--vf-soft)}
.vf-sub b{font:400 30px/1 "Bebas Neue",Impact,sans-serif;color:var(--vf-paper);margin-right:4px;vertical-align:-3px}
.vf-big{position:absolute;z-index:3;left:50%;top:50%;width:104px;height:104px;margin:-52px 0 0 -52px;border:0;cursor:pointer;
  background:var(--vf-copper);color:#fff;display:grid;place-items:center;box-shadow:0 18px 50px -12px rgba(194,84,58,.75);transition:transform .2s ease,background .2s ease,opacity .25s ease}
.vf-big:hover{transform:scale(1.06);background:#d35f43}
.vf-big:focus-visible{outline:3px solid var(--vf-paper);outline-offset:4px}
.vf-big svg{width:40px;height:40px;margin-left:6px;fill:currentColor}
.vf-big::after{content:"";position:absolute;inset:-10px;border:1px solid rgba(194,84,58,.55);animation:vfpulse 2.4s ease-out infinite}
@keyframes vfpulse{0%{transform:scale(.92);opacity:1}100%{transform:scale(1.25);opacity:0}}
.vfilm.playing .vf-big{opacity:0;pointer-events:none}
.vfilm.started:not(.playing) .vf-big{background:rgba(18,23,33,.72);box-shadow:none}
.vfilm.started:not(.playing) .vf-big::after{display:none}
.vf-cc{position:absolute;left:8%;right:8%;bottom:72px;z-index:3;text-align:center;pointer-events:none;transition:bottom .2s ease}
.vfilm.hidectl .vf-cc{bottom:22px}
.vf-cc span{display:inline;background:rgba(10,13,20,.82);color:#fff;font:500 clamp(14px,1.9vw,22px)/1.5 Inter,"Helvetica Neue",Arial,sans-serif;padding:3px 10px;
  -webkit-box-decoration-break:clone;box-decoration-break:clone}
.vf-cc:empty{display:none}
.vf-bar{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:14px 16px 6px;background:linear-gradient(0deg,rgba(8,10,15,.86),rgba(8,10,15,.55) 60%,rgba(8,10,15,0));
  display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;gap:6px 12px;align-items:center;transition:opacity .25s ease}
.vfilm:not(.started) .vf-bar{opacity:0;pointer-events:none}
.vfilm.hidectl .vf-bar{opacity:0;pointer-events:none}
.vfilm.hidectl .vf-stage{cursor:none}
.vf-track{grid-column:1/-1;position:relative;height:22px;cursor:pointer;touch-action:none}
.vf-rail{position:absolute;left:0;right:0;top:9px;height:4px;background:rgba(232,228,214,.22)}
.vf-buf{position:absolute;left:0;top:0;height:100%;background:rgba(232,228,214,.18)}
.vf-fill{position:absolute;left:0;top:0;height:100%;background:var(--vf-copper)}
.vf-knob{position:absolute;top:4px;width:14px;height:14px;margin-left:-7px;background:var(--vf-paper);box-shadow:0 0 0 3px rgba(194,84,58,.6)}
.vf-tick{position:absolute;top:5px;width:2px;height:12px;background:var(--vf-paper);opacity:.75;margin-left:-1px;pointer-events:none}
.vf-tip{position:absolute;bottom:24px;transform:translateX(-50%);background:var(--vf-night);border:1px solid rgba(232,228,214,.2);padding:5px 9px;white-space:nowrap;
  font:500 12.5px/1.2 "Space Grotesk",sans-serif;color:var(--vf-paper);pointer-events:none;opacity:0;transition:opacity .12s}
.vf-track:hover .vf-tip,.vf-track.drag .vf-tip{opacity:1}
.vf-left,.vf-right{display:flex;align-items:center;gap:4px}
.vf-btn{width:44px;height:44px;border:0;background:transparent;color:var(--vf-paper);display:grid;place-items:center;cursor:pointer;padding:0}
.vf-btn:hover{color:#fff;background:rgba(232,228,214,.08)}
.vf-btn:focus-visible{outline:2px solid var(--vf-copper);outline-offset:-2px}
.vf-btn svg{width:22px;height:22px;fill:currentColor}
.vf-btn.cc{font:700 13px/1 "Space Grotesk",sans-serif;letter-spacing:.04em;width:auto;padding:0 10px}
.vf-btn.cc[aria-pressed="true"]{color:#fff;box-shadow:inset 0 -3px 0 var(--vf-copper)}
.vf-time{font:500 13px/1 "Space Grotesk",sans-serif;color:var(--vf-soft);font-variant-numeric:tabular-nums;white-space:nowrap}
.vf-chapnow{font:500 14px/1.2 "Space Grotesk",sans-serif;color:var(--vf-paper);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.vf-chaps{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0;margin-top:0;overflow:visible;background:var(--vf-night2);border-top:2px solid var(--vf-copper)}
.vf-chap{min-width:0;max-width:none;white-space:normal;border:0;border-right:1px solid rgba(232,228,214,.08);border-bottom:1px solid rgba(232,228,214,.08);background:transparent;color:var(--vf-soft);
  text-align:left;padding:12px 16px 14px;cursor:pointer;font:500 14px/1.3 "Space Grotesk",sans-serif}
.vf-chap b{display:block;font:400 26px/1 "Bebas Neue",Impact,sans-serif;color:rgba(232,228,214,.4);margin-bottom:4px}
.vf-chap small{display:block;font:400 12.5px/1.2 Inter,sans-serif;color:rgba(232,228,214,.5);margin-top:3px}
.vf-chap:hover{background:rgba(232,228,214,.05);color:var(--vf-paper)}
.vf-chap[aria-current="true"]{color:var(--vf-paper);background:rgba(194,84,58,.14)}
.vf-chap[aria-current="true"] b{color:var(--vf-copper)}
.vf-chap:focus-visible{outline:2px solid var(--vf-copper);outline-offset:-2px}
.vf-err{position:absolute;inset:auto 0 0 0;z-index:5;background:rgba(181,72,58,.92);color:#fff;padding:10px 16px;font:500 14px/1.3 Inter,sans-serif}
.vf-load{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border:3px solid rgba(232,228,214,.25);border-top-color:var(--vf-copper);
  animation:vfspin .9s linear infinite;z-index:3;display:none}
.vfilm.waiting .vf-load{display:block}
@keyframes vfspin{to{transform:rotate(360deg)}}
.vfilm:fullscreen,.vfilm:-webkit-full-screen{margin:0;background:#000;display:flex;flex-direction:column;justify-content:center}
.vfilm:fullscreen .vf-stage{max-height:100vh;max-width:calc(100vh*16/9);margin:0 auto}
.vfilm:fullscreen .vf-chaps{display:none}
@media (max-width:640px){
  .vfilm{margin:20px 0}
  .vf-big{width:76px;height:76px;margin:-38px 0 0 -38px}
  .vf-big svg{width:30px;height:30px}
  .vf-titleblock{left:16px;bottom:16px;max-width:calc(100% - 32px)}
  .vfilm:not(.started) .vf-big{top:40%}
  .vf-sub{display:none}
  .vf-kicker{font-size:11.5px;margin-bottom:6px}
  .vf-bar{padding:18px 6px 4px;gap:2px 4px}
  .vf-chapnow{display:none}
  .vf-time{font-size:12px}
  .vf-cc{bottom:60px;left:4%;right:4%}
  .vf-cc span{font-size:13px}
  .vf-btn{width:36px;height:36px}
  .vf-btn.back,.vf-btn.mute{display:none}
  .vf-bar{padding:12px 4px 0}
  .vf-chaps{display:flex;flex-direction:column;overflow:visible}
  .vf-chap{max-width:none;min-width:0;display:flex;align-items:baseline;gap:12px;padding:10px 14px;border-right:0;border-bottom:1px solid rgba(232,228,214,.08)}
  .vf-chap b{display:inline;font-size:20px;margin:0;min-width:42px}
  .vf-chap small{display:inline;margin:0 0 0 auto}
}
@media (prefers-reduced-motion:reduce){.vf-big::after{animation:none}.vf-load{animation-duration:2s}.vf-poster,.vf-stage video{transition:none}}

/* the band a film sits in on a page: a short title, one line, then the picture */
.band.vf-band{padding-block:64px 72px}
.vf-band .wrap{gap:22px}
.vf-band h2{font-size:clamp(34px,4.6vw,54px)}
.vf-band .vfilm{margin:6px 0 0}
@media (max-width:640px){.band.vf-band{padding-block:44px 52px}}

/* phones: the controls sit under the picture, so they never cover the captions burned into the film */
@media (max-width:640px){
  .vf-stage{aspect-ratio:auto;height:auto;padding-top:calc(56.25% + 58px)}
  .vf-stage video,.vf-poster{inset:0 0 58px 0;height:auto}
  .vfilm:not(.started) .vf-poster{bottom:0}
  .vf-stage video{height:calc(100% - 58px)}
  .vf-bar{padding:4px 6px 2px;background:#0B0E14;height:58px;grid-template-rows:20px 34px}
  .vfilm.hidectl .vf-bar{opacity:1;pointer-events:auto}
  .vf-big{top:calc(50% - 29px)}
  .vfilm:not(.started) .vf-big{top:calc(40% - 29px)}
  .vf-cc{bottom:66px}
  .vfilm.hidectl .vf-cc{bottom:66px}
  .vf-titleblock{bottom:74px}
  .vf-load{top:calc(50% - 29px)}
}

/* the poster in a narrow film (a phone, or a film in a side column): the play button keeps its own lane on the right,
   so the kicker and title never run under it */
.vfilm{container-type:inline-size}
.vf-kicker{flex-wrap:wrap;row-gap:4px}
@container (min-width:761px){.vfilm:not(.started) .vf-big{top:42%}}
@container (max-width:760px){
  .vfilm:not(.started) .vf-big{left:auto;right:5%;margin-left:0}
  .vfilm:not(.started) .vf-titleblock{max-width:calc(90% - 104px - 24px)}
}
@container (max-width:640px){
  .vfilm:not(.started) .vf-big{right:16px;top:calc(50% - 29px)}
  .vfilm:not(.started) .vf-titleblock{max-width:calc(100% - 16px - 76px - 30px)}
  .vf-title{font-size:clamp(26px,9cqi,40px)}
  .vf-kicker{gap:4px 8px}
}
@container (max-width:340px){
  .vfilm:not(.started) .vf-big{width:60px;height:60px;margin-top:-30px}
  .vfilm:not(.started) .vf-titleblock{max-width:calc(100% - 16px - 60px - 26px)}
  .vf-kicker img{height:13px}
}
