/* BlueSky homepage hero: full-height dark section, copy on the left, three.js orbit scene behind it.
   Markup: Views/Home/Index.cshtml (#bs-hero). Scene: /assets/js/bluesky-hero.js */
.bs-hero {
  --bs-hero-night: #030a1c;
  --bs-hero-ink: #e9eef9;
  --bs-hero-mute: #a3b1cf;
  --bs-hero-brass: #f2cf9a;
  --bs-hero-line: rgba(147, 163, 196, 0.28);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bs-hero-night);
  color: var(--bs-hero-ink);
}
.bs-hero__still,
.bs-hero__canvas,
.bs-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Fallback shown until WebGL starts, and kept if it can't: a soft blue glow where the scene sits. */
.bs-hero__still {
  z-index: 0;
  background:
    radial-gradient(ellipse 45% 55% at 70% 50%, rgba(46, 125, 255, 0.35), rgba(3, 10, 28, 0) 70%),
    var(--bs-hero-night);
}
.bs-hero__canvas {
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bs-hero__canvas.is-live { opacity: 1; }
.bs-hero__veil {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 28, 0.92) 0%, rgba(3, 10, 28, 0.7) 32%, rgba(3, 10, 28, 0) 62%),
    linear-gradient(0deg, rgba(3, 10, 28, 0.9) 0%, rgba(3, 10, 28, 0) 28%);
}
.bs-hero__copy {
  position: relative;
  width: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 120px;   /* clears the transparent site header */
  padding-bottom: 96px;
}
.bs-hero__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bs-hero-brass);
}
.bs-hero__title {
  margin: 0;
  max-width: 11.5ch;
  font-weight: 300;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--bs-hero-ink);
  text-wrap: balance;
}
.bs-hero__title b { font-weight: 700; color: #fff; }
.bs-hero__lede {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--bs-hero-mute);
}
.bs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bs-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.bs-hero__btn--primary { background: var(--bs-hero-ink); color: var(--bs-hero-night); }
.bs-hero__btn--primary:hover { background: #fff; color: var(--bs-hero-night); }
.bs-hero__btn--ghost { color: var(--bs-hero-ink); border: 1px solid var(--bs-hero-line); }
.bs-hero__btn--ghost:hover { color: #fff; border-color: var(--bs-hero-mute); }
.bs-hero__btn:focus-visible { outline: 2px solid #4fa8ff; outline-offset: 3px; }

@media (max-width: 760px) {
  .bs-hero { align-items: flex-end; min-height: 760px; }
  .bs-hero__veil { background: linear-gradient(0deg, rgba(3, 10, 28, 0.96) 0%, rgba(3, 10, 28, 0.85) 42%, rgba(3, 10, 28, 0) 70%); }
  .bs-hero__copy { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-hero__canvas { transition: none; }
}

/* Desktop: the site header is transparent, so slide the hero up underneath it
   (same offset the theme's .include-header uses, without depending on element order). */
.is-expanded-menu .bs-hero {
  margin-top: calc(-1 * var(--cnvs-header-height, 100px) - 1px);
}

/* Drag to rotate: grab cursor over the scene, normal cursors over the text and buttons. */
.bs-hero.is-draggable { cursor: grab; }
.bs-hero.is-dragging { cursor: grabbing; }
.bs-hero.is-draggable .bs-hero__copy :is(h1, p) { cursor: auto; }
.bs-hero.is-draggable .bs-hero__copy a { cursor: pointer; }
