/* ==========================================================================
   HERO (Home) — full-screen 3D canvas + orbit logo + copy
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(var(--blue-rgb), .25), transparent 60%), var(--bg-0);
}

.padsmall{
  position: relative;
  min-height: 20vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(var(--blue-rgb), .25), transparent 10%), var(--bg-0);
}

.hero__canvas-layer{
  position: absolute; inset: 0; z-index: 1;
}
#hero-canvas{ width: 100%; height: 100%; display: block; }

/* =====================================================================
   HERO SATELLITE — decorative drift, purely transform-based (no
   layout-triggering properties) so it stays GPU-cheap and can never cause
   a layout shift or affect scrolling. pointer-events is disabled so it
   never intercepts clicks meant for the CTA buttons or the globe/menu
   beneath it. Sits in front of the globe canvas (z-index 3, above the
   vignette) so it reads as a foreground element orbiting the Earth.
   ===================================================================== */
.hero__satellite{
  position: absolute; z-index: 3; pointer-events: none;
  top: 8%; right: 8%;
  width: clamp(96px, 14vw, 170px); height: auto;
  opacity: .95;
  animation: hero-satellite-drift 18s ease-in-out infinite;
  will-change: transform;
}
@keyframes hero-satellite-drift{
  0%   { transform: translateX(0) translateY(0) rotate(0deg); }
  50%  { transform: translateX(-16vw) translateY(2vh) rotate(270deg); }
  100% { transform: translateX(0) translateY(0) rotate(270deg); }
}
@media (max-width: 760px){
  .hero__satellite{ top: 6%; right: 6%; width: clamp(72px, 22vw, 110px); }
  @keyframes hero-satellite-drift{
    0%   { transform: translateX(0) translateY(0) rotate(0deg); }
    50%  { transform: translateX(-10vw) translateY(1.5vh) rotate(270deg); }
    100% { transform: translateX(0) translateY(0) rotate(270deg); }
  }
}

/* =====================================================================
   HERO GLOBE DEMO SELECTOR
   A small, compact switcher for the hero globe's Globe.gl demos. Placed
   in the hero's naturally empty lower-right corner (the hero text block
   sits top-left; the scroll cue sits bottom-center) so it never overlaps
   either. Styled to match the site's pixel/retro accents: VT323, orange,
   small rounded pill buttons with a subtle glow, semi-transparent panel.
   ===================================================================== */
.hero-globe-menu{
  position: absolute; z-index: 5;
  right: var(--sp-3); bottom: calc(var(--sp-4) + 46px);
  display: flex; flex-wrap: wrap; gap: 5px;
  max-width: 190px;
  padding: 7px;
  border-radius: 12px;
  background: rgba(10,10,16,.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--orange-rgb), .35);
  box-shadow: 0 0 18px -4px rgba(var(--orange-rgb), .35);
}
[data-theme="light"] .hero-globe-menu{
  background: rgba(255,255,255,.55);
  border-color: rgba(var(--orange-rgb), .4);
}
.hero-globe-menu__item{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(var(--orange-rgb), .35);
  background: rgba(var(--orange-rgb), .08);
  color: var(--text-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-orbit), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.hero-globe-menu__item:hover{
  background: rgba(var(--orange-rgb), .2);
  border-color: var(--orange);
  color: var(--text-0);
  transform: translateY(-1px);
}
.hero-globe-menu__item:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.hero-globe-menu__item.is-active{
  background: var(--orange);
  border-color: var(--orange);
  color: #16100a;
  box-shadow: 0 0 10px -1px rgba(var(--orange-rgb), .7);
}

@media (max-width: 760px){
  /* On small screens the globe demo switcher is placed in the normal document
     flow directly beneath the hero's CTA buttons ("Talk to Us") — via JS it is
     inserted into .hero__content right after the .hero__cta — so it never
     overlaps the globe or the title and stays usable/scrollable. It becomes a
     static, centered row that sits above the fixed globe background. */
  .hero-globe-menu{
    position: static;
    right: auto; bottom: auto; top: auto; left: auto;
    width: 100%;
    max-width: none;
    display: flex; flex-wrap: wrap; gap: 5px;
    justify-content: center;
    margin-top: var(--sp-3);
    padding: 7px;
    border-radius: 12px;
  }
  .hero-globe-menu::-webkit-scrollbar{ display: none; }
  .hero-globe-menu__item{
    font-size: 11px; padding: 4px 9px; white-space: nowrap; flex: 0 0 auto;
  }
}

.hero__vignette{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,16,0) 0%, var(--bg-0) 96%);
}
[data-theme="light"] .hero__vignette{
  background: linear-gradient(180deg, rgba(247,245,240,0) 0%, var(--bg-0) 96%);
}

