
.hero {
  position: relative;          /* positioning context for overlays */
  overflow: hidden;            /* keep ::before clipped to hero */
  + min-height: clamp(260px, 52vw, 560px);  /* ← critical: restores layout height */
}

/* Animated overlay logo */
.idea-logo {
  position: absolute;
  top: 71%;       /* adjust up/down */
  left: 15%;      /* adjust left/right */
  width: clamp(64px, 12vw, 160px);
  height: auto;          /* preserve intrinsic ratio */
  aspect-ratio: 1 / 1;   /* force a square badge */
  object-fit: contain;   /* never stretch to fill */
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.3);
  transition:
    transform .6s cubic-bezier(.2,.7,.2,1),
    opacity  .6s cubic-bezier(.2,.7,.2,1);
  z-index: 3;                  /* above headings/inline content */
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
}

.idea-logo.is-ready {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce){
  .idea-logo { transform: none; }
  .idea-logo.is-ready { transition: none; opacity: 1; }
}

/* --- Bottom button strip inside the hero --- */
.btn-strip{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0rem;           /* sits along the bottom of the hero */
  display: flex;
  justify-content: center;   /* centered line */
  align-items: center;
  gap: 2rem;                  /* 1rem gap as requested */
  padding: 0 .75rem;
  z-index: 5;                 /* above hero image */
  flex-wrap: wrap;            /* allow wrap on smaller screens */
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  padding: 0 .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.35);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform .12s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}

.btn:hover,
.btn:focus-visible{
  border-color: #66ccff;
  background: rgba(0,0,0,.55);
  outline: none;
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
}

/* Tighten layout on narrow screens and lift strip slightly if needed */
@media (max-width: 600px){
  .btn-strip{
    bottom: .5rem;
    gap: .75rem;
    padding-inline: .5rem;
  }
  .btn{
    height: 2.2rem;
    padding: 0 .75rem;
    font-size: .9rem;
  }
}

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

/* Floating, scrollable services panel */
.services-panel{
  position: absolute;
  /* adjust these three lines to position it visually */
  top: 15%;                     /* roughly between H1 and buttons */
  left: 50%;                    /* to the right of the bulb */
  transform: translateX(-50%);  /* center around that left % */

  width: min(700px, 42vw);
  height: 400px;            /* controls visible height */
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.85);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: 4;                   /* above logo (3), below buttons (5) */
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.services-panel h2{
  margin: 0 0 .4rem 0;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #66ccff;
}

.services-panel-body{
  overflow-y: auto;             /* internal scrolling */
  padding-right: .5rem;         /* space from scrollbar */
  font-size: .95rem;
  line-height: 1.5;
  min-height: 0;
}

.services-panel{
  display: flex;
  flex-direction: column;
  overflow: hidden;  /* ensures inner scroll area stays inside the box */
}

.services-panel-body p{
  margin: 0 0 .5rem 0;
}

.services-panel-body ul{
  margin: 0 0 .5rem 1.2rem;
  padding: 0;
}

.services-panel-body li{
  margin-bottom: .25rem;
}

/* Mobile: center it and give more room */
@media (max-width: 800px){
  .services-panel{
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 480px);
    max-height: 40vh;
  }
}

