/* Interactive hero (hero-fx.js), used by the homepage and the hero lab page:
   the canvas stage behind the hero text, the full-bleed pinned hero and, on the
   lab page only, the floating option switcher. */
.hl-stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hl-stage canvas { display: block; }
.hl-caption {
  position: absolute; left: 28px; bottom: 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(127, 174, 240, .75);
}

.hl-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9000;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 24px); box-sizing: border-box;
  padding: 7px 8px 7px 14px; border-radius: 999px;
  background: rgba(5, 16, 46, .92); border: 1px solid rgba(127, 174, 240, .25);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}
.hl-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #7FAEF0; margin-right: 6px;
}
.hl-bar button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 999px; padding: 8px 13px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .78);
  font: 600 13px/1 inherit; font-family: inherit;
  transition: background .18s ease, color .18s ease;
}
.hl-bar button b {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 10.5px; background: rgba(255, 255, 255, .12); color: #fff;
}
.hl-bar button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hl-bar button[aria-pressed="true"] { background: #fff; color: #09193E; }
.hl-bar button[aria-pressed="true"] b { background: #1A4F9C; color: #fff; }
.hl-note { font-size: 12px; color: rgba(255, 255, 255, .5); padding: 0 10px 0 4px; }
@media (max-width: 760px) {
  .hl-note { display: none; }
  .hl-bar { border-radius: 18px; padding: 8px; width: calc(100vw - 24px); gap: 4px; }
  .hl-tag { width: 100%; text-align: center; margin: 0 0 2px; }
  .hl-bar button { padding: 7px 10px; font-size: 12px; }
}

/* Full-bleed hero: edge to edge and the full height of the screen, no white
   frame around it; the transparent header sits flush on top. */
x-dc > div:has(> #top) { padding: 0 !important; }
#top { border-radius: 0 !important; min-height: 100vh !important; min-height: 100svh !important; }
.velo-header--hero:not(.is-scrolled) { top: 0 !important; left: 0 !important; right: 0 !important; }

/* Fusion: the hero stays pinned while the page scrolls through an extra
   280vh, which drives the gather-into-the-V animation. */
html.hl-fusion x-dc > div:has(> #top) { height: 380vh; }
html.hl-fusion #top { position: sticky !important; top: 0; height: 100vh; height: 100svh; }
#top[data-hl="network"], #top[data-hl="fusion"] { cursor: crosshair; }
/* overflow-x:hidden on html/body (mobile-polish.css) makes body a scroll
   container and breaks the sticky pin; clip hides the overflow the same way
   without that. */
html.hl-fusion, html.hl-fusion body { overflow-x: clip !important; }

.hl-scroll-cue{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:0;right:0;z-index:5;display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;font:400 13px/1.4 'Hanken Grotesk',sans-serif;letter-spacing:.025em;pointer-events:none;animation:hl-cue-in .5s 2.4s both}
.hl-scroll-cue::after{content:'';width:1px;height:22px;background:linear-gradient(#fff,rgba(255,255,255,.15))}
.hl-scroll-cue[hidden]{display:none}
@keyframes hl-cue-in{from{opacity:0}to{opacity:.85}}
@media(prefers-reduced-motion:reduce){.hl-scroll-cue{animation:none}}

/* Calm load. The page's section fade-in (.v-rise) must not touch the hero:
   it is visible from the first paint (dark), and only its contents ease in,
   the network slowly and the text a moment later. No flash, no jump between
   light and dark. */
#top.v-rise { opacity: 1 !important; transition: none !important; transform: none !important; }
@media (prefers-reduced-motion: no-preference) {
  #top .hl-stage { animation: hl-fade-in 2.4s ease-out backwards; }
  #top > div:has(> h1) { animation: hl-rise-in 1.4s .35s cubic-bezier(.22, .61, .36, 1) backwards; }
}
@keyframes hl-fade-in { from { opacity: 0; } }
@keyframes hl-rise-in { from { opacity: 0; transform: translateY(10px); } }

/* Text arrangements per layout (#top[data-layout], set by hero-fx.js). The
   headline's phrases are .hl-ph spans with .hl-sep dots between them. */
#top h1 .hl-ph { white-space: nowrap; }
#top[data-layout="calm"] h1 { font-size: clamp(36px, 5vw, 76px) !important; line-height: 1.04 !important; max-width: none !important; margin-bottom: 26px !important; }
#top[data-layout="calm"] h1 .hl-ph { display: block; }
#top[data-layout="calm"] h1 .hl-sep { display: none; }
#top[data-layout="calm"] .vh-hero-who { display: none; }
#top[data-layout="spotlight"] .vh-hero-who { display: none; }
@media (min-width: 761px) {
  /* Split: a left text column, the galaxy on the right. */
  #top[data-layout="split"] > div:has(> h1) {
    align-items: flex-start !important; text-align: left !important;
    padding-left: clamp(28px, 7vw, 128px) !important; padding-right: 50% !important;
  }
  #top[data-layout="split"] h1 { font-size: clamp(38px, 4.6vw, 72px) !important; line-height: 1.03 !important; max-width: none !important; margin-bottom: 24px !important; }
  #top[data-layout="split"] h1 .hl-ph { display: block; }
  #top[data-layout="split"] h1 .hl-sep { display: none; }
  #top[data-layout="split"] h1 + div { max-width: 33rem !important; }
  #top[data-layout="split"] .vh-hero-cta { justify-content: flex-start !important; }
  /* Editorial: big stacked headline bottom-left, the rest beside it. */
  #top[data-layout="editorial"] > div:has(> h1) {
    display: grid !important; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 6vw; align-content: end !important; align-items: end !important;
    text-align: left !important;
    padding: 0 clamp(28px, 6vw, 110px) clamp(70px, 11vh, 120px) !important;
  }
  #top[data-layout="editorial"] h1 { grid-column: 1; grid-row: 1 / span 3; align-self: end; font-size: clamp(44px, 5.8vw, 96px) !important; line-height: .98 !important; margin: 0 !important; max-width: none !important; }
  #top[data-layout="editorial"] h1 .hl-ph { display: block; }
  #top[data-layout="editorial"] h1 .hl-sep { display: none; }
  #top[data-layout="editorial"] h1 + div { grid-column: 2; grid-row: 1; margin: 0 0 16px !important; max-width: 30rem !important; font-size: 16px !important; }
  #top[data-layout="editorial"] .vh-hero-who { grid-column: 2; grid-row: 2; justify-self: start; margin-bottom: 18px !important; }
  #top[data-layout="editorial"] .vh-hero-cta { grid-column: 2; grid-row: 3; justify-content: flex-start !important; margin: 0 !important; }
}
/* Phones: the three phrases always stack, so no line starts with a dot. */
@media (max-width: 760px) {
  #top h1 .hl-ph { display: block; }
  #top h1 .hl-sep { display: none; }
}
