/* Sky title heroes for the sub-pages (The System and Coaching).
   The Home hero's sky and type in a shorter hero: headline, one sand line, two buttons, then the page's own picture.
   Markup comes from source/subheroes.py. The picture's rules live with the page (system/system.css).
   --s is the unit the picture is sized in: 1px on a 1440 screen, smaller on narrower screens, a little larger on wide ones. */
.sy-hero{--s:clamp(.5px,calc(.0694*var(--vw)),1.15px);padding:124px 32px 104px;
  background:
    radial-gradient(70% 24% at 50% 100%,rgba(226,200,154,.5),transparent 72%),
    linear-gradient(180deg,#14284b 0%,#1b4487 13%,#2569c2 32%,#3c84d6 56%,#5fa3e6 76%,#a9d2f5 91%,#f6fafe 100%)}
.sy-hero .a-copy{max-width:860px}
.sy-hero h1{font-size:clamp(34px,calc(3.75*var(--vw)),54px);text-wrap:balance}
.sy-hero .a-sub{margin-top:14px}
.sy-hero .a-btns{margin-top:26px}

/* the high wisp: the same scroll motion as Home (Home/home.css, "Clouds"); the cloud pictures are in a.css */
.sy-hero .a-sky .cls{position:absolute;inset:0;pointer-events:none}
.sy-hero .cls--far{--k:.22}
.sy-hero .cls--wisp{opacity:.6}
.sy-hero .cl{position:absolute;left:var(--x);top:var(--y);width:calc(var(--w)*var(--vw));aspect-ratio:var(--ar);translate:-50% -50%;display:block}
.sy-hero .cl svg{display:block;width:100%;height:100%;overflow:visible}
@keyframes sy-sink{to{transform:translate3d(0,calc(var(--k)*900px),0)}}
@media(prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    .sy-hero .a-sky .cls{animation:sy-sink linear both;animation-timeline:scroll(root);animation-range:0px 900px}
  }
}

/* the "4,000+ agents taught" pill, as on Home */
.sy-proof{position:relative;z-index:6;display:flex;justify-content:center;margin-top:calc(var(--s)*34)}
.sy-proof .avatars{padding:6px 16px 6px 8px;border-radius:999px;background:#fff;box-shadow:0 14px 28px rgba(12,32,70,.3)}
.sy-proof .avatars p{color:var(--navy-950);font-size:13.5px;white-space:nowrap}
.sy-proof .av{width:30px;height:30px}
.sy-proof .av:first-child{margin-left:0}

/* Tablet and phone: the wisp moves up beside the menu button, clear of the headline */
@media (max-width:1100px){ .sy-hero .cl{left:var(--px);top:var(--py);width:calc(var(--pw)*var(--vw))} }
@media (max-width:760px){
  .sy-hero{padding:104px 16px 86px}
  .sy-hero h1{font-size:32px;letter-spacing:-.5px}
  .sy-hero .a-sub{font-size:20px}
  .sy-hero .a-btns{margin-top:22px;gap:10px}
  .sy-hero .a-btns .btn{padding:13px 16px}
  .sy-proof{margin-top:28px}
}

/* The shared sky ending: agent stories, a quiet stretch of the same sky, the keys and the closing line, then the
   clouds rise into the white footer. One sky from dark at the top to light at the bottom. Markup: source/subheroes.py sky_end(). */
.se{position:relative;isolation:isolate;overflow:hidden;color:#fff;padding:96px 32px 0}
.se>.fl-cl{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
.se>.a-grain{z-index:-1;opacity:.16}
.se .se-stories{background:none;max-width:1240px;margin:0 auto;border-radius:0;overflow:visible}
.se-close{position:relative;z-index:1;max-width:680px;margin:0 auto;padding:220px 0 250px;text-align:center}
.se-keys{display:block;width:150px;height:auto;margin:0 auto 18px}
.se-close h2{font:800 clamp(34px,calc(3.6*var(--vw)),52px)/1.08 var(--font-display);letter-spacing:-.8px;margin:0 0 16px;text-wrap:balance;text-shadow:0 2px 30px rgba(12,32,70,.3)}
.se-close p{font-size:18px;line-height:1.6;color:#eef4fb;margin:0 0 28px}
.se-close .btn--main{background:#fff;color:var(--navy-900);box-shadow:0 0 0 3px var(--sand),0 18px 30px rgba(12,32,70,.3)}
.se>.se-bank{z-index:0}
@media (max-width:760px){
  .se{padding:64px 16px 0}
  .se-close{padding:130px 0 180px}
  .se-keys{width:110px;margin-bottom:12px}
}
/* the closing clouds: the same picture as Home's (a.css, Cloud pictures) */
.se{background:radial-gradient(85% var(--warm,20%) at 50% 100%,rgba(232,196,132,1),rgba(226,200,154,.5) 50%,transparent 76%),
    linear-gradient(180deg,#0b1420 0%,#111c2b 12%,#172a46 26%,#22467a 44%,#356aaa 62%,#5a90cc 78%,#a7c2de 91%,#f0dcb4 100%)}

/* Agent stories in the sky ending: more room above and below, a small label, a soft light behind the stack */
.se{padding-top:150px}
.se .se-stories{padding:0 0 30px}
.se .se-stories h2{font-size:clamp(36px,calc(3.8*var(--vw)),54px);margin-bottom:14px}
.se-sub{margin:0 auto 54px;max-width:560px;font-size:17px;line-height:1.6;color:#c9d6e6}
.se .se-stories .stack{position:relative;isolation:isolate}
@media (min-width:901px){
  .se .se-stories .stack{max-width:1120px;grid-template-columns:1.45fr 1fr;gap:56px}
  .se .se-stories .stack-cards{margin:5% 12% 0 8%}
}
.se-box{position:relative;max-width:1120px;margin:0 auto}
/* a white 3D speech bubble floats over the top corner; the faces of the three agents sit above the name */
.se-bubble{position:absolute;z-index:3;right:2%;top:-30px;width:150px;rotate:6deg;filter:drop-shadow(0 18px 26px rgba(3,8,20,.4));animation:a-bob 9s ease-in-out infinite;animation-delay:-3s;pointer-events:none}
.se-bubble img{display:block;width:100%;height:auto}
.se-bubble b{position:absolute;left:0;right:0;top:34%;text-align:center;font:800 100px/1 var(--font-display);color:var(--sand)}
.se .stack-faces{display:flex}
.se .stack-faces button{width:60px;height:60px}
.se .stack-faces button{box-shadow:0 0 0 2px rgba(255,255,255,.6),0 6px 14px rgba(3,8,20,.35)}
.se .stack-faces button.on{box-shadow:0 0 0 3px var(--sand),0 6px 14px rgba(3,8,20,.35)}
.se-rvrow{display:flex;justify-content:center;margin:34px 0 0}
/* the warm light behind the video stack: a bright core inside a wide, soft halo */
.se .se-stories .stack::before{content:"";position:absolute;left:-20%;top:-32%;width:100%;height:164%;z-index:-1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(244,212,160,.5),rgba(236,204,150,.36) 46%,rgba(226,190,140,.12) 74%,rgba(226,190,140,0))}
@media (max-width:900px){
  .se .se-stories .stack-cards{margin:8% 20% 0 17%}
  .se .se-stories .stack::before{left:-20%;top:-14%;width:140%;height:76%}
}
/* more sky below the button, so more of the warm glow shows before the clouds (--warm: the glow's height, a share of the whole ending) */
.se-close{padding-top:300px;padding-bottom:410px}
@media (max-width:760px){
  .se{padding-top:90px;--warm:16%}
  .se-close{padding-bottom:260px}
  .se-bubble{width:90px;right:-6px;top:-22px}
  .se-bubble b{font-size:64px}
  .se-sub{margin-bottom:34px;font-size:16px}
  .se-close{padding-top:170px}
}

/* Written testimonials under the video stories: three glass cards, each a Google review labeled as one */
.se-quotes{text-align:left}
.se .qs{margin-top:26px}
.se-q{position:relative;display:flex;flex-direction:column;margin:0;padding:24px 24px 22px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.05));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 24px 50px rgba(3,8,20,.25);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.se .qs-btn{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),0 8px 18px rgba(3,8,20,.25);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.se .qs-btn:hover{background:#fff;color:var(--navy-900)}
.se .qs-dots i{background:rgba(255,255,255,.35)}
.se .qs-dots i.on{background:var(--sand)}
.se-qtop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
.se-qtag{font:600 10px/1.3 var(--font-sans);letter-spacing:1px;text-transform:uppercase;color:#c9d6e6}
.se-q blockquote{position:relative;flex:1;margin:14px 0 16px;padding:0}
.se-qmark{display:block;font:800 54px/.6 var(--font-display);color:var(--sand);height:26px}
.se-q blockquote p{margin:0;font:400 15.5px/1.6 var(--font-sans);color:#fff}
.se-q figcaption{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.4;color:#c9d6e6}
.se-q .q-init{background:var(--sand);color:var(--navy-950);box-shadow:none}
.se-q figcaption b{display:block;color:#fff;font-size:14.5px}
/* the clouds run straight into the white footer, with no line between */
.se~.ft{border-top:0}

/* The cloud bank above the footer: 40% of it sits below the section's edge (a.css, .cb--close), so it pokes up less and more
   of the warm horizon shows; as the end of the page comes into view it rises from lower down into that place.
   overflow:clip (not hidden) keeps the page itself as the scroll box the rise follows. */
.se{overflow:clip}
@keyframes se-bank-rise{from{transform:translateY(80%)}to{transform:translateY(40%)}}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .se>.se-bank{animation:se-bank-rise linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
  }
}
/* the last strip fades to the footer's white, so the lowered bank meets it with no line */
.se::after{content:"";position:absolute;left:0;right:0;bottom:0;height:64px;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 80%)}
