/* ============================================================
   Hero — one panel image (portrait, drifting stars and hearts, and the
   neon sign) with the headline, support line and button as live text.
   Source: assets/images/home/home-hero-panel.webp (easy to swap).
   ============================================================ */
.hero {
  position: relative;
  padding-top: 90px; /* the site nav is absolutely positioned over the top */
  background: var(--bg);
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1; /* the panel's own shape (1774x887), shown whole */
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

/* ------------------------------------------------------------
   Panel image
   ------------------------------------------------------------ */
.hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0; /* faded in by animations.css (or shown directly with reduced motion) */
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* the second crop is only used on phones */
.hero-layer--neon { display: none; }

/* Localized scrim behind the copy only; face and card stay bright */
.hero-scrim {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 55%;
  height: 50%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5,5,5,0.88) 0, rgba(5,5,5,0.55) 45%, rgba(5,5,5,0) 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 66%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 66%, transparent 100%);
}

/* ------------------------------------------------------------
   Copy
   ------------------------------------------------------------ */
.hero-content {
  position: absolute;
  z-index: 6;
  left: 28.5%; /* starts to the right of the raised cards and pouch so they stay visible */
  bottom: 6%;
  max-width: 33%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  /* Cinzel's lowercase glyphs are small capitals — the look of the approved sketch */
  font-size: clamp(1.6rem, min(2.8vw, 6vh), 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #F6F2EB;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.7);
  opacity: 0;
}

.hero-title { display: inline; white-space: nowrap; }

.hero-support {
  margin-top: 0.9em;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, min(1.3vw, 2.5vh), 1.5rem);
  line-height: 1.3;
  color: rgba(244, 241, 236, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
  opacity: 0;
}

.hero-cta-group {
  margin-top: clamp(12px, min(1.9vw, 3.4vh), 26px);
  opacity: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  height: clamp(42px, min(3.9vw, 7vh), 58px);
  padding: 0 clamp(26px, 2.8vw, 42px);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1rem, min(1.4vw, 2.5vh), 1.55rem);
  letter-spacing: 0.01em;
  color: #F6F2EB;
  background: rgba(5, 5, 5, 0.88);
  border: 2px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(141, 122, 232, 0.5), inset 0 0 12px rgba(141, 122, 232, 0.14);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  border-color: #B3A4F5;
  box-shadow: 0 0 30px rgba(141, 122, 232, 0.75), inset 0 0 14px rgba(141, 122, 232, 0.22);
}

.hero-cta:focus-visible { outline: 2px solid #F6F2EB; outline-offset: 4px; }

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hero-headline { font-size: clamp(1.5rem, 2.9vw, 2.4rem); }
  .hero-content { max-width: 34%; }
}

/* ============================================================
   Mobile — one hero, composed deliberately (not a shrunken desktop):
   the panel is cropped to the portrait on top, the copy rides up over
   its foot, and the neon sign (same file, cropped to the right) follows
   beneath at full width so the lips, eye and LUNATIQ lettering stay whole.
   ============================================================ */
@media (max-width: 860px) {
  .hero { padding-top: 76px; }

  .hero-stage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero-scrim { display: none; }

  .hero-layer {
    position: relative;
    inset: auto;
  }

  /* phone order: neon sign first, then the portrait with the copy riding up over its foot */
  .hero-layer--neon {
    display: block;
    grid-area: 1 / 1;
    height: clamp(260px, 80vw, 420px);
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, transparent 14%, #000 42%);
            mask-image: linear-gradient(to top, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, transparent 14%, #000 42%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
  }
  .hero-layer--neon img { object-position: 100% 50%; }

  .hero-layer--face {
    grid-area: 2 / 1;
    height: clamp(340px, 112vw, 560px);
    margin-top: -24px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%), linear-gradient(to top, transparent 0, #000 34%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 14%), linear-gradient(to top, transparent 0, #000 34%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
  }
  .hero-layer--face img { object-position: 18% 0; }

  .hero-content {
    position: relative;
    left: auto;
    bottom: auto;
    grid-area: 3 / 1;
    max-width: none;
    padding: 0 20px 8px;
    margin-top: -72px; /* copy rides up over the foot of the portrait */
  }

  .hero-headline { font-size: clamp(1.5rem, 7vw, 2.5rem); }
  .hero-support { font-size: 1.2rem; margin-top: 0.7em; }
  .hero-cta-group { margin-top: 20px; }
  .hero-cta { height: 52px; font-size: 1.25rem; }
}
