/* === HERO: full background photo + left glass panel only === */
.s-hero{
  position: relative;
  min-height: 90vh;
  background: url("../../hero/hero-bg.jpg") center center / cover no-repeat;
  display:flex;
  align-items:center;
}

/* Left alignment */
.hero-content{
  width: 100%;
  padding-left: clamp(16px, 6vw, 80px);
  padding-right: 16px;
  position: relative;
  z-index: 2;
}

/* Transparent purple glass rectangle */
.hero-panel{
  width: min(640px, 92vw);
  padding: clamp(22px, 3.6vw, 44px);
  border-radius: 8px;
  color: #fff;

  background: linear-gradient(
      135deg,
      rgba(168, 102, 255, 0.12),
      rgba(120, 155, 255, 0.08)
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.hero-panel h1{
  margin: 0 0 14px 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.06;
  font-size: clamp(34px, 4.6vw, 56px);
}

.hero-panel p{
  margin: 0;
  line-height: 1.6;
  font-size: clamp(15px, 1.6vw, 18px);
  opacity: 0.98;
}

/* keep hero nice on small screens */
@media (max-width: 768px){
  .s-hero{ min-height: 78vh; }

  /* less transparent purple block + fly in/out controlled by JS */
  .hero-panel{
    background: linear-gradient(
        135deg,
        rgba(168, 102, 255, 0.55),
        rgba(120, 155, 255, 0.46)
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    transform: translateX(28px) translateY(14px);
    transition: opacity .45s ease, transform .45s ease;
    will-change: opacity, transform;
  }
  .hero-panel.is-visible{
    opacity: 1;
    transform: translateX(0) translateY(0);
  }

  @media (prefers-reduced-motion: reduce){
    .hero-panel{ opacity: 1; transform: none; transition: none; }
  }
}
