/* Hero, variant 2: the flight over Earth in two tones (powder blue to lavender white), coloured light drifting over
   it, a soft veil under the words, film grain, and a long fade into the page. */
body.hm, :root[data-theme] body.hm { background: var(--canvas); }
.hm .hero > .container { z-index: 2; }
.hv { position: absolute; z-index: 0; top: -74px; left: calc(50% - var(--hm-vw, 100vw) / 2); width: var(--hm-vw, 100vw); height: calc(var(--hm-vw, 100vw) * .5625); overflow: hidden; pointer-events: none; background: #b4d2e6;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, .9) 70%, rgba(0, 0, 0, .58) 82%, rgba(0, 0, 0, .2) 93%, transparent); mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, .9) 70%, rgba(0, 0, 0, .58) 82%, rgba(0, 0, 0, .2) 93%, transparent); }
.hv > * { position: absolute; inset: 0; display: block; }
.hv-film { inset: 0; will-change: transform; }
.hv-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; background: url(space-light.jpg) 50% 0 / cover; }
/* drifting light */
.hv-hue { border-radius: 50%; filter: blur(50px); will-change: transform; }
.hv-hue.is-a { inset: 34% auto auto -14%; width: 62%; height: 62%; background: radial-gradient(closest-side, rgba(206, 220, 250, .24), rgba(190, 208, 248, 0)); animation: hv-drift 22s ease-in-out infinite alternate; }
.hv-hue.is-b { inset: 26% -16% auto auto; width: 58%; height: 66%; background: radial-gradient(closest-side, rgba(224, 236, 252, .12), rgba(214, 228, 250, 0)); animation: hv-drift 27s ease-in-out infinite alternate-reverse; }
.hv-hue.is-c { inset: -24% auto auto 46%; width: 60%; height: 62%; background: radial-gradient(closest-side, rgba(150, 214, 255, .22), rgba(150, 214, 255, 0)); animation: hv-drift 19s ease-in-out infinite alternate; }
@keyframes hv-drift { from { transform: translate3d(-5%, -4%, 0) scale(.94); } to { transform: translate3d(7%, 6%, 0) scale(1.1); } }
/* the words sit on mist; the edges stay clear */
.hv-veil { background: radial-gradient(40% 36% at 50% 36%, rgba(250, 252, 255, .60) 0%, rgba(250, 252, 255, .42) 46%, rgba(250, 251, 255, 0) 100%), linear-gradient(180deg, rgba(246, 250, 255, .12) 0%, rgba(246, 250, 255, 0) 26%, rgba(252, 252, 252, 0) 60%, rgba(252, 252, 252, .3) 100%); }
.hv-grain { inset: -110px !important; background: url(grain.png) 0 0 / 220px; opacity: .34; mix-blend-mode: overlay; animation: hv-grain 1s steps(1) infinite; }
@keyframes hv-grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-70px, 40px); } 34% { transform: translate(50px, -90px); } 51% { transform: translate(-30px, -50px); } 68% { transform: translate(90px, 70px); } 85% { transform: translate(-90px, 20px); } }

/* type and controls tuned to the blue ground */
:root[data-theme="light"] .hm .hero h1 { color: #35104f; }
:root[data-theme="light"] .hm .hero .hm-glow { background-image: linear-gradient(95deg, #4f1ca3 0%, #7a2bc2 52%, #a02fb0 100%); filter: none; }
:root[data-theme="light"] .hm .hero .lede { color: #2d1c40; }
.hm .hero > .container > .cta-row::before { display: none; }
:root[data-theme="light"] .hm main .hero .cta-row.has-glider[data-active] .btn { border-color: rgba(255, 255, 255, .85); }
:root[data-theme="light"] .hm main .hero .cta-row.has-glider[data-active="primary"] .btn-ghost, :root[data-theme="light"] .hm main .hero .cta-row.has-glider[data-active="ghost"] .btn-primary { background-color: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hm .p2-agent::after { opacity: .75; }
:root[data-theme="light"] .hm .p2-room { background: rgba(253, 253, 255, .74); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }

:root[data-theme="dark"] .hv { background: #12061a; }
:root[data-theme="dark"] .hv-video { background-image: url(space-dark.jpg); }
:root[data-theme="dark"] .hv-hue { opacity: .34; mix-blend-mode: screen; }
:root[data-theme="dark"] .hv-veil { background: radial-gradient(54% 48% at 50% 38%, rgba(14, 8, 30, .58), rgba(14, 8, 30, .34) 55%, rgba(18, 6, 26, 0)), linear-gradient(180deg, rgba(18, 6, 26, .18), rgba(18, 6, 26, 0) 40%, rgba(18, 6, 26, .55)); }
:root[data-theme="dark"] .hv-grain { opacity: .30; }

@media (max-width: 640px) {
  .hv { height: 600px; }
  .hv-video { object-position: 56% 0; background-position: 56% 0; }
  .hv-veil { background: radial-gradient(96% 36% at 50% 37%, rgba(250, 252, 255, .66) 0%, rgba(250, 252, 255, .48) 50%, rgba(250, 251, 255, 0) 100%), linear-gradient(180deg, rgba(246, 250, 255, .1), rgba(246, 250, 255, 0) 30%, rgba(252, 252, 252, .3)); }
  :root[data-theme="dark"] .hv-veil { background: radial-gradient(96% 44% at 50% 37%, rgba(18, 6, 26, .74), rgba(18, 6, 26, .44) 55%, rgba(18, 6, 26, 0)), linear-gradient(180deg, rgba(18, 6, 26, .30), rgba(18, 6, 26, .78)); }
  .hv-hue { filter: blur(34px); }
  .hm .p2-layout-chat .p2-tile:nth-child(3) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .hv-hue, .hv-grain { animation: none; } }
@media (max-width: 760px) { .hm .p2-layout-chat .p2-tile:nth-child(3) { grid-column: 1 / -1; } }
@media (min-width: 761px) and (max-width: 1000px) { .hm .p2-layout-chat .p2-tile:nth-child(3) { grid-column: auto; } }
/* Here the film ends behind the buttons, so the light one needs an edge of its own. */
@media (max-width: 1000px) { :root[data-theme="light"] .hm main .hero .cta-row.has-glider[data-active] .btn-ghost { border-color: rgba(60, 140, 210, .30); } }
