/* Vanilla-runtime state layer (replaces framer-motion / React state) */

/* reveal engine */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* navbar condense */
[data-nav] .nav-shell {
  max-width: 1120px;
  height: 62px;
  margin-top: 0;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-nav].nav-scrolled .nav-shell {
  max-width: 1000px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px -24px rgba(0, 0, 0, 0.9);
}

/* mobile menu */
[data-mobile-menu] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
[data-mobile-menu].is-open {
  opacity: 1;
  pointer-events: auto;
}

/* modals */
[data-modal] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
[data-modal].is-open {
  opacity: 1;
  pointer-events: auto;
}
[data-modal] .modal-panel {
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-modal].is-open .modal-panel {
  transform: translateY(0) scale(1);
}

/* accordions */
[data-acc-panel] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* placement chips pop (globe stage) */
.chip-pop {
  opacity: 0;
  transform: scale(0.55) translateY(16px);
  transition:
    opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chip-pop.chip-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.chip-pop.chip-out {
  opacity: 0;
  transform: scale(0.85) translateY(-14px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* homepage: cobe globe canvas (fades in once the globe is built) */
.globe-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  opacity: 0;
  transition: opacity 1.2s ease;
  border-radius: 50%;
  touch-action: none;
}
.globe-canvas.is-on {
  opacity: 1;
}

/* homepage: pulse-ring marker overlay (ported from cobe-globe-pulse) */
.pulse-marker {
  position: absolute;
  bottom: 50%;
  left: 50%;
  translate: -50% 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s, filter 0.4s;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #33ccdd;
  border-radius: 50%;
  opacity: 0;
  animation: pulse-expand 2s ease-out infinite;
}
.pulse-core {
  width: 10px;
  height: 10px;
  background: #33ccdd;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #111, 0 0 0 5px #33ccdd;
}
@keyframes pulse-expand {
  0% {
    transform: scaleX(0.3) scaleY(0.3);
    opacity: 0.8;
  }
  100% {
    transform: scaleX(1.5) scaleY(1.5);
    opacity: 0;
  }
}

/* homepage: globe-scrub stats (dim until their scroll threshold passes) */
.gs-stat {
  opacity: 0.18;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.gs-stat.is-on {
  opacity: 1;
  transform: translateY(0);
}
.gs-stat .gs-num {
  color: rgba(250, 250, 250, 0.5);
  transition:
    color 0.7s ease,
    text-shadow 0.7s ease;
}
.gs-stat.is-on .gs-num {
  color: rgb(244, 145, 50);
  text-shadow: 0 0 40px rgba(230, 71, 5, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .gs-stat {
    opacity: 1;
    transform: none;
  }
  .gs-stat .gs-num {
    color: rgb(244, 145, 50);
  }
}
