/* Home hero film (partials/film/hero-video). 2026-09-30.
   Framed like a preview pane inside the editor: the picture is always the film's own dark frame,
   the status strip under it follows the site theme like the IDE chrome. */
.hf{margin:0 0 38px;position:relative;background:var(--chrome);border:1px solid var(--line);border-radius:14px;overflow:hidden;isolation:isolate;
  box-shadow:0 0 0 1px rgba(60,198,242,.05),0 30px 70px -38px rgba(0,0,0,.75),0 0 90px -40px rgba(60,198,242,.35)}
html[data-theme="light"] .hf{box-shadow:0 26px 60px -36px rgba(11,27,43,.45)}
.hf-frame{position:relative;overflow:hidden;isolation:isolate;background:#030507}   /* aspect-ratio comes inline from the film */
.hf-video{display:block;width:100%;height:100%;object-fit:cover;background:#030507;cursor:zoom-in}
/* a thin sheen along the top edge and a soft floor shadow, so the picture sits in the editor like a lit screen */
.hf-frame::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(160,215,236,.35) 30%,rgba(160,215,236,.35) 70%,transparent) top/100% 1px no-repeat;
  box-shadow:inset 0 -46px 46px -46px rgba(0,0,0,.75)}
.hf-bigplay{position:absolute;inset:0;margin:auto;width:78px;height:78px;border-radius:50%;border:1px solid rgba(255,255,255,.35);
  background:rgba(4,18,29,.55);color:#fff;cursor:pointer;display:grid;place-items:center;z-index:2;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 0 0 6px rgba(60,198,242,.12)}
.hf-bigplay[hidden]{display:none}
.hf-bigplay svg{width:30px;height:30px;fill:currentColor;margin-left:4px}

/* the status strip: play/pause · file · time · seven chapters · sound · full screen */
.hf-bar{display:flex;align-items:center;gap:14px;padding:8px 14px 9px;border-top:1px solid var(--line);font:12px/1 var(--font-mono);color:var(--muted)}
.hf-tog{flex:none;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--fg);cursor:pointer}
.hf-tog svg{width:14px;height:14px;fill:currentColor;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.hf-tog .hf-i-play{stroke:none}
.hf-tog .hf-i-play,.hf[data-paused] .hf-tog .hf-i-pause{display:none}
.hf[data-paused] .hf-tog .hf-i-play{display:block}
.hf-file{flex:none;color:var(--fg-2)}
.hf-file::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent);vertical-align:1px}
.hf[data-paused] .hf-file::before{background:var(--dim);box-shadow:none}
.hf-time{flex:none;font-variant-numeric:tabular-nums;color:var(--fg-2)}
.hf-dim{color:var(--muted)}
.hf-chaps{flex:1;display:flex;gap:4px;list-style:none;margin:0;padding:0;min-width:0}
.hf-chaps li{flex-basis:0;min-width:0}
.hf-chaps button{display:block;width:100%;padding:5px 0 3px;border:0;background:none;color:var(--muted);font:inherit;font-size:11.5px;text-align:left;cursor:pointer}
.hf-chaps i{position:relative;display:block;height:3px;border-radius:2px;background:var(--line);overflow:hidden}
.hf-chaps i::after{content:"";position:absolute;inset:0;background:var(--accent);transform:scaleX(var(--f,0));transform-origin:left}
.hf-chaps span{display:block;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s}
.hf-chaps button:hover span,.hf-chaps .is-on span{color:var(--fg)}
.hf-chaps button:hover i{background:var(--accent-line)}
.hf-btn{flex:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--fg-2);font:inherit;cursor:pointer;transition:border-color .2s,color .2s}
.hf-btn:hover{border-color:var(--accent-line);color:var(--fg)}
.hf-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hf-btn .hf-i-on,.hf-btn[aria-pressed="true"] .hf-i-off{display:none}
.hf-btn[aria-pressed="true"] .hf-i-on{display:inline}
.hf-btn[aria-pressed="true"]{color:var(--accent);border-color:var(--accent-line)}
.hf-btn[data-hf-full][aria-pressed="true"]{color:var(--fg)}
.hf :is(button):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hf-cap{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* full screen takes the whole player: picture on top (letterboxed), the status strip stays at the bottom, a way out in the corner.
   The standard and -webkit- selectors are kept apart: one unknown pseudo-class would drop a combined rule. */
.hf-exit{position:absolute;top:18px;right:18px;z-index:3;display:none;align-items:center;gap:8px;height:38px;padding:0 16px 0 12px;border:1px solid rgba(255,255,255,.28);border-radius:99px;
  background:rgba(4,18,29,.62);color:#fff;font:600 13px/1 var(--font-sans);cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hf-exit:hover{background:rgba(4,18,29,.85);border-color:rgba(255,255,255,.5)}
.hf-exit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.hf:fullscreen{--chrome:#081524;--panel:#0D1F33;--line:#1A3350;--fg:#EAF3FA;--fg-2:#B9CCDB;--muted:#7F97AB;--dim:#3F566B;--accent:#3CC6F2;--accent-line:rgba(60,198,242,.42);display:flex;flex-direction:column;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;background:#000}
.hf:fullscreen .hf-frame{flex:1;min-height:0;aspect-ratio:auto!important;background:#000}
.hf:fullscreen .hf-video{object-fit:contain;background:#000;cursor:pointer}
.hf:fullscreen .hf-bigplay{display:none}
.hf:fullscreen .hf-bar{background:var(--chrome)}
.hf:fullscreen .hf-exit{display:inline-flex}
.hf:-webkit-full-screen{--chrome:#081524;--panel:#0D1F33;--line:#1A3350;--fg:#EAF3FA;--fg-2:#B9CCDB;--muted:#7F97AB;--dim:#3F566B;--accent:#3CC6F2;--accent-line:rgba(60,198,242,.42);display:flex;flex-direction:column;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;background:#000}
.hf:-webkit-full-screen .hf-frame{flex:1;min-height:0;aspect-ratio:auto!important;background:#000}
.hf:-webkit-full-screen .hf-video{object-fit:contain;background:#000;cursor:pointer}
.hf:-webkit-full-screen .hf-bigplay{display:none}
.hf:-webkit-full-screen .hf-bar{background:var(--chrome)}
.hf:-webkit-full-screen .hf-exit{display:inline-flex}
/* the film opens the hero; the headline sits under it */
.hm-hero.is-under-film .section-body{padding-top:30px}

@media (max-width:1100px){.hf-file{display:none}}
@media (max-width:720px){
  .hf-bar{gap:10px;padding:7px 10px 8px}
  .hf-chaps span,.hf-btn span{display:none}
  .hf-chaps button{padding:10px 0}
  .hf-btn{padding:0 8px}
  .hf{margin-bottom:28px;border-radius:10px}
  .hf-bigplay{width:60px;height:60px}
  .hm-hero.is-under-film .section-body{padding-top:20px}
}
@media (prefers-reduced-motion:reduce){.hf-chaps span,.hf-btn{transition:none}}