.hero__content{
  position: relative; z-index: 3;
  width: 100%;
  padding-top: 76px;
  /* Center the hero copy + actions (title, eyebrow, sub, CTA buttons) on the
     page axis for better balance — applies to desktop and mobile. */
  text-align: center;
}

.hero__orbit-mark{
  width: 64px; height: auto;
  margin-bottom: var(--sp-3);
  animation: orbit-spin 14s linear infinite;
  transform-origin: 46% 54%;
   display: block;
  margin: 0 auto;
}
@keyframes orbit-spin{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero__orbit-mark{ animation: none; } }

.hero__title{
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: .98;
  max-width: 16ch;
  display: block;
  margin: 0 auto;
}
.hero__title .grad-text{ display: block; }

.hero__sub{
  margin-top: var(--sp-3);
  max-width: 46ch;
  /* Center the sub-paragraph block beneath the centered title. */
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--text-1);
}

.hero__cta{ display: flex;  gap: var(--sp-2); margin-top: var(--sp-4); flex-wrap: wrap; justify-content: center; }

.hero__stat-row{
  display: flex; gap: var(--sp-5); margin-top: var(--sp-6);
  flex-wrap: wrap; justify-content: center;
}
.hero__stat b{
  display: block; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--text-0);
}
.hero__stat span{ font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); letter-spacing: .04em; }

.hero__scroll-cue{
  position: absolute; bottom: var(--sp-4); left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .18em;
  color: var(--orange); text-transform: uppercase;
}
.hero__scroll-cue .line{ width: 1px; height: 34px; background: linear-gradient(var(--orange), transparent); animation: cue-fall 1.8s ease-in-out infinite; }
@keyframes cue-fall{ 0%{ opacity: 0; } 30%{ opacity: 1; } 100%{ opacity: 0; transform: translateY(8px); } }

@media (max-width: 760px){
  .hero{ min-height: 92vh; }
  .hero__stat-row{ gap: var(--sp-4); }
}

/* ==========================================================================
   SUB-PAGE HEADER (non-home pages)
   ========================================================================== */
.page-header{
  position: relative;
  padding-top: calc(76px + var(--sp-6));
  padding-bottom: var(--sp-5);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(var(--accent-rgb), .16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(var(--blue-rgb), .18), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--line);
}
.page-header__kicker{ margin-bottom: var(--sp-2); }
.page-header__title{ max-width: 22ch; }
.page-header__lede{ margin-top: var(--sp-3); max-width: 58ch; font-size: var(--fs-md); font-family: var(--font-display); color: var(--text-1); }

.page-header__decal{
  position: absolute; right: -8%; top: 10%; width: 46%; max-width: 560px;
  opacity: .5; filter: saturate(.85);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 95%);
  mask-image: linear-gradient(to left, black 40%, transparent 95%);
  pointer-events: none;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero2-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.beaverchip-hero-image {
    max-width: 600px;
    width: 100%;
    height: auto;

    filter: drop-shadow(0 20px 40px rgba(255, 55, 0, 0.622));

    transition: transform 0.3s ease;
    animation: beaver-float 4s ease-in-out infinite;
}


.enclusure2-hero-image {
    max-width: 10000px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(81, 81, 81, 0.456));
    transition: transform 0.3s ease;
    animation: beaver-float 4s ease-in-out infinite;
}

@keyframes beaver-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.beaverchip-hero-image:hover {
    transform: translateY(-8px) scale(1.03);
}

.beaver-caption {
    margin-top: 1rem;
    text-align: center;
    max-width: 350px;
}

.beaverchip-hero-image:hover {
    transform: translateY(-5px);
}
@media (max-width: 900px){ .page-header__decal{ display: none; } }

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .beaverchip-hero-image {
        max-width: 220px;
    }
}