/* Every opening occupies the visible viewport below its navigation. Content
   adapts inside that frame; a slide never sets the outer hero's height. */
:root{--hero-viewport:100vh;--hero-controls-height:56px}
@supports(height:100dvh){:root{--hero-viewport:100dvh}}
.hero.hero-home,.hero.hero-page,.cs-hero[data-creative-carousel]{height:calc(var(--hero-viewport) - var(--nav-h));min-height:0;max-height:calc(var(--hero-viewport) - var(--nav-h));padding-bottom:0;animation:none;overflow:hidden}
.hero .hero-stage{position:relative;flex:1 1 0;min-height:0;min-width:0;grid-template-rows:minmax(0,1fr)}
.hero .hero-panel{position:absolute;inset:0;min-height:0;max-height:100%}
.hero .hero-content{height:100%;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;pointer-events:auto}
.hero.hero-static .hero-stage{height:100%;min-height:0}
.hero.hero-page .hero-content{justify-content:center;min-height:0;padding-block:clamp(24px,4dvh,56px)}
.hero.hero-static .hero-content{padding-bottom:90px}
.hero.hero-page .hero-title{font-size:clamp(40px,min(6.5vw,8dvh),92px)}
.hero-home .hero-panel .hero-content{padding-block:clamp(22px,4dvh,44px);gap:20px}
.hero-home .home-title{font-size:clamp(58px,min(10.3vw,13dvh),150px)}
.hero-home .hero-subtitle{font-size:clamp(28px,min(3.5vw,5dvh),48px)}
.hero-home .hero-description{font-size:clamp(14px,min(1.21vw,2.3dvh),19px)}

