/* ==========================================================================
   Base styles bundled into this module so it works on any page/template.
   Tokens use :where(:root) (zero specificity) so Page Design Settings still
   override them; every rule is scoped to .ffh-video so modules never clash.
   ========================================================================== */
:where(:root) {
  --ffh-grad: linear-gradient(120deg, #0a2466 0%, #1a47c9 48%, #0d6b64 100%);
  --ffh-grad-hover: linear-gradient(120deg, #071b4d 0%, #163ba8 48%, #0a5550 100%);
  --ffh-dark: linear-gradient(160deg, #08122b 0%, #0d2459 55%, #0a4552 100%);
  --ffh-ink: #0b1b3a;
  --ffh-text: #111317;
  --ffh-muted: #50545c;
  --ffh-muted-2: #6c717a;
  --ffh-n100: #f7f8fa;
  --ffh-n200: #e6e8ec;
  --ffh-n300: #d3d6dc;
  --ffh-n400: #b4b8c0;
  --ffh-n500: #8f949d;
  --ffh-accent: #2358e0;
  --ffh-accent-100: #eef4ff;
  --ffh-accent-300: #b4ccff;
  --ffh-accent-500: #3b76f6;
  --ffh-accent-700: #1c45b8;
  --ffh-accent-800: #17368c;
  --ffh-bg: #eef0f3;
  --ffh-green: #10b981;
  --ffh-mint: #6ee7b7;
  --ffh-mint-2: #a7f3d0;
  --ffh-sky: #7dd3fc;
  --ffh-font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ffh-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ffh-max: 1760px;
  --ffh-gutter: clamp(16px, 3vw, 120px);
  --ffh-ease: cubic-bezier(.2, .7, .2, 1);
}
:where(.ffh-video) {
  color: var(--ffh-text);
  font-family: var(--ffh-font);
  -webkit-font-smoothing: antialiased;
}
.ffh-video, .ffh-video *,
.ffh-video::before, .ffh-video *::before,
.ffh-video::after, .ffh-video *::after {
  box-sizing: border-box;
}
:where(.ffh-video) :is(h1, h2, h3, h4, p) {
  margin: 0; font-family: var(--ffh-font);
}
:where(.ffh-video) img {
  max-width: 100%;
}
:where(.ffh-video) a {
  color: inherit; text-decoration: none;
}
.ffh-video :focus-visible {
  outline: 2px solid var(--ffh-accent); outline-offset: 2px;
}
.ffh-video ::selection {
  background: #dbe7ff;
}
:where(.ffh-video) button {
  font: inherit; color: inherit;
}
:where(.ffh-video) .ffh-sec,
.ffh-sec:where(.ffh-video) {
  position: relative; z-index: 1; background: var(--ffh-sec-bg, transparent); padding: var(--ffh-pt, 110px) 0 var(--ffh-pb, 0);
}
:where(.ffh-video) .ffh-wrap {
  position: relative; max-width: calc(var(--ffh-max, 1760px) + 2 * var(--ffh-gutter)); width: 100%; margin: 0 auto; padding: 0 var(--ffh-gutter);
}
:where(.ffh-video) .ffh-wrap--narrow {
  max-width: calc(var(--ffh-max, 1760px) + 2 * var(--ffh-gutter));
}
@media (max-width: 767px) {
  :where(.ffh-video) .ffh-sec,
  .ffh-sec:where(.ffh-video) {
    padding-top: var(--ffh-ptm, 72px);
  }
}
:where(.ffh-video) .ffh-h2 {
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em; color: var(--ffh-ink); text-wrap: balance; max-width: 680px;
}
:where(.ffh-video) .ffh-lead {
  font-size: 15px; line-height: 1.6; color: var(--ffh-muted); text-wrap: pretty;
}
:where(.ffh-video) .ffh-badge {
  display: inline-flex; white-space: nowrap; flex-shrink: 0; align-self: flex-start; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--ffh-n200); font-size: 12px; font-weight: 500; color: var(--ffh-text);
}
:where(.ffh-video) .ffh-badge__ic {
  width: 20px; height: 20px; border-radius: 50%; background: var(--ffh-grad); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px;
}
.ffh-js :where(.ffh-video) [data-ffh-reveal-scope] [data-ffh-reveal].ffh-pre,
.ffh-js [data-ffh-reveal-scope]:where(.ffh-video) [data-ffh-reveal].ffh-pre {
  opacity: 0; transform: translateY(32px);
}
.ffh-js :where(.ffh-video) [data-ffh-reveal-scope] [data-ffh-reveal],
.ffh-js [data-ffh-reveal-scope]:where(.ffh-video) [data-ffh-reveal] {
  transition: opacity 1s var(--ffh-ease), transform 1s var(--ffh-ease);
}
.ffh-no-reveal :where(.ffh-video) [data-ffh-reveal].ffh-pre {
  opacity: 1 !important; transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .ffh-video, .ffh-video *,
  .ffh-video::before, .ffh-video *::before,
  .ffh-video::after, .ffh-video *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ===== Module styles ===== */
.ffh-video__wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ffh-video__wrap .ffh-badge { align-self: center; }
.ffh-video__h { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.045em; text-align: center; max-width: none; }
.ffh-video__lead { text-align: center; max-width: 560px; }
.ffh-video__frame { position: relative; width: 100%; max-width: min(100%, var(--vmax, 1280px), calc((100vh - 140px) * 16 / 9 + 20px)); margin: 14px auto 0; padding: 10px; border-radius: 30px; background: var(--frame); box-shadow: 0 60px 110px -50px rgba(5,13,36,.75), inset 0 1px 0 rgba(255,255,255,.12); }
.ffh-video__bar { position: relative; display: flex; align-items: center; height: 34px; padding: 0 10px; }
.ffh-video__dots { display: flex; gap: 7px; }
.ffh-video__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.ffh-video__lab { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; font-family: var(--ffh-mono); letter-spacing: .16em; color: rgba(255,255,255,.6); white-space: nowrap; }
.ffh-video__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0a1633; }
.ffh-video__stage iframe, .ffh-video__stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ffh-video__play { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.ffh-video__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 22px; }
.ffh-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ffh-video__shade { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(5,13,36,0), rgba(5,13,36,.35)); }
.ffh-video__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ffh-ease); }
.ffh-video__play:hover .ffh-video__btn { transform: translate(-50%, -50%) scale(1.06); }
.ffh-video__btn span { width: 72px; height: 72px; border-radius: 50%; background: var(--ffh-grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px -10px rgba(26,71,201,.9); color: #fff; font-size: 28px; }
.ffh-video__btn i { margin-left: 4px; }
@supports (height: 100svh) { .ffh-video__frame { max-width: min(100%, var(--vmax, 1280px), calc((100svh - 140px) * 16 / 9 + 20px)); } }
@media (max-width: 767px) {
  .ffh-video__frame { max-width: 100%; padding: 6px; border-radius: 20px; }
  .ffh-video__stage { border-radius: 15px; }
  .ffh-video__bar { height: 26px; padding: 0 8px; }
  .ffh-video__lab { font-size: 9.5px; letter-spacing: .12em; }
  .ffh-video__btn { width: 72px; height: 72px; } .ffh-video__btn span { width: 52px; height: 52px; font-size: 20px; }
}
@media (max-width: 400px) { .ffh-video__lab { display: none; } .ffh-video__btn { width: 60px; height: 60px; } .ffh-video__btn span { width: 44px; height: 44px; font-size: 18px; } }
