/* v1.6: user-provided ORIGINAL full 16:9 frames, no zoom/crop, all top-right callouts preserved. */
/* RPO AIDC Hero v1.3.0: mobile film = centered-content 16:9, never fullscreen crop by default.
   Only styles .hero.rpo-aidc-has-video. The RC3 header/logo and downstream sections are untouched. */
.hero.rpo-aidc-has-video{position:relative;isolation:isolate;overflow:hidden;background:#06152b;color:#f1f7ff}
.hero.rpo-aidc-has-video::after{display:none!important}
.hero.rpo-aidc-has-video .rpo-aidc-film{position:absolute;inset:0;z-index:0;pointer-events:none;background:#06152b}
.hero.rpo-aidc-has-video .rpo-aidc-stage{position:absolute;inset:0;overflow:hidden}
.hero.rpo-aidc-has-video .rpo-aidc-stage picture,
.hero.rpo-aidc-has-video .rpo-aidc-stage picture img,
.hero.rpo-aidc-has-video .rpo-aidc-stage video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center center}
.hero.rpo-aidc-has-video .rpo-aidc-stage video{z-index:1;opacity:0;transition:opacity .2s ease}
.hero.rpo-aidc-has-video .rpo-aidc-film.rpo-playing video{opacity:1}
.hero.rpo-aidc-has-video .rpo-aidc-stage picture{position:absolute;inset:0;z-index:0}
.hero.rpo-aidc-has-video .rpo-aidc-stage::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(3,13,30,.98) 0%,rgba(3,13,30,.95) 26%,rgba(3,13,30,.74) 44%,rgba(3,13,30,.20) 72%,rgba(3,13,30,.05) 100%)}
.hero.rpo-aidc-has-video>.hero-grid{position:relative;z-index:2;min-height:615px}
.hero.rpo-aidc-has-video .hero-grid h1,.hero.rpo-aidc-has-video .hero-grid .hero-message{color:#f5faff!important}
.hero.rpo-aidc-has-video .hero-grid .eyebrow{color:#79d9ff}
.hero.rpo-aidc-has-video .hero-grid p:not(.hero-message){color:#d3e1f1}
.hero.rpo-aidc-has-video .radar{opacity:0;pointer-events:none}
.hero.rpo-aidc-has-video .hero-strip{position:relative;z-index:4;background:#fff}
.hero.rpo-aidc-has-video .actions .btn:not(.primary){background:#fffffff0;color:#12305b}
.hero.rpo-aidc-has-video .actions .btn.primary{background:#0b57d0;color:#fff}
.hero.rpo-aidc-has-video .rpo-aidc-toolbar{display:none}
.hero.rpo-aidc-has-video>.rpo-aidc-motion-control{position:absolute;z-index:5;right:max(18px,calc((100vw - 1180px)/2));bottom:132px;background:#071e37f0;color:#e5f8ff;border:1px solid #5ca8d0;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:750;cursor:pointer;line-height:1.25}
.hero.rpo-aidc-has-video button:focus-visible{outline:3px solid #64daff;outline-offset:3px}
.hero.rpo-aidc-has-video .rpo-aidc-motion-control[hidden],.hero.rpo-aidc-has-video .rpo-aidc-toolbar button[hidden]{display:none!important}
.hero.rpo-aidc-has-video>.rpo-aidc-preview-badge{position:absolute;z-index:6;right:16px;top:14px;font-size:11px;font-weight:850;padding:5px 10px;border:1px solid rgba(135,207,248,.55);border-radius:999px;background:rgba(3,18,37,.88);color:#cef0ff;pointer-events:none}
@media(max-width:960px){
  .hero.rpo-aidc-has-video>.hero-grid{min-height:0}
  .hero.rpo-aidc-has-video .radar{display:none}
}
@media(max-width:800px){
  /* The hero stacks: preserved copy first, full-width landscape movie second, original strip third. */
  .hero.rpo-aidc-has-video{display:flex;flex-direction:column;overflow:visible}
  .hero.rpo-aidc-has-video>.hero-grid{order:1;display:block;min-height:0;padding-top:52px;padding-bottom:24px}
  .hero.rpo-aidc-has-video>.rpo-aidc-film{order:2;position:relative;inset:auto;width:calc(100% - 26px);max-width:760px;margin:0 auto 25px;overflow:visible;pointer-events:auto;background:transparent}
  .hero.rpo-aidc-has-video>.hero-strip{order:3}
  .hero.rpo-aidc-has-video .rpo-aidc-stage{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:16/9;border-radius:13px;border:1px solid rgba(89,183,241,.60);overflow:hidden;background:#031020;box-shadow:0 9px 36px rgba(0,0,0,.25)}
  .hero.rpo-aidc-has-video .rpo-aidc-stage picture img,
  .hero.rpo-aidc-has-video .rpo-aidc-stage video{object-fit:contain;object-position:center center}
  .hero.rpo-aidc-has-video .rpo-aidc-stage::after{display:none!important}
  /* Optional enlarged content view; default always shows the original complete 16:9 frame. */
  .hero.rpo-aidc-has-video .rpo-aidc-stage video,.hero.rpo-aidc-has-video .rpo-aidc-stage picture img{transform:scale(1);transform-origin:50% 50%;transition:transform .22s ease}
  .hero.rpo-aidc-has-video .rpo-aidc-stage.rpo-cropped video,.hero.rpo-aidc-has-video .rpo-aidc-stage.rpo-cropped picture img{transform:scale(1.55)}
  .hero.rpo-aidc-has-video .rpo-aidc-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;justify-content:space-between;padding:10px 0 0;position:relative;z-index:7}
  .hero.rpo-aidc-has-video .rpo-aidc-toolbar button{flex:1 1 auto;min-width:82px;min-height:40px;background:#0d2947;color:#f2fbff;border:1px solid #397fa9;border-radius:10px;padding:8px 11px;cursor:pointer;font-weight:750;font-size:13px;line-height:1.3;white-space:nowrap}
  .hero.rpo-aidc-has-video .rpo-aidc-toolbar button:active{background:#145080}
  .hero.rpo-aidc-has-video>.rpo-aidc-motion-control{display:none!important}
  .hero.rpo-aidc-has-video>.rpo-aidc-preview-badge{top:8px;right:8px;font-size:10px}
  .hero.rpo-aidc-has-video .hero-grid h1{font-size:clamp(3.05rem,11.4vw,4.1rem)}
  .hero.rpo-aidc-has-video .hero-grid p{font-size:.97rem}
  .hero.rpo-aidc-has-video .rpo-aidc-film.rpo-fallback-fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;max-width:none!important;height:100dvh!important;display:flex!important;flex-direction:column;justify-content:center;margin:0!important;padding:18px 10px!important;background:#031020!important;border:0!important;border-radius:0!important}
  .hero.rpo-aidc-has-video .rpo-aidc-film.rpo-fallback-fullscreen .rpo-aidc-stage{aspect-ratio:16/9;max-height:calc(100dvh - 130px)}
  .hero.rpo-aidc-has-video .rpo-aidc-film.rpo-fallback-fullscreen .rpo-aidc-toolbar{justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .hero.rpo-aidc-has-video .rpo-aidc-stage video{display:none!important}
  .hero.rpo-aidc-has-video .rpo-aidc-motion-control,.hero.rpo-aidc-has-video .rpo-aidc-toolbar .rpo-aidc-play{display:none!important}
}

/* v1.3 fix — center the subject and fit the full 16:9 mobile frame without horizontal offset. */
@media(max-width:800px){
 .hero.rpo-aidc-has-video>.rpo-aidc-film{
   width:calc(100% - 26px)!important;max-width:760px!important;
   margin-left:auto!important;margin-right:auto!important;
   align-self:center!important;transform:none!important;
 }
 .hero.rpo-aidc-has-video .rpo-aidc-stage{
   width:100%!important;aspect-ratio:16/9!important;max-height:none!important;
   margin:0 auto!important;transform:none!important;
 }
 .hero.rpo-aidc-has-video .rpo-aidc-stage video,
 .hero.rpo-aidc-has-video .rpo-aidc-stage picture,
 .hero.rpo-aidc-has-video .rpo-aidc-stage picture img{
   width:100%!important;height:100%!important;object-fit:contain!important;
   object-position:50% 50%!important;left:0!important;top:0!important;
 }
 .hero.rpo-aidc-has-video .rpo-aidc-stage.rpo-cropped video,
 .hero.rpo-aidc-has-video .rpo-aidc-stage.rpo-cropped picture img{
   transform:scale(1.25)!important;transform-origin:center center!important;
 }
}

/* v1.5.0 PC full-frame FIT. Preserve v1.3 mobile rules without changing them. */
@media (min-width:801px) {
  .hero.rpo-aidc-has-video > .hero-grid {
    display:grid!important;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
    align-items:center!important;
    gap:clamp(22px,3.5vw,52px)!important;
    min-height:0!important;
    padding:clamp(55px,7vw,86px) 0 clamp(50px,6vw,76px)!important;
  }
  .hero.rpo-aidc-has-video .hero-grid > .radar {
    display:flex!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .hero.rpo-aidc-has-video .radar > .ring,
  .hero.rpo-aidc-has-video .radar > .core,
  .hero.rpo-aidc-has-video .radar > .dot {display:none!important}
  .hero.rpo-aidc-has-video .radar > .rpo-aidc-film {
    position:relative!important;
    inset:auto!important;
    z-index:3!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
    overflow:visible!important;
    transform:none!important;
    background:transparent!important;
    pointer-events:auto!important;
  }
  .hero.rpo-aidc-has-video .radar > .rpo-aidc-film > .rpo-aidc-stage {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    border-radius:14px!important;
    background:#031020!important;
    border:1px solid rgba(89,183,241,.66)!important;
    box-shadow:0 16px 35px rgba(0,0,0,.35)!important;
    overflow:hidden!important;
  }
  .hero.rpo-aidc-has-video .radar .rpo-aidc-stage picture,
  .hero.rpo-aidc-has-video .radar .rpo-aidc-stage picture img,
  .hero.rpo-aidc-has-video .radar .rpo-aidc-stage video {
    position:absolute!important;
    inset:0!important;
    left:0!important;
    top:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    transform:none!important;
  }
  .hero.rpo-aidc-has-video .radar .rpo-aidc-stage::after {display:none!important}
  .hero.rpo-aidc-has-video .radar > .rpo-aidc-film > .rpo-aidc-toolbar {
    display:flex!important;
    position:relative!important;
    z-index:5!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:9px!important;
    margin-top:12px!important;
    padding:0!important;
  }
  .hero.rpo-aidc-has-video .radar .rpo-aidc-toolbar button {
    cursor:pointer!important;
    border:1px solid rgba(89,183,241,.65)!important;
    border-radius:8px!important;
    padding:9px 16px!important;
    background:#0d2947!important;
    color:#f0faff!important;
    font-size:13px!important;
    font-weight:750!important;
    line-height:1.3!important;
    min-height:38px!important;
  }
  .hero.rpo-aidc-has-video .radar .rpo-aidc-toolbar .rpo-aidc-fit {display:none!important}
  .hero.rpo-aidc-has-video > .rpo-aidc-motion-control {display:none!important}
}
@media (prefers-reduced-motion:reduce) {
  .hero.rpo-aidc-has-video .rpo-aidc-stage video,
  .hero.rpo-aidc-has-video .radar .rpo-aidc-stage video {display:none!important}
}

.hero.rpo-aidc-has-video .rpo-aidc-hint{display:none!important}

/* v1.6 invariant: show the whole supplied frame including all four edges, at every breakpoint. */
.hero.rpo-aidc-has-video .rpo-aidc-stage video,
.hero.rpo-aidc-has-video .rpo-aidc-stage picture img {
  width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center center!important;
  transform:none!important;
}
.hero.rpo-aidc-has-video .rpo-aidc-stage {aspect-ratio:16/9!important;}
.hero.rpo-aidc-has-video .rpo-aidc-fit {display:none!important;}
