/* Additive hero: the native video completes before overlay and content are revealed. */
.gh-hero.gh-hero--video-intro { align-items:center; isolation:isolate; }
.gh-hero--video-intro .gh-hero__background { inset:0; z-index:0; background-position:var(--gh-vi-position,50% 50%); }
.gh-hero--video-intro .gh-hero__background video { object-position:var(--gh-vi-position,50% 50%); }
/* One zero-second image stays above the video until an actual frame is presented.
   The same cover/position as video avoids a crop jump; replay restores it instantly. */
.gh-hero--video-intro .gh-hero__background .gh-vi__poster { position:absolute; inset:0; z-index:1; display:block; width:100%; height:100%; object-fit:cover; object-position:var(--gh-vi-position,50% 50%); pointer-events:none; opacity:1; transition:none; }
.gh-hero--video-intro.is-vi-frame-ready .gh-vi__poster { opacity:0; transition:opacity 160ms ease-out; }
.gh-hero--video-intro [data-vi-poster][hidden] { display:none !important; }
.gh-hero--video-intro { --gh-vi-overlay-rgb:16,49,43; }
.gh-hero--video-intro[data-vi-overlay="black"] { --gh-vi-overlay-rgb:0,0,0; }
.gh-hero--video-intro .gh-hero__overlay { z-index:1; pointer-events:none; background:linear-gradient(rgba(var(--gh-vi-overlay-rgb),.6),rgba(var(--gh-vi-overlay-rgb),.788235)),radial-gradient(ellipse at center,rgba(var(--gh-vi-overlay-rgb),.082353),rgba(var(--gh-vi-overlay-rgb),.396078)); opacity:1; transition:opacity var(--gh-vi-overlay-duration,900ms) var(--gh-ease); }
.gh-hero.gh-hero--video-intro .gh-hero__content { min-height:100svh; display:grid; place-items:center; padding:clamp(100px,13svh,144px) clamp(20px,4vw,64px); }
.gh-hero--video-intro .gh-hero__grid { width:100%; max-width:1100px; margin-inline:auto; display:grid; grid-template-columns:minmax(0,1fr); gap:0; place-items:center; text-align:center; }
.gh-hero--video-intro .gh-hero__message { width:100%; min-width:0; }
.gh-hero--video-intro .gh-hero__title { max-width:none; margin:0 auto 1.5rem; font-size:clamp(2.6rem,6.8vw,7rem); line-height:1.06; letter-spacing:-.045em; text-wrap:balance; }
.gh-hero--video-intro .gh-hero__title em { display:block; }
.gh-hero--video-intro .gh-hero__copy { max-width:620px; margin:0 auto 2rem; color:#fff; font-size:clamp(1rem,1.4vw,1.18rem); line-height:1.7; text-wrap:pretty; }
.gh-vi__actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:14px; }
.gh-vi__actions .gh-btn--outline { color:#fff; border-color:#ffffff8c; }
.gh-vi__actions .gh-btn--outline:hover { color:var(--gh-forest); border-color:var(--gh-lime); background:var(--gh-lime); }
.gh-vi__controls { position:absolute; z-index:4; left:24px; right:24px; bottom:max(20px,env(safe-area-inset-bottom)); display:flex; justify-content:center; flex-wrap:wrap; align-items:center; gap:10px; }
.gh-vi__controls button { min-height:44px; max-width:100%; padding:11px 17px; border:1px solid #ffffff45; border-radius:30px; background:#10312bdd; color:#fff; font:500 .7rem/1.4 var(--gh-sans); letter-spacing:.03em; cursor:pointer; }
.gh-vi__controls button:hover { background:var(--gh-lime); color:var(--gh-forest); border-color:var(--gh-lime); }
.gh-vi__controls button:focus-visible, .gh-vi__actions a:focus-visible { outline:3px solid var(--gh-sky); outline-offset:4px; }
.gh-vi__controls button:disabled { opacity:.75; cursor:default; }
.gh-vi__controls [hidden] { display:none !important; }
.gh-hero--video-intro.is-vi-enhanced:not(.is-vi-revealed) .gh-hero__overlay { opacity:0; transition:none; }
.gh-hero--video-intro.is-vi-enhanced:not(.is-vi-revealed) .gh-hero__content { pointer-events:none; }
.gh-hero--video-intro.is-vi-enhanced [data-vi-item] { opacity:0; transform:translate3d(0,28px,0); transition:opacity var(--gh-vi-duration,1100ms) var(--gh-ease),transform var(--gh-vi-duration,1100ms) var(--gh-ease),clip-path var(--gh-vi-duration,1100ms) var(--gh-ease); }
.gh-hero--video-intro.is-vi-enhanced:not(.is-vi-revealed) [data-vi-item] { transition:none; }
.gh-hero--video-intro.is-vi-enhanced.is-vi-revealed [data-vi-item] { opacity:1; transform:translate3d(0,0,0); transition-delay:calc(var(--gh-vi-delay,160ms) + var(--gh-vi-order,0) * var(--gh-vi-stagger,140ms)); }
.gh-hero--video-intro[data-vi-animation="soft"] [data-vi-item] { transform:none; }
.gh-hero--video-intro[data-vi-animation="reveal"].is-vi-enhanced [data-vi-item] { clip-path:inset(0 0 100%); transform:translate3d(0,16px,0); }
.gh-hero--video-intro[data-vi-animation="reveal"].is-vi-revealed [data-vi-item] { clip-path:inset(0); transform:none; }
.gh-vi-demo-nav { position:absolute; z-index:5; inset:0 0 auto; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px clamp(20px,4vw,60px); color:#fff; font-size:.75rem; }
.gh-vi-demo-nav img { width:210px; height:auto; }
.gh-vi-demo-nav a { color:inherit; }
.gh-vi-demo-nav a:first-child { min-height:44px; display:flex; align-items:center; }
.gh-vi-example { margin-block:40px; }
.gh-vi-example .gh-hero__title { font-size:clamp(2.6rem,4.5vw,5rem); }
.gh-vi-settings { max-width:1120px; margin:0 auto; padding:40px 24px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.gh-vi-settings label { display:flex; flex-direction:column; gap:10px; font-size:.85rem; }
.gh-vi-settings input { min-height:44px; width:100%; accent-color:var(--gh-grove); }
.gh-vi-settings select { width:100%; min-height:48px; padding:10px 38px 10px 14px; border:1px solid var(--gh-line); border-radius:12px; background:var(--gh-white); color:var(--gh-forest); font:400 .85rem/1.4 var(--gh-sans); }
.gh-vi-demo-code { max-width:1120px; margin:auto; padding:0 24px 60px; }
@media (max-width:767px) {
  .gh-hero--video-intro .gh-hero__title { font-size:clamp(2.6rem,10.5vw,4rem); margin-bottom:1.25rem; }
  .gh-hero--video-intro .gh-hero__copy { margin-bottom:1.5rem; }
  .gh-vi__actions { gap:10px; }
  .gh-vi__actions .gh-btn { min-height:48px; font-size:.66rem; padding:1rem 1.1rem; }
  .gh-vi-settings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gh-vi-demo-nav img { width:165px; }
}
@media (max-width:500px) {
  .gh-vi__actions { flex-direction:column; }
  .gh-vi__actions .gh-btn { width:min(100%,300px); }
}
@media (prefers-reduced-motion:reduce) {
  .gh-hero--video-intro .gh-hero__overlay, .gh-hero--video-intro [data-vi-item], .gh-hero--video-intro .gh-vi__poster { transition:none !important; transform:none !important; clip-path:none !important; }
}
