/* Hair Perfumes page composition. Scene/certification roles are shared. */
/* Legacy menu bridge: collection inherits body ink, while the global alias
   intentionally uses title ink on other pages. This is not a public control. */
.page-hair-perfumes-collection { --soft-ink: var(--color-text-body); color: var(--color-text-body); background: var(--color-paper); }
.page-hair-perfumes-collection .hero-scroll,
.page-hair-perfumes-collection .hero-pin { height: 100dvh; }
.page-hair-perfumes-collection .hero-pin { position: relative; min-height: 0; }
.page-hair-perfumes-collection .video-layer { will-change: auto; }
.page-hair-perfumes-collection .video-layer video { filter: grayscale(1) contrast(1.38) brightness(.92); }
.page-hair-perfumes-collection .perfume-story { position: relative; z-index: 3; margin-top: 0; }
.page-hair-perfumes-collection .collection-intro { position: relative; padding-top: var(--space-collection-hero-intro); }
.page-hair-perfumes-collection .collection-intro .section-heading { gap: var(--space-collection-title-lede); margin-top: 0; padding-top: 0; padding-inline: 20px; }
.page-hair-perfumes-collection .section-heading > .title-page { margin: 0; }
.page-hair-perfumes-collection .collection-intro-lede { width: max-content; max-width: 100%; margin-inline: auto; white-space: nowrap; }
.page-hair-perfumes-collection .collection-intro .manifesto-sticky { margin-top: var(--space-collection-intro-manifesto); padding-top: 0; }
.page-hair-perfumes-collection .collection-manifesto-wide { display: none; }
@media (min-width: 601px) {
  .page-hair-perfumes-collection .collection-intro > .section-heading {
    --type-collection-intro-title: 58px;
    --color-collection-intro-title: var(--color-section-title);
    --type-manifesto-text: 42px;
    --space-collection-title-lede: var(--space-editorial-title-manifesto);
  }
  .page-hair-perfumes-collection .collection-manifesto-wide { display: block; }
  .page-hair-perfumes-collection #collection-manifesto-title > .manifesto-line { display: none; }
  .page-hair-perfumes-collection .peta-recognition--collection .hair-certifications-title-line { display: block; }
}
@media (min-width: 601px) and (max-width: 980px) {
  .page-hair-perfumes-collection .manifesto-sticky { padding-inline: 7vw; }
  .page-hair-perfumes-collection .manifesto-sticky .manifesto-copy { width: min(100%, calc(100vw - 164px)); }
  .page-hair-perfumes-collection .manifesto-sticky .manifesto-line { display: flex; flex-direction: column; align-items: center; white-space: normal; }
  .page-hair-perfumes-collection .manifesto-sticky .manifesto-group { white-space: nowrap; }
}

/* Compatibility for the existing, dormant commerce announcer. */
.page-hair-perfumes-collection .commerce-status {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  z-index: 120;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  margin: 0;
  color: #fff;
  background: rgba(15, 14, 13, 0.92);
  box-shadow: 0 16px 40px rgba(15, 14, 13, 0.2);
  font-family: var(--font-meta);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 260ms var(--ease-out),
    visibility 0s linear 260ms;
}

.page-hair-perfumes-collection .commerce-status.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition:
    opacity 180ms ease,
    transform 260ms var(--ease-out),
    visibility 0s;
}


/* Mobile intro uses the same title/subtitle roles and spacing as the home. */
@media (max-width: 600px) {
  /* Keep the mirror's cover crop stable as Safari expands/collapses its bars.
     The large viewport still follows real viewport/orientation changes. */
  .page-hair-perfumes-collection .ambient-surface {
    bottom: auto;
    height: 100vh;
    height: 100lvh;
    /* WebKit can round viewport lengths down by 1/64px. */
    height: round(nearest, 100lvh, 1px);
  }

  .page-hair-perfumes-collection .collection-intro {
    --space-collection-title-lede: var(--space-section-heading);
  }

  .page-hair-perfumes-collection .collection-intro h1.title-page--collection {
    --_heading-font-default: var(--font-section-title);
    --_heading-size-default: var(--type-section-title-compact);
    --_heading-weight-default: var(--weight-section-title);
    --_heading-leading-default: var(--leading-section-title-compact);
    --_heading-case-default: var(--case-section-title);
    color: var(--color-section-title);
    font-family: var(--_heading-font, var(--font-section-title));
    font-size: var(--_heading-size, var(--type-section-title-compact));
    font-weight: var(--_heading-weight, var(--weight-section-title));
    line-height: var(--_heading-leading, var(--leading-section-title-compact));
    letter-spacing: var(--_heading-tracking-control, var(--tracking-section-title-compact));
    text-transform: var(--_heading-case, var(--case-section-title));
    text-wrap: balance;
  }

  .page-hair-perfumes-collection .collection-intro-lede {
    color: var(--color-section-subtitle);
    font-family: var(--font-section-subtitle);
    font-size: var(--type-section-subtitle);
    font-weight: var(--weight-section-subtitle);
    line-height: var(--leading-section-subtitle);
    letter-spacing: var(--tracking-section-subtitle);
    text-transform: var(--case-section-subtitle);
  }
}

/* Keep the certification paragraph at least 48px from each mobile viewport edge. */
@media (max-width: 600px) {
  .page-hair-perfumes-collection .peta-recognition--collection .hair-certifications-statement {
    width: 100%;
    max-width: min(var(--collection-certification-copy-max-width), calc(100vw - 96px));
  }
}

/* Match the visible certification gap, including the detail link hit area,
   underlines and the transparent edge of the footer monogram. */
@media (max-width: 600px) {
  .page-hair-perfumes-collection .site-footer {
    --space-services-footer: calc(var(--space-collection-certification) + 14px);
  }
}
