/* ===== HERO CAROUSEL (Reusable) ===== */
.hero--carousel {
  height: 80vh;
  position: relative;
  border-bottom: 3px solid var(--site-theme-secondary);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 100%;
  transition: transform 500ms ease;
}

.hero-slide {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.25) 100%
  );
  pointer-events: none;
}

.hero-pane {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 6vw;
  color: #fff;
}

.hero-pane .hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-pane h1 {
  margin: 0;
}

.hero-pane p {
  margin: 8px 0 0;
  font-family: 'Orbitron', sans-serif;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,17,17,0.55);
  color: #fff;
  border: 2px solid var(--site-theme-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.hero-ctrl:hover { background: rgba(13,202,240,0.6); color: #000; }
.hero-ctrl.prev { left: 16px; }
.hero-ctrl.next { right: 16px; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--site-theme-secondary);
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.hero-dot[aria-selected="true"] {
  background: var(--site-theme-secondary);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}

/* Small screens */
@media screen and (max-width: 788px) {
  .hero-pane h1 { font-size: 1.8rem; }
  .hero-pane p { font-size: 1rem; }
}

.hero-blurb {
  display: inline-block;
  text-align: center;
  max-width: 600px;       /* keep it readable */
  min-height: 3em;        /* reserve space for ~2 lines */
  margin: 0 auto;         /* still centers the block itself */
  margin-top: 25px;
  white-space: normal;
}

.hero-blurb::after {
  content: "▌";
  display: inline-block; /* change to inline-block to activate heroCaret blinker */
  margin-left: 2px;
  animation: heroCaret 0.9s steps(1) infinite;
}
@keyframes heroCaret { 50% { opacity: 0; } }
