/* Scroll video hero: scoped to keep the concept's other sections intact. */
#scene{height:360vh;position:relative;background:#f7fbfd;color:var(--zg-ink);--scene-accent:#008fdd}
#scene .sticky{height:100svh;position:sticky;top:0;overflow:hidden;background:linear-gradient(180deg,#fbfdff,#f2f8fc)}
#scene :is(.video,.hero-poster){
 position:absolute;
 inset:0 0 0 26%;
 width:74%;
 height:100%;
 object-fit:cover;
 object-position:center;
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 28%);
 mask-image:linear-gradient(90deg,transparent,#000 75%);
}
#scene .hero-poster{display:block}
#scene .hero-poster img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
#scene .video{opacity:0}
#scene .video.is-ready{opacity:1}
/* The masked video must never blend with a second image underneath it. */
#scene:has(.video.is-ready) .hero-poster{opacity:0;visibility:hidden}
#scene .veil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(247,251,253,.92),transparent 18%)}
#scene .content{position:absolute;z-index:2;inset:100px 53% 80px max(32px,calc((100vw - 1280px)/2));display:flex;align-items:center;pointer-events:none}
#scene .hero-text{width:100%;max-width:820px;min-width:0}
#scene .hero-text + .hero-text{margin-top:48px}
.js #scene .content{display:grid}
.js #scene .hero-text{grid-area:1/1;align-self:center;margin:0}
.js #scene .content:not(.motion-ready) .hero-text:nth-child(n+2){visibility:hidden}
#scene .motion-ready .hero-text{grid-area:1/1;align-self:center;margin:0}
#scene .hero-text[aria-hidden="true"]{pointer-events:none}
#scene .hero-text:not([aria-hidden="true"]) a{pointer-events:auto}
#scene .eyebrow{color:var(--scene-accent);margin:0 0 18px;font-size:.76rem;letter-spacing:.16em}
#scene :is(h1,h2){font-size:clamp(2.1rem,3.4vw,4.3rem)!important;line-height:1.02;letter-spacing:-.045em;margin:0 0 22px;text-wrap:balance;color:var(--zg-ink);}
#scene :is(h1,h2) strong{color:var(--scene-accent);}
#scene p{font-size:clamp(.88rem,1.05vw,1.03rem);line-height:1.6;max-width:650px;color:#5c707c;margin:0 0 24px}
#scene .hero-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin:0!important;max-width:none!important}
#scene .hero-actions .btn-secondary{color:var(--zg-ink);background:#fff;border-color:#dce8ef}
#scene .hero-actions .btn{width:auto!important;min-height:46px!important;padding:0 17px!important;font-size:.86rem}
#scene .hero-mini-proof{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:700px!important;gap:16px!important;margin:26px 0 0!important;padding:20px 0 0!important;border-top:1px solid #dce8ef!important}
#scene .hero-mini-proof div{background:none;border:0;padding:0}
#scene .hero-mini-proof span{display:block;font-size:.72rem;color:#667684}
#scene .hero-mini-proof strong{display:block;font-size:.96rem;color:var(--zg-ink)}
#scene .bottom{position:absolute;z-index:3;bottom:28px;left:max(32px,calc((100vw - 1240px)/2));right:max(32px,calc((100vw - 1240px)/2));display:flex;align-items:center;gap:24px}
#scene .bottom small{font-size:10px;font-weight:700;letter-spacing:.15em;white-space:nowrap}
#scene .track{flex:1;height:2px;background:#cadce7;overflow:hidden}
#scene .fill{height:100%;background:var(--scene-accent);transform:scaleX(0);transform-origin:left}
#scene .percent{font-size:12px;min-width:40px;text-align:right;font-variant-numeric:tabular-nums}
#scene .scroll-hint{position:absolute;z-index:3;right:24px;top:50%;transform:translateY(-50%);writing-mode:vertical-rl;font-size:11px;font-weight:600;letter-spacing:.2em;color:#fff;text-shadow:0 1px 8px rgba(3,18,29,.8);pointer-events:none}
#scene .notice{visibility:hidden;opacity:0;position:absolute;z-index:4;right:24px;bottom:54px;font-size:11px;line-height:1.5;max-width:min(360px,calc(100% - 48px));min-height:30px;color:#d5e7f1;background:#061923dd;padding:7px 12px;border-radius:8px;pointer-events:none}
#scene .notice.has-error{visibility:visible;opacity:1}
#scene .notice.ready{opacity:0;visibility:hidden}
@media(max-width:820px){
 #scene .content{right:24px;left:24px}
 #scene .veil{background:linear-gradient(90deg,rgba(247,251,253,.98),rgba(247,251,253,.84))}
}
@media(max-width:650px){
 #scene{height:300vh}
 #scene .content{inset:98px 24px 70px}
 #scene :is(h1,h2){font-size:clamp(1.95rem,8vw,3rem)!important;margin-bottom:16px;}
 #scene .eyebrow{font-size:.62rem;letter-spacing:.12em;margin-bottom:12px}
 #scene p{font-size:.82rem;line-height:1.5;margin-bottom:18px}
 #scene .hero-actions{gap:8px!important}
 #scene .hero-actions .btn{min-height:40px!important;padding:0 12px!important;font-size:.72rem}
 #scene .hero-mini-proof{gap:12px!important;margin-top:18px!important;padding-top:14px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #scene .hero-mini-proof strong{font-size:.85rem}
 #scene .hero-mini-proof span{font-size:.65rem}
 #scene .bottom{left:24px;right:24px;bottom:22px;gap:12px}
 #scene .bottom small{font-size:8px;letter-spacing:.06em}
 #scene .scroll-hint{display:none}
 #scene .veil{background:linear-gradient(90deg,rgba(247,251,253,.1),rgba(247,251,253,.184)),linear-gradient(0deg,#f7fbfd,transparent)}
}
@media(max-height:600px) and (min-width:651px){
 #scene .content{inset:90px 32px 54px}
 #scene .veil{background:linear-gradient(90deg,#f7fbfd,rgba(247,251,253,.82))}
 #scene .hero-text:first-child{max-width:none;display:grid;grid-template-columns:1.3fr 1fr;column-gap:28px;align-items:start}
 #scene .hero-text:first-child .eyebrow{grid-column:1/-1}
 #scene .hero-text:first-child h1{grid-column:1;grid-row:2;font-size:clamp(1.7rem,5.5vh,2.5rem)!important;}
 #scene .hero-text:first-child p{grid-column:1;grid-row:3;font-size:.72rem;line-height:1.4;margin:0}
 #scene .hero-actions{grid-column:2;grid-row:2}
 #scene .hero-actions .btn{min-height:34px!important;font-size:.68rem;padding:0 10px!important}
 #scene .hero-mini-proof{grid-column:2;grid-row:3;grid-template-columns:1fr 1fr!important;margin:8px 0 0!important;padding-top:8px!important;gap:6px!important}
 #scene .hero-mini-proof strong{font-size:.8rem}
 #scene .scroll-hint{display:none}
 #scene :is(h1,h2){font-size:clamp(2rem,8vh,3rem)!important;}
 #scene p{font-size:.9rem}
 #scene .eyebrow{margin-bottom:10px}
}
@media(max-width:650px) and (max-height:700px){
 #scene .content{inset:88px 20px 54px}
 #scene :is(h1,h2){font-size:clamp(1.6rem,7vw,2rem)!important;margin-bottom:12px;}
 #scene .eyebrow{font-size:.56rem;margin-bottom:10px}
 #scene p{font-size:.73rem;line-height:1.42;margin-bottom:12px}
 #scene .hero-actions{gap:6px!important}
 #scene .hero-actions .btn{font-size:.64rem;min-height:34px!important;padding:0 9px!important}
 #scene .hero-mini-proof{margin-top:12px!important;padding-top:10px!important;gap:8px!important}
 #scene .hero-mini-proof strong{font-size:.75rem}
}
@media(max-width:360px) and (max-height:700px){
 #scene .hero-mini-proof{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
 #scene .hero-mini-proof span{font-size:.55rem}
 #scene .hero-mini-proof strong{font-size:.65rem}
}
@media(min-width:821px) and (min-height:601px){
 html:not(.js) #scene .content:not(.motion-ready){width:47%;margin-left:max(8px,calc((100vw - 1280px)/2 - 24px));margin-right:0}
}
/* Readable static fallback, including when JavaScript is unavailable. */
html:not(.js) #scene:has(.content:not(.motion-ready)){height:auto}
html:not(.js) #scene:has(.content:not(.motion-ready)) .sticky{height:auto;min-height:100svh;position:relative}
html:not(.js) #scene .content:not(.motion-ready){position:relative;inset:auto;display:block;padding:120px 24px 100px;max-width:1240px;margin:auto;width:100%}
html:not(.js) #scene:has(.content:not(.motion-ready)) :is(.bottom,.scroll-hint){display:none}
@media(prefers-reduced-motion:reduce){
 #scene{height:auto}
 #scene .sticky{height:auto;min-height:100svh;position:relative}
 #scene .content{position:relative;inset:auto;display:block;padding:120px 24px 100px;max-width:1240px;margin:auto;width:100%}
 #scene .hero-text + .hero-text{margin-top:56px}
 #scene :is(.bottom,.scroll-hint){display:none}
}

/* WordPress toolbar stays above the pinned hero. */
body.admin-bar #scene .sticky{top:32px;height:calc(100svh - 32px)}
@media(max-width:782px){body.admin-bar #scene .sticky{top:46px;height:calc(100svh - 46px)}}
@media(max-width:600px){body.admin-bar #scene .sticky{top:0;height:100svh}}
html:not(.js) body.admin-bar #scene:has(.content:not(.motion-ready)) .sticky{top:0;height:auto}

/* Overlay the homepage hero immediately: no header-height strip above the video. */
body:has(main #scene) .topbar{position:fixed!important;top:0!important;left:0;right:0;width:100%}
body.admin-bar:has(main #scene) .topbar{top:32px!important}
@media(max-width:782px){body.admin-bar:has(main #scene) .topbar{top:46px!important}}
@media(max-width:600px){body.admin-bar:has(main #scene) .topbar.scrolled{top:0!important}}
@media(prefers-reduced-motion:reduce){
 .js #scene .content{display:block}
 .js #scene .hero-text{grid-area:auto;margin:0}
 .js #scene .hero-text + .hero-text{margin-top:56px}
 .js #scene .content:not(.motion-ready) .hero-text:nth-child(n+2){visibility:visible}
}
