/* W15: living hero scene in the homepage (new/?scene=1). Everything below is scoped to html.sce-on (set by embed.js),
   so the plain page, ?opt=N and ?sim=N are untouched. Left half = W07 variant a (left/left.css), UI = ui.css. */
@import url("ui.css");
@import url("left/left.css");
@import url("brand.css"); /* BRAND: partner lockup, boiler nameplate, card partner line */

html.sce-on .sce-stage{position:relative;height:var(--sce-stage,100vh);margin-bottom:var(--sce-mb,0px)}
html.sce-on .sce-hero{position:sticky;top:var(--sce-top,0px);height:var(--sce-h,100vh);overflow:hidden;
  clip-path:inset(0 0 var(--sce-clip,0px) 0 round 0 0 var(--sce-r,0px) var(--sce-r,0px))}
html.sce-on .sce-host{position:absolute;inset:0;z-index:0;background:#061a3a}

/* poster = the W07 static stage, shown until the engine has its first picture (and kept as the left side without WebGL) */
.sce-poster{position:absolute;inset:0;z-index:0;pointer-events:none;transition:opacity .5s ease,visibility 0s}
.sce-poster img{position:absolute;top:0;height:100%;width:auto;max-width:none;display:block}
.sce-poster .sce-p-sq{right:0;aspect-ratio:1}
.sce-poster .sce-p-ext{right:calc(var(--sce-sqw,100vh) * 0.875);-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
/* FB: graded left landscape (embed.js makeExt), between the picture and the effects canvas */
.sce-ext{position:absolute;left:0;top:0;width:0;height:100%;overflow:hidden;pointer-events:none;background:#061a3a;
  -webkit-mask-image:linear-gradient(90deg,#000 var(--sce-ef,90%),transparent);mask-image:linear-gradient(90deg,#000 var(--sce-ef,90%),transparent)}
.sce-ext::after{content:"";position:absolute;top:0;bottom:0;left:var(--sce-el,0px);width:var(--sce-eg,12%);z-index:5;background:linear-gradient(90deg,#061a3a,rgba(6,26,58,.55) 45%,rgba(6,26,58,0))}
.sce-ext-i{position:absolute;top:0;right:0;height:100%;width:var(--sce-ew,72%);max-width:none;display:block;user-select:none}
html.sce-on .sce-ready.sce-nogl .sce-p-ext{visibility:hidden}
.sce-band{position:absolute;left:0;right:0;top:0;height:var(--sce-oy,0px);background:#061a3a;pointer-events:none}

html.sce-on .sce-host .sc-gl{opacity:0;transition:opacity .5s ease}
html.sce-on .sce-ready .sce-host .sc-gl{opacity:1}
html.sce-on .sce-ready:not(.sce-nogl) .sce-poster{opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s .5s}
html.sce-on .sce-nogl .sc-host .sc-back{display:none}
html.sce-on .sce-nogl .sce-p-sq{visibility:hidden}

/* left scrim (W07 gradients) lives inside the host, under the scene UI; the text sits above everything */
html.sce-on .sce-scrim{z-index:2;opacity:var(--sce-g,1);will-change:opacity}
/* FB: the W07 scrim's top band darkened the whole sky (navy at noon, R2 P0-3): the scene scrim keeps only the left and
   bottom gradients; the top shade under the menu follows the night (--sce-sh from embed.js) and the menu gets a text shadow */
html.sce-on .sce-hero .sce-scrim{background:
    radial-gradient(52% 56% at 17% 58%, rgba(6,26,58,.72) 0%, rgba(6,26,58,.38) 55%, rgba(6,26,58,0) 100%),
    linear-gradient(90deg, rgba(6,26,58,.62) 0%, rgba(6,26,58,.46) 20%, rgba(6,26,58,.16) 33%, rgba(6,26,58,.03) 42%, rgba(6,26,58,0) 47%),
    linear-gradient(180deg, rgba(6,26,58,0) 72%, rgba(6,26,58,.55) 100%)}
.sce-shade{position:absolute;left:0;right:0;top:0;height:140px;z-index:2;pointer-events:none;opacity:var(--sce-sh,1);background:linear-gradient(rgba(6,26,58,.5),rgba(6,26,58,.2) 50%,rgba(6,26,58,0))}
@media (min-width:1021px){ html.sce-on body.sce-over .site-header .nav-group a{text-shadow:0 1px 2px rgba(6,26,58,calc(.55 * (1 - min(1, var(--sce-hw,0) * 2.2)))),0 0 12px rgba(6,26,58,calc(.35 * (1 - min(1, var(--sce-hw,0) * 2.2))))} }
html.sce-on .sce-copy{position:relative;z-index:5;pointer-events:none;opacity:var(--sce-co,1);transform:translate3d(var(--sce-cx,0px),0,0);will-change:opacity,transform}
html.sce-on .sce-copy > *{pointer-events:auto}
html.sce-on .sce-gone .sce-copy{visibility:hidden}

/* scene UI: in the right half at first, slides to the bottom-left while the scene grows, follows the lowered edge */
html.sce-wide .sce-host .scu-bar,html.sce-still .sce-host .scu-bar{transform:translate3d(var(--sce-bx,0px),calc(-1 * var(--sce-clip,0px)),0);will-change:transform}
html.sce-wide .sce-host .sc-ui:not(.scu-full) .scu-bar,html.sce-still .sce-host .sc-ui:not(.scu-full) .scu-bar{right:auto;width:var(--sce-sqw,50%)}
html.sce-wide .sce-host .scu-scrim,html.sce-still .sce-host .scu-scrim{transform:translate3d(0,calc(-1 * var(--sce-clip,0px)),0)}

/* SCROLL: no layout switch in the lowered block any more (it popped at l = 0.5). The full-state bar is already one
   compact row: fixed track width, wrap only when the screen is too narrow (same at every scroll position). */
html.sce-wide .sce-host .scu-bar{opacity:var(--sce-bo,1)}
html.sce-wide .sce-host .scu-full .scu-bar{max-width:min(760px,calc(100% - 48px))}
html.sce-wide .sce-host .scu-full .scu-ctl{flex-wrap:wrap;row-gap:8px}
html.sce-wide .sce-host .scu-full .scu-track{flex:0 0 300px;width:300px}
html.sce-wide .sce-host .scu-full .scu-key{margin-left:6px}
/* SCROLL: lowered block = the caption shrinks to 82 % with the lowering (transform only, anchored bottom-left above the controls) */
html.sce-wide .sce-host .scu-full .scu-cap{transform:scale(calc(1 - .18 * var(--sce-l,0)));transform-origin:0 100%}
/* SCROLL: half (bottom band) and full (corner glow) scrims are both always there and cross-fade with --sce-u */
html.sce-wide .sce-host .scu-scrim,html.sce-wide .sce-host .scu-full .scu-scrim{left:0;right:0;width:auto;height:42%;background:none}
html.sce-wide .sce-host .scu-scrim::before,html.sce-wide .sce-host .scu-scrim::after{content:"";position:absolute;left:0;bottom:0;pointer-events:none}
html.sce-wide .sce-host .scu-scrim::before{right:0;height:61.9%;opacity:calc(1 - var(--sce-u,0));
  background:linear-gradient(to top,rgba(6,26,58,.72),rgba(6,26,58,.42) 45%,rgba(6,26,58,0))}
html.sce-wide .sce-host .scu-scrim::after{top:0;width:min(760px,70%);opacity:var(--sce-u,0);
  background:radial-gradient(110% 100% at 0 100%,rgba(6,26,58,.78),rgba(6,26,58,.35) 50%,rgba(6,26,58,0) 72%)}
/* SCROLL: tags grow into their full look (state word, size) instead of popping at the switch */
html.sce-wide .sce-host .scu-tag{transition:opacity 1.5s cubic-bezier(.4,0,.2,1),background-color .2s,border-color .2s,height .5s ease,padding .5s ease,font-size .5s ease,border-radius .5s ease}
html.sce-wide .sce-host .scu-word{display:inline-block;max-width:0;opacity:0;overflow:hidden;vertical-align:top;transition:max-width .6s ease,opacity .6s ease}
html.sce-wide .sce-host .scu-full .scu-word{max-width:12em;opacity:.82}
/* SCROLL: next sections ride on the lowering block's bottom edge (embed.js sets --sce-tf only while lowering) */
html.sce-wide .sce-stage ~ section,html.sce-wide .sce-stage ~ footer{transform:translateY(var(--sce-tf,0px))}

/* fixed header stays transparent while it is over the scene */
@media (min-width:1021px){
  /* SCROLL: white arrives with --sce-hw (end of the lowering), then the page's own .scrolled style takes over */
  /* white sheet wipes down from the top edge (no grey half-transparent state); link colour turns as the edge passes them */
  html.sce-on body.sce-over .site-header.scrolled{background:linear-gradient(#fff,#fff) 0 0/100% calc(var(--sce-hw,0) * 100%) no-repeat rgba(6,26,58,var(--sce-hn,0));box-shadow:0 2px 14px rgba(0,0,0,calc(.08 * var(--sce-hw,0)));transition:none}
  html.sce-on body.sce-over .site-header.scrolled .nav-group a{color:color-mix(in srgb,var(--ink-2,#1d2a3f) clamp(0%,calc((var(--sce-hw,0) - .42) * 625%),100%),#fff);transition:none}
  html.sce-on body.sce-over .site-header.scrolled .nav-group a:hover{color:#fff;opacity:.7}
}

/* reduced motion: no pinning, the hero is one still panorama */
html.sce-still .sce-stage{height:auto;margin-bottom:0}
html.sce-still .sce-hero{position:relative;top:0}
html.sce-still.sce-on .sce-hero{margin-top:var(--sce-top,0px)}

/* phone: text, then the whole square, then caption and controls below it (PLAN_UX 6) */
@media (max-width:767px){
  html.sce-on .sce-stage{height:auto;margin-bottom:0}
  html.sce-on .sce-hero{position:relative;top:auto;height:auto;clip-path:none;display:flex;flex-direction:column}
  html.sce-on .sce-host{position:relative;inset:auto;order:2;width:100%;height:auto;aspect-ratio:1}
  html.sce-on .sce-copy{order:1;opacity:1;transform:none;will-change:auto}
  .sce-poster .sce-p-ext,.sce-shade{display:none}
  .sce-poster .sce-p-sq{width:100%;height:100%}
}
@media (min-width:768px){ .sce-dock{display:none} }

/* FB: tablet-like widths (html.sce-tab, set by embed.js when the copy would cover the boiler house): the copy sits in a
   navy band above the stage, headline + buttons left, lead right; the scene below keeps its framing */
html.sce-tab .sce-top{height:auto;overflow:visible;background:#061a3a}
html.sce-tab .sce-top .sce-copy{height:auto;max-width:none;opacity:1;transform:none;will-change:auto;
  padding:calc(var(--sce-hh,80px) + 32px) var(--scl-x) 44px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  grid-template-areas:"eb lead" "h1 lead" "cta lead";column-gap:clamp(28px,4vw,56px);align-items:start;align-content:start}
html.sce-tab .sce-top .scl-eyebrow{grid-area:eb}
html.sce-tab .sce-top .scl-h1{grid-area:h1;font-size:clamp(34px,3.9vw,44px);margin-top:18px}
html.sce-tab .sce-top .scl-lead{grid-area:lead;align-self:center;margin:0;font-size:16px;line-height:1.6;max-width:none}
html.sce-tab .sce-top .scl-ctas{grid-area:cta;margin-top:28px}
html.sce-tab .sce-scrim{display:none}

/* 24.11 owner: centre of the hero was too dark; the scrim is lighter now, so the copy carries its own soft shadow */
@media (min-width:1021px){ html.sce-on .sce-hero .sce-copy{text-shadow:0 1px 2px rgba(6,26,58,.5),0 0 20px rgba(6,26,58,.5)} html.sce-on .sce-hero .sce-copy a{text-shadow:none} }
