/* LOCKED — Component: SalonHero -------------------------------------------
   Values transcribed from The Salon.dc.html (desktop), The Salon - Tablet
   (700–1099px) and The Salon - Mobile (< 700px). Literal values on purpose:
   Salon geometry is isolated from the global tokens by ruling.
   ------------------------------------------------------------------------- */
@layer components {
  @keyframes tp-salon-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes tp-salon-rise {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes tp-salon-tag {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes tp-salon-tag-mobile {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---- Desktop (≥ 1100) base ---------------------------------------- */
  .tp-salon-hero {
    position: relative;
    width: 100%;
    font-family: 'Cormorant Garamond', Garamond, serif;
  }

  .tp-salon-hero__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3072 / 2235;
    container-type: inline-size;
    overflow: hidden;
  }

  .tp-salon-hero__plate-frame {
    position: absolute;
    left: 0;
    top: -3%;
    width: 100%;
    aspect-ratio: 3072 / 2304;
    container-type: inline-size;
  }

  .tp-salon-hero__stage {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    transform: none;
    transition: transform 1.15s cubic-bezier(0.62, 0.02, 0.24, 1);
  }

  .tp-salon.is-zoomed .tp-salon-hero__stage {
    will-change: transform;
  }

  .tp-salon-hero__plate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    animation: tp-salon-fade 1.5s ease both;
  }

  .tp-salon-hero__scrim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7%;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(250, 248, 243, 0) 0%, rgba(250, 248, 243, 0.0149) 7.43%, rgba(250, 248, 243, 0.0558) 14.86%, rgba(250, 248, 243, 0.1169) 22.29%, rgba(250, 248, 243, 0.1926) 29.71%, rgba(250, 248, 243, 0.2771) 37.14%, rgba(250, 248, 243, 0.3648) 44.57%, rgba(250, 248, 243, 0.45) 52%, rgba(250, 248, 243, 0.5039) 56.29%, rgba(250, 248, 243, 0.5681) 60.57%, rgba(250, 248, 243, 0.6378) 64.86%, rgba(250, 248, 243, 0.7084) 69.14%, rgba(250, 248, 243, 0.7754) 73.43%, rgba(250, 248, 243, 0.8342) 77.71%, rgba(250, 248, 243, 0.88) 82%, rgba(250, 248, 243, 0.9033) 84.57%, rgba(250, 248, 243, 0.927) 87.14%, rgba(250, 248, 243, 0.9495) 89.71%, rgba(250, 248, 243, 0.9695) 92.29%, rgba(250, 248, 243, 0.9855) 94.86%, rgba(250, 248, 243, 0.9961) 97.43%, rgba(250, 248, 243, 1) 100%);
  }

  .tp-salon-hero__chrome {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.6s ease 0.3s;
  }

  .tp-salon.is-zoomed .tp-salon-hero__chrome {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  /* Logo lockup */
  .tp-salon-hero__logo-wrap {
    position: absolute;
    left: 39%;
    top: 11%;
    width: 22%;
    text-align: center;
    z-index: 6;
    animation: tp-salon-rise 1.2s ease 0.25s both;
  }

  .tp-salon-hero__logo {
    display: block;
    width: 73%;
    height: auto;
    margin: 0 auto;
  }

  /* Taglines */
  .tp-salon-hero__tagline {
    position: absolute;
    top: 25.5%;
    width: 14%;
    margin: 0;
    font-size: max(12px, 0.95cqw);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: #3C3A34;
    text-wrap: pretty;
    z-index: 6;
  }

  .tp-salon-hero__tagline--left {
    left: 33.87%;
    text-align: right;
    animation: tp-salon-rise 1.2s ease 0.45s both;
  }

  .tp-salon-hero__tagline--right {
    left: 54.87%;
    text-align: left;
    animation: tp-salon-rise 1.2s ease 0.55s both;
  }

  .tp-salon-hero__tagline--mobile {
    display: none;
  }

  /* Tags */
  .tp-salon-tag {
    position: absolute;
    left: var(--tag-d-left);
    right: var(--tag-d-right);
    top: var(--tag-d-top);
    width: 11.4cqw;
    z-index: 6;
    display: block;
    cursor: pointer;
    color: inherit;
    animation: tp-salon-tag 0.8s ease var(--tag-d-delay) both;
    transition: filter 0.2s ease;
  }

  .tp-salon-tag:hover {
    color: inherit;
    filter: drop-shadow(0 0.7cqw 0.9cqw rgba(30, 58, 99, 0.22));
  }

  .tp-salon-tag__card {
    display: block;
    background: rgba(252, 250, 244, 0.95);
    border: 1px solid #CBB98D;
    box-shadow: 0 0.35cqw 0.8cqw rgba(30, 58, 99, 0.14);
    padding: 0.6cqw 0.7cqw 0.68cqw;
    text-align: center;
  }

  .tp-salon-tag__diamond-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.28cqw;
  }

  .tp-salon-tag__diamond {
    display: block;
    width: 0.38cqw;
    height: 0.38cqw;
    background: #2F5DA8;
    transform: rotate(45deg);
  }

  .tp-salon-tag__title {
    display: block;
    font-size: 1.02cqw;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #1E3A63;
    line-height: 1.2;
  }

  .tp-salon-tag__rule {
    display: block;
    width: 1.5cqw;
    height: 1px;
    background: #C0AE84;
    margin: 0.3cqw auto;
  }

  .tp-salon-tag__sub {
    display: block;
    font-size: 0.9cqw;
    font-style: italic;
    color: #3C3A34;
    line-height: 1.45;
  }

  /* ---- Tablet (700–1099) --------------------------------------------- */
  @media (max-width: 1099px) {
    .tp-salon-hero__logo-wrap {
      left: 38%;
      top: 8%;
      width: 24%;
    }

    .tp-salon-hero__tagline {
      top: 27%;
      width: 19%;
      font-size: max(12px, 1.15cqw);
    }

    .tp-salon-hero__tagline--left {
      left: auto;
      right: 52%;
    }

    .tp-salon-hero__tagline--right {
      left: 55%;
    }

    .tp-salon-tag {
      left: var(--tag-t-left);
      right: var(--tag-t-right);
      top: var(--tag-t-top);
      width: max(128px, 13cqw);
    }

    .tp-salon-tag__card {
      box-shadow: 0 4px 10px rgba(30, 58, 99, 0.14);
      padding: max(7px, 0.6cqw) max(8px, 0.7cqw) max(8px, 0.68cqw);
    }

    .tp-salon-tag__diamond-wrap {
      margin-bottom: max(4px, 0.28cqw);
    }

    .tp-salon-tag__diamond {
      width: max(5px, 0.38cqw);
      height: max(5px, 0.38cqw);
    }

    .tp-salon-tag__title {
      font-size: max(11px, 1.02cqw);
    }

    .tp-salon-tag__rule {
      width: max(20px, 1.5cqw);
      margin: max(4px, 0.3cqw) auto;
    }

    .tp-salon-tag__sub {
      font-size: max(10px, 0.9cqw);
    }
  }

  /* ---- Mobile (< 700) ------------------------------------------------ */
  @media (max-width: 699px) {
    .tp-salon.is-zoomed .tp-salon-hero {
      display: none;
    }

    .tp-salon-hero__frame {
      aspect-ratio: 10 / 9;
      animation: tp-salon-fade 1.4s ease both;
    }

    .tp-salon-hero__plate-frame {
      position: absolute;
      inset: 0;
      top: 0;
      aspect-ratio: auto;
      height: 100%;
    }

    .tp-salon-hero__stage {
      transform: none !important;
      transition: none;
    }

    /* `inset` is the shorthand for top/right/bottom/left, so it has to clear the
       desktop offsets BEFORE the longhands, not after. Declared last it reset
       left back to auto, the -11.1% never applied, and the plate sat flush to
       the frame's left edge — which pushed the shisha about 45px right of the
       composition's centre line. Ordered correctly, the export's own value
       takes effect and the shisha lands on centre. */
    .tp-salon-hero__plate {
      inset: auto;
      left: -11.1%;
      top: 0;
      width: 120%;
      height: 100%;
      animation: none;
    }

    .tp-salon-hero__scrim {
      height: 9%;
      background: linear-gradient(to bottom, rgba(250, 248, 243, 0) 0%, rgba(250, 248, 243, 0.0202) 8.29%, rgba(250, 248, 243, 0.0749) 16.57%, rgba(250, 248, 243, 0.155) 24.86%, rgba(250, 248, 243, 0.2516) 33.14%, rgba(250, 248, 243, 0.3556) 41.43%, rgba(250, 248, 243, 0.4581) 49.71%, rgba(250, 248, 243, 0.55) 58%, rgba(250, 248, 243, 0.6194) 64%, rgba(250, 248, 243, 0.701) 70%, rgba(250, 248, 243, 0.7864) 76%, rgba(250, 248, 243, 0.8674) 82%, rgba(250, 248, 243, 0.9355) 88%, rgba(250, 248, 243, 0.9825) 94%, rgba(250, 248, 243, 1) 100%);
    }

    .tp-salon-hero__chrome {
      z-index: 4;
    }

    /* Centred on the frame (42% + 16% = 58%), lifted slightly so the lockup
       below it gains the clearance the export did not leave. */
    .tp-salon-hero__logo-wrap {
      left: 42%;
      top: 2.5%;
      width: 16%;
      animation: tp-salon-rise 1.2s ease 0.2s both;
    }

    .tp-salon-hero__logo {
      width: 100%;
    }

    .tp-salon-hero__tagline--left,
    .tp-salon-hero__tagline--right {
      display: none;
    }

    /* No ground behind this copy. A cream oval — however feathered — still
       reads as a shape sitting on the illustration. The line belongs ON the
       artwork, so the only assist is a soft same-colour halo carried in the
       text shadow itself: it lifts the letterforms off whatever is behind them
       without drawing anything. */
    .tp-salon-hero__tagline--mobile {
      display: block;
      left: 26%;
      top: 18%;
      width: 48%;
      text-align: center;
      font-size: 11.5px;
      line-height: 1.4;
      color: #34322C;
      /* A warm cream halo, pitched to be almost imperceptible: no offset, no
         blur wide enough to register as a shape, and low enough opacity that
         it only lifts the pixels the glyphs actually touch. There is no
         background layer behind this copy and there must not be one. */
      text-shadow:
        0 0 2px rgba(246, 240, 229, 0.58),
        0 0 5px rgba(246, 240, 229, 0.36),
        0 0 10px rgba(246, 240, 229, 0.2);
      animation: tp-salon-rise 1.2s ease 0.4s both;
    }

    .tp-salon-tag {
      left: var(--tag-m-left);
      right: var(--tag-m-right);
      top: var(--tag-m-top);
      width: auto;
      animation: tp-salon-tag-mobile 0.7s ease var(--tag-m-delay) both;
    }

    .tp-salon-tag:hover {
      filter: none;
    }

    .tp-salon-tag__card {
      min-height: 44px;
      padding: 6px 9px 7px;
      box-shadow: 0 3px 8px rgba(30, 58, 99, 0.13);
    }

    .tp-salon-tag__diamond-wrap {
      margin-bottom: 4px;
    }

    .tp-salon-tag__diamond {
      width: 5px;
      height: 5px;
    }

    .tp-salon-tag__title {
      font-size: 10.5px;
      letter-spacing: 0.07em;
      line-height: 1.15;
    }

    .tp-salon-tag__rule {
      width: 18px;
      margin: 4px auto;
    }

    .tp-salon-tag__sub {
      font-size: 9.5px;
      white-space: nowrap;
      line-height: 1.25;
    }
  }
}
