.hero-area {
  position: relative;
  overflow: hidden;
  background-color: var(--color-brown);
}

.hero-mobile-continuation {
  display: none;
}

/* Gradient fade at bottom — blends dark temple photo into blush divider */
.hero-area::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 136px;
  background: linear-gradient(to bottom, transparent 0%, rgba(232,208,196,0.3) 40%, rgba(232,208,196,0.7) 70%, var(--color-blush) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 146svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: 21rem;
}

.hero__top-symbol {
  position: absolute;
  top: calc(var(--nav-height) + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-temple-gopuram.png');
  background-size: cover;
  background-position: center 43%;
  z-index: 0;
  transform: translate3d(0, var(--hero-bg-shift, 0px), 0) scale(var(--hero-bg-scale, 1));
  transform-origin: center center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18,8,0,0.28) 0%,
    rgba(26,11,0,0.18) 20%,
    rgba(28,12,0,0.28) 44%,
    rgba(18,8,0,0.52) 72%,
    rgba(10,4,0,0.80) 100%
  ),
  radial-gradient(
    ellipse at center,
    rgba(68, 30, 0, 0.03) 0%,
    rgba(28, 12, 0, 0.16) 45%,
    rgba(8, 3, 0, 0.58) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  min-height: calc(146svh - var(--nav-height) - 21rem);
  justify-content: center;
  padding: clamp(4.6rem, 8vw, 6rem) var(--space-md) clamp(28rem, 38vw, 34rem);
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hero__divider {
  display: none;
}

.hero__names {
  position: relative;
  z-index: 2;
  padding: 0.15rem 0 0;
}

.hero__name-english {
  font-family: var(--font-hero-decorative);
  font-size: clamp(3.3rem, 7vw, 5.2rem);
  color: var(--color-white);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.96;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}

.hero__name-part {
  display: inline-block;
}

.hero__name-amp {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.52em;
  line-height: 1;
  margin: 0 0.02em;
  transform: translateY(-0.08em);
}

.hero__name-telugu {
  font-family: var(--font-telugu);
  font-size: var(--text-lg);
  color: var(--color-gold);
  margin-top: var(--space-xs);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero__date {
  font-family: var(--font-heading);
  color: rgba(253, 246, 236, 0.96);
  margin: 0.55rem 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.72);
}

/* Om symbol above invocation text */
.hero__ganesha-motif {
  display: block;
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1;
  color: var(--color-gold);
  margin: 0 auto;
  text-shadow: 0 0 28px rgba(200,150,62,0.55), 0 2px 8px rgba(0,0,0,0.5);
}

.hero__names {
  order: 0;
}

.hero__showcase {
  position: absolute;
  left: 50%;
  bottom: clamp(4rem, 6vw, 6rem);
  transform: translateX(-50%);
  width: clamp(11.5rem, 14vw, 13rem);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.92);
  box-shadow:
    0 24px 52px rgba(0,0,0,0.34),
    0 0 0 10px rgba(255, 248, 238, 0.12);
  z-index: 4;
  background: rgba(255, 248, 238, 0.08);
  transition: transform var(--motion-base) var(--ease-soft), box-shadow var(--motion-base) var(--ease-soft);
  opacity: 1;
  transform: translateX(-50%);
}

.has-hero-motion .hero__showcase {
  opacity: var(--hero-showcase-opacity, 0);
  transform: translateX(-50%) translateY(var(--hero-showcase-shift, 190px));
}

.hero__showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* Decorative florals — flanking the names */
/* Bottom ornamental band — sits at very bottom, below all content */
.hero__bottom-band {
  position: absolute;
  bottom: -252px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
  filter: saturate(1.15) drop-shadow(0 -2px 20px rgba(0,0,0,0.42));
}

