/* Sora Baralinni · website video. Load once per page:
   <link rel="stylesheet" href="/video/sora-video.css">
   Uses the site's existing tokens when present (--f, --soft), with fallbacks. */

/* ---------- hero loop: an ambient layer behind the hero text ---------- */
/* .hero is already position:relative; overflow:hidden; isolation:isolate.
   The layer is absolute, so it never changes the hero's height (no layout shift).
   z-index -2 sits above the SVG ribbons and below the existing .vignette (-1), which keeps the text readable. */
.hero .sb-hero-media{position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:#06060B url("/video/sora-loop-poster.webp") center/cover no-repeat}
.hero .sb-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.92}
.hero .sb-hero-video.is-still{visibility:hidden}          /* the poster behind it shows instead */
@media (prefers-reduced-motion:reduce){.hero .sb-hero-video{visibility:hidden}}
/* on phones the 16:9 loop is cropped to the centre; keep it calm behind the longer text block */
@media (max-width:700px){.hero .sb-hero-video{opacity:.7}}

/* ---------- "Watch the 90-second overview" button ---------- */
.sb-watch{display:inline-flex;align-items:center;gap:10px;background:none;border:0;padding:6px 2px;cursor:pointer;
  font:inherit;font-size:14.5px;color:var(--soft,#C9CADA)}
.sb-watch i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.35);
  box-shadow:inset 0 0 12px rgba(120,130,255,.3),0 0 22px -6px rgba(110,120,255,.7)}
.sb-watch i::before{content:"";margin-left:3px;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent currentColor}
.sb-watch:hover{color:#fff}
.sb-watch:focus-visible{outline:2px solid #A274FF;outline-offset:4px;border-radius:999px}

/* ---------- modal ---------- */
.sb-film{padding:0;border:0;background:transparent;max-width:none;max-height:none;width:100vw;height:100vh;height:100dvh;
  display:none;place-items:center;color:#F3F3F7}
.sb-film[open]{display:grid}
.sb-film::backdrop{background:rgba(6,6,11,.86);backdrop-filter:blur(6px)}
.sb-film-box{position:relative;width:min(92vw,calc((100dvh - 120px) * 16 / 9),1280px);aspect-ratio:16/9;border-radius:18px;overflow:hidden;
  border:1px solid rgba(255,255,255,.14);background:#06060B;box-shadow:0 40px 120px -30px rgba(0,0,0,.9),0 0 80px -30px rgba(123,92,255,.6)}
.sb-film-video{display:block;width:100%;height:100%;background:#06060B}
.sb-film-x{position:absolute;top:10px;right:10px;z-index:2;width:40px;height:40px;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;font:400 24px/1 system-ui,sans-serif;color:#fff;background:rgba(6,6,11,.6);border:1px solid rgba(255,255,255,.3)}
.sb-film-x:focus-visible{outline:2px solid #A274FF;outline-offset:2px}
html.sb-film-open{overflow:hidden}
@media (max-width:600px){.sb-film-box{width:100vw;border-radius:0;border-left:0;border-right:0}.sb-film-x{top:8px;right:8px;width:36px;height:36px}}