/* Compact arrows and pause, with a quiet measure of the current interval. */
.hero .carousel-rail,.cs-hero .carousel-rail{flex:0 0 var(--hero-controls-height);height:var(--hero-controls-height);min-height:0;max-height:var(--hero-controls-height);padding:0 var(--gutter);display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:nowrap;border-top:1px solid #ffffff1c;background:var(--navy)}
.hero .carousel-progress,.cs-hero .carousel-progress{position:relative;inset:auto;flex:0 0 72px;width:72px;height:1px;background:#ffffff35}
.hero .carousel-controls,.cs-hero .carousel-controls{display:flex;gap:2px;align-items:center;margin:0;padding:0}
.hero .carousel-controls button,.cs-hero .carousel-controls button,.nss-hero-controls button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;opacity:.78;transition:opacity .2s,background .2s}
.hero .carousel-controls button:hover,.cs-hero .carousel-controls button:hover{opacity:1;background:#ffffff0a}
.hero .carousel-controls .material-symbols-outlined,.cs-hero .carousel-controls .material-symbols-outlined,.nss-hero-controls .material-symbols-outlined{font-size:21px}
.hero .carousel-controls button:focus-visible,.cs-hero .carousel-controls button:focus-visible,.nss-hero-controls button:focus-visible{outline:2px solid var(--rust);outline-offset:1px}

.cs-hero .cs-stage{flex:1 1 0;min-height:0;min-width:0;max-height:100%;margin:0 auto;padding-block:clamp(20px,3dvh,35px)}
.cs-hero .cs-copy{min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.cs-hero .cs-copy-window{min-height:0}
.cs-hero .cs-title{font-size:clamp(40px,min(5.3vw,9dvh),80px);margin-block:16px}
.cs-hero .cs-description{font-size:clamp(13px,min(1.18vw,2.2dvh),17px)}

/* The product section rails are part of their opening navigation. */
.nss-hero{height:calc(var(--hero-viewport) - var(--nav-h) - var(--nss-rail-h));min-height:0;max-height:calc(var(--hero-viewport) - var(--nav-h) - var(--nss-rail-h));align-items:stretch}
.nss-hero-content[data-hero-carousel]{height:100%;min-height:0;max-height:100%;overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(12px,2dvh,22px);padding-block:clamp(16px,2.5dvh,30px)}
.nss-hero-content[data-hero-carousel] .nss-hero-stage{height:auto;min-height:0;overflow:hidden;overscroll-behavior:contain;scrollbar-width:thin}
.nss-hero-mapping .nss-map-layout{grid-template-rows:calc(var(--nss-hero-copy-height,180px) + 16px) minmax(0,1fr)}
.nss-hero-mapping .nss-map-source{padding:14px;transform:scale(var(--nss-hero-source-scale,1));transform-origin:left bottom}
.nss-hero-mapping .nss-map-source h3{font-size:22px;margin-block:8px}
.nss-hero-mapping .nss-map-picker{height:clamp(70px,10dvh,100px)}
.nss-hero-mapping .nss-map-targets{gap:12px}
.nss-hero-mapping .nss-map-target{padding:8px 12px}
.nss-hero-mapping .nss-map-target-heading{margin-bottom:5px}
.nss-hero-controls{justify-content:flex-end;gap:2px;color:var(--ink)}
.nss-hero-controls button:hover{background:#08265009;opacity:1}
.nss-hero-controls .sr-only{position:absolute}
.pvs-hero{height:var(--pvs-stage);min-height:0;max-height:var(--pvs-stage)}
html:has(body[data-page=preview]){--pvs-stage:calc(var(--hero-viewport) - var(--pvs-top))}
.pvs-hero-grid{max-height:100%;min-height:0;overflow-y:auto;overscroll-behavior:auto;scrollbar-width:thin}

/* Form fields share a left typing origin. Place that origin in the clear
   right-hand area, and mask the scene once so poster/video masks do not stack. */
.hero-home [data-scene=regulated] :is(.home-official-form-poster,.home-official-form-film){position:absolute;inset:0 auto 0 58%;width:76%;max-width:none;height:100%;object-fit:contain;object-position:left center;background:#f6f8fb;transform:none;will-change:auto}
.hero-home [data-scene=regulated] .scene{mask-image:linear-gradient(90deg,transparent 58%,#000 63%);-webkit-mask-image:linear-gradient(90deg,transparent 58%,#000 63%)}
.hero-home [data-scene=regulated] .scene-shade{background:linear-gradient(90deg,#061c2d 0%,#061c2d 28%,#061c2de8 40%,#061c2d24 67%,#061c2d00 82%)}
.hero-home [data-scene=regulated] .scene-caption{background:#061e34e8;color:var(--paper);padding:6px 9px}
@media(min-width:601px){.hero-home [data-scene=regulated] .hero-copy{max-width:min(510px,calc(48vw - var(--gutter)))}}
@media(min-width:601px) and (max-width:1100px){.hero-home [data-scene=regulated] .home-title{font-size:7.4vw}}

@media(max-width:800px){
 .cs-hero .cs-stage{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:14px;padding-block:20px 12px}
 .cs-hero .cs-copy{overflow:visible}
 .cs-hero .cs-title{font-size:clamp(34px,min(7.8vw,6.8dvh),54px);line-height:1.08;margin-block:10px}
 .cs-hero .cs-description{font-size:13px;line-height:1.5}
 .cs-hero .cs-actions{margin-top:14px}
 .cs-hero .cs-copy-window{min-height:0}
 .pvs-hero{padding-block:18px}
 .pvs-hero-grid{gap:16px;align-content:center}
 .pvs-hero .pvs-lockup{font-size:30px;margin-bottom:12px}
 .pvs-hero .pvs-lockup>img{width:40px;height:40px}
 .pvs-hero h1{font-size:clamp(34px,min(10vw,6.2dvh),47px);margin-block:8px 12px}
 .pvs-hero-lead{font-size:13px;line-height:1.45}
 .pvs-hero .pvs-actions{margin-top:14px;gap:16px}
 .pvs-hero .button{min-height:44px;font-size:12px;padding:12px 15px}
 .pvs-hero .pvs-offer{margin-top:8px;font-size:10px}
 .pvs-hero-proof{width:min(100%,calc(24dvh * 1.6));margin-inline:auto}
 .pvs-hero-proof figcaption{margin-top:8px;font-size:9px}
 .nss-hero .nss-hero-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .nss-hero-disclaimer{order:-1;margin:0;max-width:28ch;text-align:left}
 .nss-hero .nss-hero-footer{gap:12px}
 .nss-hero .nss-category{max-width:24ch}
}

@media(max-width:600px){
 .hero-home .hero-panel[data-scene] .hero-content{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0;justify-content:stretch;padding-block:20px 16px}
 .hero-home .hero-panel[data-scene] .home-title{grid-row:1;font-size:clamp(30px,min(10vw,8.7dvh),50px);line-height:1.06;margin:0}
 .hero-home .hero-copy{grid-row:3;align-self:end}
 .hero-home .hero-subtitle{font-size:clamp(25px,6.5vw,31px);line-height:1.1;margin-block:6px}
 .hero-home .hero-description{font-size:13px;line-height:1.45}
 .hero-home .hero-actions{margin-top:14px;gap:16px}
 .hero-home .hero-actions .button{min-height:44px;font-size:12px;padding:12px 14px}
 .hero-home .northstar-lockup{display:none}
 .hero-home [data-scene] :is(.scene-image,.scene-video){position:absolute;inset:auto 0 auto 0;top:var(--hero-visual-top,112px);width:100%;max-width:none;height:var(--hero-visual-height,28dvh);object-fit:cover;object-position:center;aspect-ratio:auto;transform:none!important;mask-image:linear-gradient(0deg,transparent,#000 10%,#000 90%,transparent);-webkit-mask-image:linear-gradient(0deg,transparent,#000 10%,#000 90%,transparent)}
 .hero-home [data-scene=preview] :is(.home-egg-poster,.home-egg-film){object-position:78% center}
 .hero-home [data-scene=regulated] :is(.home-official-form-poster,.home-official-form-film){object-position:left center}
 .hero-home [data-scene=regulated] .scene{mask-image:none;-webkit-mask-image:none}
 .hero-home [data-scene=knowledge] :is(.scene-image,.scene-video){object-fit:contain}
 .hero-home [data-scene] .scene-shade{background:none}
 .hero-home .hero-panel[data-scene] .eyebrow{font-size:9px;margin-bottom:6px}
 html[lang|=fr] .hero-home .hero-panel[data-scene] .home-title{line-height:1.13}
 .hero.hero-page .hero-description{font-size:14px;line-height:1.5}
 .hero.hero-page .hero-title{font-size:clamp(37px,min(11vw,8dvh),58px)}
 .hero.hero-static .hero-content{padding-bottom:84px}
 .cs-hero .cs-stage{padding-top:16px}
 .nss-hero .nss-hero-masthead .northstar-lockup{font-size:26px}
 .nss-hero .nss-hero-masthead .northstar-lockup img{width:34px;height:34px}
 .nss-hero .nss-hero-content{padding-block:16px;gap:12px}
 .nss-hero .nss-category{display:none}
 .nss-hero .nss-hero-stage{contain:layout}
 .nss-hero h1{font-size:clamp(30px,min(8.6vw,5.5dvh),42px)}
 .nss-hero .nss-hero-description{font-size:13px;line-height:1.45}
 .nss-hero .nss-offer,.nss-hero .nss-hero-billing{font-size:10px}
 .nss-hero .nss-actions{gap:8px 12px}
 .nss-hero .nss-actions .button{padding:11px 12px;gap:8px;min-height:44px}
 .nss-hero .nss-demo-link{font-size:11px}
 .nss-hero .nss-demo-link .material-symbols-outlined{display:none}
 .nss-hero-content[data-hero-carousel] .nss-hero-stage{overflow-x:hidden;overflow-y:auto}
 .nss-hero #hero-reuse{gap:12px}
 .nss-hero-mapping .nss-map-layout{height:auto;grid-template-rows:auto auto;gap:8px}
 .nss-hero-mapping .nss-map-source{padding:8px 10px;transform:none}
 .nss-hero-mapping .nss-map-intake-heading{font-size:10px;line-height:18px}
 .nss-hero-mapping .nss-map-picker{height:55px;margin-top:2px}
 .nss-hero-mapping .nss-map-source-field>[data-map-source-label]{font-size:11px;line-height:14px;min-height:14px;margin-bottom:3px}
 .nss-hero-mapping .nss-map-input{min-height:30px;padding:4px 8px}
 .nss-hero-mapping .nss-map-submit{padding:3px 8px;font-size:10px}
 .nss-hero-mapping .nss-map-source-foot{margin-top:2px}
 .nss-hero-mapping .nss-map-targets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
 .nss-hero-mapping .nss-map-target{padding:6px;min-width:0}
 .nss-hero-mapping .nss-map-target-heading{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:34px;padding-right:0;margin-bottom:4px;font-size:10px;line-height:12px}
 .nss-hero-mapping .nss-map-target-heading>span:not(.nss-map-check){font-size:8px;line-height:10px;text-align:left;flex:none}
 .nss-hero-mapping .nss-map-target-heading>.nss-map-check{right:0;width:12px;height:12px}
 .nss-hero-mapping .nss-map-doc-cell{display:block;padding:0}
 .nss-hero-mapping .nss-map-doc-cell>span:first-child{font-size:9px;line-height:11px;min-height:22px}
 .nss-hero-mapping .nss-map-target-value{font-size:12px;line-height:18px;height:26px;min-height:26px;padding:3px 4px}
 .nss-hero-slide .nss-reels{padding-top:calc(var(--nss-hero-copy-height,170px) + 12px);justify-content:flex-start}
 .nss-hero-slide .nss-reel-columns{gap:4px}
 .nss-hero-slide .nss-reel-window{height:clamp(46px,calc((var(--nss-hero-stage-height,380px) - var(--nss-hero-copy-height,170px) - 20px)/3),72px)}
 .nss-hero-slide .nss-reel-face{min-height:68px}
 .nss-hero-slide .nss-reel-face strong{font-size:25px;line-height:1.1}
 .nss-hero-slide .nss-reel-face small{font-size:10px;line-height:1.25}
 .nss-hero .nss-hero-journey{inset:calc(var(--nss-hero-copy-height,170px) + 12px) 0 0;gap:8px}
}

@media(min-height:600px){.hero-home .hero-content{overflow:hidden}}

@media(max-height:520px){
 .hero-home .hero-panel .hero-content{padding-block:14px;gap:10px}
 .hero-home .home-title{font-size:clamp(36px,9dvh,58px)}
 .hero-home .hero-subtitle{font-size:25px;margin-block:5px}
 .hero-home .hero-description{font-size:13px;line-height:1.4}
 .hero-home .northstar-lockup{display:none}
 .hero-home .hero-actions{margin-top:12px}
 .nss-hero .nss-category{display:none}
 .nss-hero .nss-hero-description{font-size:13px}
 .pvs-hero{padding-block:12px}
}