/* Responsive adjustments */
@media (max-width: 540px) {
  .hero-area {
    background:
      linear-gradient(
        to bottom,
        #2b1406 0%,
        #1a0b02 58%,
        rgba(12, 5, 1, 0.98) 82%,
        #050200 100%
      );
  }

  .hero-area::after {
    content: none;
  }

  .hero__divider {
    display: none !important;
  }

  .hero {
    align-items: flex-start;
    min-height: clamp(82rem, 172svh, 98rem);
    min-height: clamp(82rem, 172dvh, 98rem);
    padding-bottom: 0;
  }

  .hero::before {
    content: none;
  }

  .hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(5.5rem, 18vw, 8rem);
    background: linear-gradient(
      to bottom,
      rgba(5, 2, 0, 0) 0%,
      rgba(5, 2, 0, 0.08) 26%,
      rgba(5, 2, 0, 0.3) 66%,
      #050200 100%
    );
    z-index: 2;
    pointer-events: none;
  }

  .hero__bg,
  .hero__overlay {
    inset: 0;
    height: 100%;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(14, 6, 0, 0) 0%,
      rgba(20, 8, 0, 0.02) 18%,
      rgba(18, 8, 0, 0.08) 42%,
      rgba(16, 7, 0, 0.16) 74%,
      rgba(8, 3, 0, 0.24) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(76, 34, 0, 0) 0%,
      rgba(24, 10, 0, 0.03) 48%,
      rgba(7, 3, 0, 0.12) 100%
    );
  }

  .hero__content {
    max-width: 360px;
    min-height: auto;
    justify-content: flex-start;
    padding: calc(var(--nav-height) + 5.5rem) 0.9rem clamp(8.5rem, 24vw, 11rem);
  }

  .hero__top-symbol {
    top: calc(var(--nav-height) + 0.2rem);
  }

  .hero__ganesha-motif {
    font-size: 18px;
    margin: 0 auto;
    z-index: 5;
  }

  .hero__names {
    padding: 0.2rem 0;
    width: 100%;
  }

  .hero__name-english {
    font-size: clamp(2.75rem, 9vw, 4rem);
    letter-spacing: 0.018em;
    line-height: 0.96;
    gap: 0.12rem;
  }

  .hero__date {
    font-size: 0.88rem;
    margin: 0.45rem 0 0;
    letter-spacing: 0.06em;
  }

  .hero__showcase {
    bottom: 5.5rem;
    width: clamp(13.5rem, 54vw, 16rem);
    border-radius: 18px;
    box-shadow:
      0 16px 34px rgba(0,0,0,0.28),
      0 0 0 7px rgba(255, 248, 238, 0.1);
  }

  .hero__bottom-band {
    display: none;
  }

  .hero__bg {
    background-image: url('../assets/images/hero-temple-mobile-landing.jpg');
    background-position: center 12%;
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: center 24%;
  }

  .hero-mobile-continuation {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero__name-english {
    font-size: clamp(2.32rem, 8.2vw, 3rem);
    letter-spacing: 0.014em;
  }
}

@media (min-width: 768px) {
  .hero__bottom-band {
    bottom: -264px;
    max-height: 390px;
  }

  .hero__showcase {
    width: clamp(11rem, 13vw, 12.5rem);
    bottom: 6.5rem;
  }

  .hero__bg {
    background-position: center 39%;
    background-size: cover;
  }

  .hero__showcase:hover {
    transform: translateX(-50%) translateY(-6px);
    box-shadow:
      0 28px 56px rgba(0,0,0,0.42),
      0 0 0 10px rgba(255, 248, 238, 0.14);
  }

  .has-hero-motion .hero__showcase:hover {
    transform: translateX(-50%) translateY(calc(var(--hero-showcase-shift, 190px) - 6px));
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: clamp(66rem, 154svh, 92rem);
    padding-bottom: 24rem;
  }

  .hero__content {
    min-height: calc(clamp(66rem, 154svh, 92rem) - var(--nav-height) - 24rem);
    padding-bottom: clamp(31rem, 42vw, 38rem);
  }

  .hero__bottom-band {
    bottom: -278px;
    max-height: 430px;
  }

  .hero__showcase {
    bottom: 10rem;
    width: clamp(11.6rem, 13.5vw, 13.25rem);
  }

  .hero__bg {
    background-position: center 36%;
    background-size: cover;
  }
}
