/* Sphaera glass video popup: stylesheet only, no embedded HTML tags */
  /* ---------- Glass video popup ---------- */
  .gv-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; visibility: hidden; pointer-events: none; }
  .gv-modal.is-open { visibility: visible; pointer-events: auto; }
  .gv-scrim { position: absolute; inset: 0; background: rgba(4,4,6,0.28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s ease; }
  .gv-modal.is-open .gv-scrim { opacity: 1; }

  .gv-stage { position: relative; width: min(100%, 1120px); perspective: 1600px; }
  .gv-pane {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
    position: relative; aspect-ratio: 16 / 9; border-radius: 30px;
    transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(30px) scale(.94);
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 50px 140px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  }
  .gv-modal.is-open .gv-pane { transform: rotateX(var(--rx)) rotateY(var(--ry)); }

  /* the glass itself: blurs and brightens whatever is behind it */
  .gv-glass { position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 45%, rgba(255,255,255,.08));
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.12); backdrop-filter: blur(16px) saturate(180%) brightness(1.12); }
  /* the film: black becomes clear glass, light parts glow on it */
  .gv-video { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; border-radius: 18px; background: transparent; mix-blend-mode: screen; opacity: .94; transition: opacity .4s ease; }
  .gv-pane.is-solid .gv-video { mix-blend-mode: normal; opacity: 1; background: #000; }
  /* reflections */
  .gv-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background:
      radial-gradient(60% 50% at var(--mx) var(--my), rgba(255,255,255,.16), transparent 70%),
      linear-gradient(115deg, transparent 32%, rgba(255,255,255,.09) 42%, rgba(255,255,255,.02) 50%, transparent 58%);
    mix-blend-mode: screen; }
  .gv-edge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1.2px;
    background: linear-gradient(150deg, rgba(255,255,255,.6), rgba(255,255,255,.08) 30%, rgba(255,255,255,.04) 65%, rgba(255,255,255,.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  .gv-inner { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 60px rgba(255,255,255,.05), inset 0 -20px 50px rgba(0,0,0,.18); }
  .gv-grain { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

  /* controls */
  .gv-controls { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
    width: min(calc(100% - 52px), 560px); padding: 8px 10px 8px 8px; border-radius: 999px;
    background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14);
    transition: opacity .4s ease, transform .4s ease; }
  .gv-pane.is-idle .gv-controls { opacity: 0; transform: translate(-50%, 8px); }
  .gv-btn { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
    background: rgba(255,255,255,.12); transition: background .2s ease; }
  .gv-btn:hover { background: rgba(255,255,255,.22); }
  .gv-btn:focus-visible, .gv-close:focus-visible, .gv-bar:focus-visible { outline: 2px solid #f2e27a; outline-offset: 2px; }
  .gv-btn svg { width: 16px; height: 16px; fill: currentColor; }
  .gv-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); cursor: pointer; }
  .gv-bar::before { content: ""; position: absolute; inset: -10px 0; }
  .gv-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,.75), #fff); box-shadow: 0 0 10px rgba(255,255,255,.6); }
  .gv-time { flex: none; font: 500 12px/1 ui-monospace, Menlo, Consolas, monospace; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; min-width: 38px; }
  .gv-mode { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; font: 500 12px/1 system-ui, sans-serif; background: rgba(255,255,255,.12); }
  .gv-close { position: absolute; top: -18px; right: -18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); cursor: pointer; color: #fff;
    background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; transition: opacity .4s ease .2s; z-index: 2; }
  .gv-modal.is-open .gv-close { opacity: 1; }
  .gv-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; }
  @media (max-width: 640px) { .gv-pane { border-radius: 20px; } .gv-video { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 13px; } .gv-controls { bottom: 12px; gap: 8px; } .gv-time, .gv-mode { display: none; } .gv-close { top: -52px; right: 0; } }
  @media (prefers-reduced-motion: reduce) { .gv-pane { transition: none; } }

/* Sphaera squared-off glass treatment */
.gv-modal { z-index: 1700; }
.gv-pane, .gv-glass, .gv-video, .gv-sheen, .gv-edge, .gv-inner, .gv-grain,
.gv-controls, .gv-btn, .gv-bar, .gv-fill, .gv-mode, .gv-close { border-radius: 0 !important; }
.gv-video { inset: 0; width: 100%; height: 100%; }
.gv-pane { box-shadow: 0 50px 140px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
.gv-close { top: -48px; right: 0; }
.gv-btn:hover, .gv-mode:hover, .gv-close:hover { background: #FEF991; color: #0b0b0b; }
@media (max-width:640px) { .gv-video { inset: 0; width: 100%; height: 100%; } .gv-close { top: -48px; right: 0; } }
.hero-video-trigger { border-radius: 0 !important; }

/* Modal does not intercept site navigation when closed. */
.gv-modal:not(.is-open) { visibility: hidden !important; pointer-events: none !important; }
.gv-modal.is-open { visibility: visible !important; pointer-events: auto !important; }

/* Fit the glass video within short mobile landscape viewports. */
@media (orientation: landscape) and (max-height: 570px) {
  .gv-stage { width: min(100%, calc((100dvh - 100px) * 16 / 9)); }
  .gv-modal { padding: 12px; }
  .gv-close { top: -42px; right: 0; }
  .gv-controls { bottom: 8px; }
}
