/* Hair by PAMI — safe finishing layer for the home hero and studio section.
   This file only overrides spacing and the decorative background word. */

@media (min-width: 1101px) {
  .home-page .hero,
  .home-page .hero .container {
    min-height: clamp(820px, 100vh, 980px);
  }

  .home-page .hero .container {
    align-items: center;
    padding-top: 205px;
    padding-bottom: 70px;
  }

  .home-page .hero-content {
    width: min(620px, 48%);
    max-width: 620px;
    padding-top: 0;
  }

  .home-page .hero h1 {
    max-width: 620px;
    margin-top: .24em;
    font-size: clamp(64px, 5.25vw, 88px);
    line-height: .94;
  }

  .home-page .hero-copy {
    max-width: 590px;
  }
}

/* The studio section keeps its existing design. Only a faint, animated
   typographic layer is added behind the content. */
.studio-signature {
  overflow: clip;
}

.studio-signature::before {
  content: "HAIR BY PAMI";
  left: 50%;
  top: 49%;
  z-index: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(7rem, 15.5vw, 18rem);
  line-height: .8;
  letter-spacing: .025em;
  color: rgba(111, 76, 67, .065);
  opacity: 0;
  transform: translate(-50%, -42%) scale(.97);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1),
              transform 1.2s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.studio-signature.is-brand-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.studio-signature.is-brand-leaving::before {
  opacity: 0;
  transform: translate(-50%, -57%) scale(1.015);
}

.studio-signature-inner {
  position: relative;
  z-index: 1;
}

/* Keep the background lettering subtle behind cards and copy. */
.studio-highlight {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 1100px) {
  .home-page .hero .container {
    padding-top: 170px;
  }

  .studio-signature::before {
    font-size: clamp(6rem, 18vw, 12rem);
    color: rgba(111, 76, 67, .052);
  }
}

@media (max-width: 620px) {
  .home-page .hero .container {
    padding-top: 126px;
  }

  .studio-signature::before {
    content: "HAIR\A BY PAMI";
    white-space: pre;
    top: 45%;
    font-size: clamp(5rem, 24vw, 8rem);
    line-height: .72;
    color: rgba(111, 76, 67, .045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-signature::before {
    transition: none;
  }
}
