/* Option 1: original ISM Website film, scoped to the homepage hero. */
.hero--video { height: 100svh; min-height: 700px; max-height: 1100px; background: #081d38; }
.hero--video .hero-media { height: 100%; }
.hero--video .hero-media::after { display: none; }
.hero--video .hero-video-poster { transform: none; transition: none; }
.hero-background-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero--video.has-video-frame .hero-background-video { opacity: 1; }
.hero--video .hero-overlay { pointer-events: none; background: linear-gradient(90deg,rgba(4,14,29,.75),rgba(4,14,29,.22) 54%,transparent 85%),linear-gradient(0deg,rgba(4,14,29,.9),rgba(4,14,29,.08) 75%); }
.hero--video .hero-content { left: clamp(28px,4vw,80px); bottom: 85px; width: min(650px,53vw); }
.hero--video h1 { font-size: clamp(64px,6.4vw,105px); line-height: .98; letter-spacing: -.05em; text-shadow: 0 2px 24px rgba(0,0,0,.18); }
.hero--video h1 span { display: block; }
.hero--video .hero-content > p { max-width: 560px; font-size: 17px; line-height: 1.6; color: #f0f3f8; margin-top: 22px; }
.hero--video .hero-actions { margin-top: 28px; flex-wrap: wrap; }
.hero--video .button-ghost { background: rgba(4,14,29,.12); }
.hero-film-controls { position: absolute; z-index: 4; right: clamp(28px,4vw,80px); bottom: 85px; display: flex; align-items: flex-end; gap: 30px; flex-direction: column; color: white; }
.hero-film-controls button { border: 0; color: inherit; font: inherit; cursor: pointer; }
.hero-watch-film { display: flex; align-items: center; gap: 13px; background: none; padding: 8px 0; text-align: left; font-size: 16px; }
.hero-watch-film small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .03em; opacity: .8; }
.film-play-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; padding-left: 2px; font-size: 14px; background: rgba(4,14,29,.2); transition: background .2s,border-color .2s; }
.hero-watch-film:hover .film-play-icon { background: #1f02e9; border-color: #1f02e9; }
.hero-motion-button { display: flex; align-items: center; gap: 9px; padding: 12px 14px; min-height: 44px; border-radius: 24px; background: rgba(4,14,29,.55); font-size: 12px !important; }
.hero-motion-button [data-motion-icon] { width: 12px; font-size: 11px; }
.hero-film-controls button:focus-visible,.ism-film-dialog button:focus-visible { outline: 3px solid #c2bbff; outline-offset: 5px; }
.hero-film-controls [hidden],.ism-film-dialog [hidden] { display: none; }
.ism-film-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(1120px,calc(100vw - 48px)); max-width: none; max-height: calc(100svh - 36px); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: white; background: #05090f; overflow: auto; box-shadow: 0 32px 120px #0009; }
.ism-film-dialog::backdrop { background: rgba(2,8,18,.92); }
.ism-film-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 18px; }
.ism-film-heading h2 { font: 500 14px/1.4 Arial,sans-serif; letter-spacing: .02em; margin: 0; }
.ism-film-heading button { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; color: white; padding: 8px 0 8px 16px; min-height: 44px; cursor: pointer; font: 14px Arial,sans-serif; }
.ism-film-heading button span { font-size: 28px; line-height: 1; }
.ism-film-dialog video { display: block; width: 100%; max-height: calc(100svh - 112px); aspect-ratio: 16/9; background: #000; }
.ism-film-error { padding: 16px 20px; }
body.film-is-open { overflow: hidden; }
@media (max-width: 900px) and (min-width: 801px) { .hero--video .hero-content { width: 66vw; } .hero-film-controls { bottom: 30px; flex-direction: row; align-items: center; } }
@media (max-width: 800px) {
 .hero--video { height: auto; min-height: 0; max-height: none; padding-top: 112px; overflow: hidden; }
 .hero--video .hero-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16/9; }
 .hero--video .hero-overlay { display: none; }
 .hero--video .hero-content { position: relative; inset: auto; width: auto; padding: 30px 24px 0; }
 .hero--video h1 { font-size: clamp(38px,11.8vw,76px); line-height: 1; letter-spacing: -.05em; }
 .hero--video .hero-content > p { font-size: 16px; line-height: 1.65; margin-top: 20px; }
 .hero--video .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
 .hero--video .hero-actions .button { width: 100%; padding: 16px 10px; min-height: 50px; font-size: 12px; letter-spacing: .03em; }
 .hero-film-controls { position: relative; inset: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 24px 28px; }
 .hero-watch-film { font-size: 14px; }
 .hero-watch-film small { font-size: 11px; }
 .film-play-icon { width: 42px; height: 42px; }
 .hero-motion-button { padding: 12px 10px; background: rgba(255,255,255,.07); }
 .hero-motion-button [data-motion-label] { max-width: 72px; text-align: left; }
 .ism-film-dialog { width: calc(100vw - 20px); }
 .ism-film-heading { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero--video *, .ism-film-dialog * { transition: none !important; } }

@media (max-width: 360px) {
 .hero-motion-button { flex: 0 0 44px; width: 44px; justify-content: center; padding: 0; }
 .hero-motion-button [data-motion-label] { display: none; }
 .hero-watch-film { white-space: nowrap; }
}

/* Terry's Website #1 review: business outcomes within the opening viewport. */
.hero--video .hero-content { bottom: 184px; }
.hero--video h1 { font-size: clamp(62px, 5.9vw, 92px); }
.hero--video .hero-film-controls { bottom: 184px; }
.hero--video .hero-outcomes {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  padding: 16px clamp(28px, 4vw, 80px);
  background: rgba(7, 26, 50, .96);
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-outcomes .stats-grid { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-outcomes .stats-grid article { padding: 12px 16px; }
.hero-outcomes .stats-grid strong { font-size: clamp(42px, 4vw, 58px); letter-spacing: 0; }
.hero-outcomes .stats-grid span { margin-top: 8px; font-size: 10px; letter-spacing: 1px; }

@media (max-width: 980px) {
  .hero--video { height: auto; min-height: 0; max-height: none; padding-top: 84px; overflow: hidden; }
  .hero--video .hero-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16/9; }
  .hero--video .hero-overlay { display: none; }
  .hero--video .hero-outcomes { position: relative; inset: auto; padding: 14px 24px; }
  .hero-outcomes .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-outcomes .stats-grid article { padding: 12px 6px; }
  .hero-outcomes .stats-grid strong { font-size: 34px; }
  .hero-outcomes .stats-grid span { margin-top: 5px; font-size: 9px; letter-spacing: .6px; }
  .hero--video .hero-content { position: relative; inset: auto; width: auto; padding: 28px 24px 0; }
  .hero--video h1 { font-size: clamp(38px, 10vw, 76px); line-height: 1; }
  .hero--video .hero-content > p { max-width: 650px; font-size: 16px; line-height: 1.65; margin-top: 20px; }
  .hero--video .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero--video .hero-actions .button { width: 100%; padding: 16px 10px; min-height: 50px; font-size: 12px; letter-spacing: .03em; }
  .hero--video .hero-film-controls { position: relative; inset: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 24px 28px; }
}

@media (min-width: 981px) and (max-height: 760px) {
  .hero--video { min-height: 640px; }
  .hero--video .hero-content { bottom: 148px; }
  .hero--video h1 { font-size: clamp(60px, 5.4vw, 78px); }
  .hero--video .hero-content > p { font-size: 16px; line-height: 1.5; margin-top: 16px; }
  .hero--video .hero-actions { margin-top: 20px; }
  .hero--video .hero-film-controls { bottom: 148px; }
}
