/* Kept for reuse in another section (see snippets/bottom-glow.html). Not used in the hero any more.
   Hero bottom glow: aurora blobs that drift on their own. */

.hero-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 100%);
}

.hero-glow__blob {
  position: absolute;
  bottom: -35%;
  width: 55%;
  height: 95%;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}

.hero-glow__blob--gold {
  left: -8%;
  background: radial-gradient(closest-side, rgba(227, 185, 92, 0.95), transparent);
  animation: hero-glow-a 14s ease-in-out infinite alternate;
}

.hero-glow__blob--green {
  left: 28%;
  background: radial-gradient(closest-side, rgba(47, 212, 155, 0.75), transparent);
  animation: hero-glow-b 18s ease-in-out infinite alternate;
}

.hero-glow__blob--blue {
  right: -8%;
  background: radial-gradient(closest-side, rgba(120, 150, 255, 0.6), transparent);
  animation: hero-glow-c 16s ease-in-out infinite alternate;
}

@keyframes hero-glow-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18%, -8%, 0) scale(1.15); }
}

@keyframes hero-glow-b {
  from { transform: translate3d(-12%, 4%, 0) scale(1.1); }
  to { transform: translate3d(14%, -10%, 0) scale(0.95); }
}

@keyframes hero-glow-c {
  from { transform: translate3d(0, -6%, 0) scale(0.95); }
  to { transform: translate3d(-20%, 6%, 0) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow__blob {
    animation: none;
  }
}

/* Slowly scrolling pill column (Approach, "Ready to staff the role?"). Two identical sets, so moving by 50% loops with no jump. */
.pill-marquee { animation: pill-scroll 36s linear infinite; will-change: transform; }
.pill-marquee:hover { animation-play-state: paused; }
@keyframes pill-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .pill-marquee { animation: none; } }

/* "Trusted by" logo strip: two identical sets, so moving by 50% loops with no jump. */
.logo-marquee { animation: logo-scroll 96s linear infinite; will-change: transform; }
.logo-marquee:hover { animation-play-state: paused; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee { animation: none; } }

/* Services tabs: the shown panel fades and slides in. */
.svc-panel-in { animation: svc-in 0.45s ease both; }
@keyframes svc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-panel-in { animation: none; } }

/* Navbar: a flat white bar across the top (no radius). After the first scroll it shrinks into a rounded white pill. */
#site-header { padding: 0; transition: padding 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
#site-nav {
  height: 76px; max-width: 100%; border-radius: 0; background-color: #fff;
  border: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding-left: 4rem; padding-right: 4rem;
  transition: max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#site-nav nav { transition: gap 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
#site-nav > div.hidden a { transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
#site-logo img { height: 3.25rem; transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
#site-header[data-scrolled] { padding: 0.75rem 1rem 0; }
#site-header[data-scrolled] #site-nav {
  max-width: 1000px; height: 58px; border-radius: 1.8rem; padding-left: 1.5rem; padding-right: 0.375rem;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5);
}
#site-header[data-scrolled] #site-nav nav { gap: 1.25rem; }
#site-header[data-scrolled] #site-nav > div.hidden a { height: 2.75rem; }
#site-header[data-scrolled] #site-logo img { height: 2.5rem; }
section[id] { scroll-margin-top: 5rem; }
@media (max-width: 1023px) {
  #site-nav { height: 64px; padding-left: 1rem; padding-right: 0.75rem; }
  #site-header[data-scrolled] #site-nav { height: 56px; }
  #site-logo img { height: 2.75rem; }
  #site-header[data-scrolled] #site-logo img { height: 2.25rem; }
}

/* Hero on desktop: nothing is removed on short screens (browser zoom 125%+). The heading follows the window height,
   and the whole video card (with its text) scales down a little, so the hero always fits one screen. */
@media (min-width: 1024px) {
  #hero h1 { font-size: clamp(2.5rem, min(7vw, 100px, (100vh - 534px) / 2.1), 100px); }
}
@media (min-width: 1024px) and (max-height: 860px) {
  #hero h1 { font-size: clamp(2.5rem, min(5.9vw, 90px), 90px); }
  #hero .hero-video { scale: 0.72; transform-origin: bottom right; }
  #hero .hero-lead { max-width: min(48rem, calc(100vw - 42rem)); }
}
@media (min-width: 1024px) and (max-height: 640px) {
  #hero .hero-video { scale: 0.62; }
  #hero h1 { font-size: clamp(2.25rem, min(5.2vw, 68px), 85px); }
}
