/* Keep the approved branding and readable ribbon text; trim only excess space. */
.studio-info-strip { padding-block: 8px; }
.wigs-info-strip { padding-block: 16px; }
@media (min-width: 1001px) {
  .studio-info-strip { gap: 20px; padding-inline: clamp(24px, 3vw, 48px); }
  .studio-info-strip .info-strip-copy { gap: 18px; }
  .studio-info-strip .info-strip-copy strong { font-size: 19px; }
  .studio-info-strip .info-strip-copy > span { font-size: 16px; line-height: 1.4; }
  .studio-info-strip .info-strip-action { display: flex; align-items: center; gap: 12px; }
  .studio-info-strip .info-strip-action small { max-width: 105px; margin: 0; font-size: 13px; }
  .studio-info-strip .info-strip-link { min-height: 42px; font-size: 15px; padding-inline: 16px; }
  .wigs-info-strip .info-strip-copy > span { line-height: 1.5; margin-top: 4px; }
  .wigs-strip-actions { gap: 6px; }
}
@media (min-width: 1001px) {
  .masthead-brand { --wordmark-size: clamp(128px, 12.6vw, 174px); }
}

/* Size the photo to the space after the original masthead and navigation. */
.hero-stage {
  --visible-photo-height: calc(100svh - var(--home-chrome-height, 350px));
  height: max(180px, calc(100vh - var(--home-chrome-height, 350px)));
  height: max(180px, calc(100svh - var(--home-chrome-height, 350px)));
  container: homepage-photo / size;
}

/* Every destination starts close to the shared menu, regardless of its template. */
body:not([data-page="home"]) main > :is(.section, .visit-section, .gallery-page-hero, .salon-menu-hero):first-child,
body:not([data-page="home"]) :is(.products-hero-inner, .catalog-hero-inner, .review-hero-inner) {
  padding-top: clamp(20px, 2.1vw, 30px);
  padding-bottom: clamp(24px, 2.6vw, 38px);
}
body:not([data-page="home"]) main > :is(.welcome-section, .bridal-section, .wig-guide-hero):first-child,
body:not([data-page="home"]) :is(.products-hero-inner, .review-hero-inner, .visit-location) { align-items: start; }
body[data-page="about"] .small-flower { height: 30px; margin-bottom: 10px; }
body[data-page="services"] .ruled-title { margin-bottom: 24px; }
.gallery-page-content { padding-top: 20px; }
.gallery-page-toolbar { margin-bottom: 18px; }
.lab-intro h1 { margin: 12px 0 16px; }

/* Use the photo's available height, including on short laptop/zoomed windows. */
@container homepage-photo (max-height: 500px) {
  .hero-caption { bottom: 22px; }
  .hero-caption .hero-caption-title { font-size: clamp(32px, 3.4vw, 46px); }
  .hero-caption .hero-caption-body { margin-top: 8px; line-height: 1.5; }
  .hero-caption-link { margin-top: 10px; }
  .hero-caption-brand { width: 135px; margin-bottom: 10px; padding: 6px 10px; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-title { font-size: clamp(32px, 3.4vw, 46px); max-width: 16ch; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-body { margin-top: 12px; font-size: 17px; line-height: 1.5; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-link { margin-top: 14px; padding: 10px 20px; }
  .studio-reveal { padding: 18px 24px; }
  .reveal-title { font-size: 32px; margin: 12px 0; }
  .reveal-options { margin: 10px 0 14px; }
  .reveal-steps { gap: 8px; font-size: 16px; }
  .studio-reveal small { margin-top: 12px; }
  .slideshow-controls { bottom: 20px; }
}
@container homepage-photo (max-height: 340px) {
  .hero-wash { background: linear-gradient(90deg, #211428b3, #21142833 65%, transparent); }
  .hero-caption { bottom: 18px; }
  .hero-caption > span { font-size: 12px; line-height: 1.4; margin-bottom: 5px; }
  .hero-caption .hero-caption-title { font-size: 34px; line-height: 1.1; }
  .hero-caption .hero-caption-body { font-size: 16px; margin-top: 6px; }
  .hero-caption-link { margin-top: 8px; min-height: 38px; padding-block: 6px; }
  .hero-caption-brand { width: 120px; margin-bottom: 6px; }
  .hero-stage[data-slide-theme="nano"] .hero-caption-title { font-size: 32px; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-title { font-size: 32px; max-width: 18ch; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-body { font-size: 16px; margin-top: 8px; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-link { min-height: 38px; margin-top: 10px; padding-block: 7px; }
  .reveal-eyebrow, .reveal-title, .reveal-options { display: none; }
}
@media (min-width: 761px) {
  @container homepage-photo (max-height: 230px) {
    .hero-caption { left: var(--gutter); right: 200px; max-width: none; bottom: 14px; }
    .hero-caption .hero-caption-body { max-width: 720px; }
    .hero-stage[data-slide-theme="studio"] .hero-caption { max-width: 57%; }
    .hero-stage[data-slide-theme="studio"] .hero-caption-title { max-width: none; font-size: 30px; }
    .hero-stage[data-slide-theme="studio"] .hero-caption-body { line-height: 1.4; }
    .studio-reveal { right: 3%; width: 32%; padding: 12px 16px; }
    .studio-reveal small { font-size: 12px; line-height: 1.4; margin-top: 8px; }
    .reveal-steps { font-size: 14px; gap: 5px; }
    .hero-stage[data-slide-theme="nano"] .hero-caption { max-width: calc(52% - var(--gutter) - 20px); }
    .hero-stage[data-slide-theme="nano"] .hero-caption-brand { display: none; }
    .hero-stage[data-slide-theme="nano"] .hero-caption-title { font-size: 30px; }
    .hero-nano-art { width: 48%; }
  }
}
@media (max-width: 760px) {
  .studio-info-strip { padding-block: 10px; }
  .wigs-info-strip { padding-block: 16px; }
  .wigs-strip-actions { width: 100%; min-width: 0; }
  .wigs-info-strip .info-strip-link { max-width: 100%; white-space: normal; }
  .hero-stage { min-height: 320px; }
  .hero-caption { bottom: 70px; }
  .hero-stage[data-slide-theme="studio"] .hero-caption { top: 20px; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-title { font-size: 32px; }
  .hero-stage[data-slide-theme="studio"] .studio-reveal { display: none; }
  .hero-stage[data-slide-theme="nano"] .hero-nano-art { height: 43%; }
  .hero-stage[data-slide-theme="nano"] .hero-caption { top: 46%; bottom: auto; }
  .hero-stage[data-slide-theme="nano"] .hero-caption-title { font-size: 29px; }
  .hero-stage[data-slide-theme="nano"] .hero-caption-body { font-size: 15px; line-height: 1.4; }
  .hero-stage[data-slide-theme="nano"] .hero-caption-link { margin-top: 6px; }
  .hero-stage[data-slide-theme="nano"] .slideshow-controls { right: 18px; bottom: 12px; }
}
@media (min-width: 761px) and (max-height: 650px) {
  body:not([data-page="home"]) :is(.welcome-copy h1, .bridal-copy h1, .products-hero h1, .wig-guide-intro h1, .review-intro h1, .visit-main h1) { font-size: 34px; line-height: 1.1; margin-block: 8px 12px; }
  body:not([data-page="home"]) :is(.welcome-copy h1, .bridal-copy h1, .products-hero h1, .wig-guide-intro h1, .review-intro h1, .visit-main h1) em { font-size: 1.3em; margin-block: 4px 12px; }
  .lab-intro h1 { font-size: 40px; }
  .gallery-page-intro h1 { font-size: 60px; }
  body:not([data-page="home"]) main > .gallery-page-hero:first-child { padding-block: 20px; }
  .bridal-copy .eyebrow { margin-bottom: 12px; }
}

/* Keep a generous photo even when a short window cannot show its full height.
   Captions and controls stay within the initially visible part of that photo. */
@media (min-width: 1001px) {
  .hero-stage { min-height: clamp(380px, 32vw, 580px); }
  .hero-stage .hero-caption { bottom: max(22px, calc(100% - var(--visible-photo-height) + 22px)); }
  .hero-stage .slideshow-controls { bottom: max(20px, calc(100% - var(--visible-photo-height) + 20px)); }
  .hero-stage:is([data-slide-theme="nano"], [data-slide-theme="studio"]) .hero-caption {
    top: min(50%, calc(var(--visible-photo-height) / 2));
    bottom: auto;
    transform: translateY(-50%);
  }
  .hero-stage .studio-reveal {
    top: min(50%, calc(var(--visible-photo-height) / 2));
  }
}
@media (min-width: 1001px) and (max-height: 650px) {
  .hero-stage[data-slide-theme="studio"] .hero-caption-title { font-size: 32px; max-width: 18ch; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-body { font-size: 16px; margin-top: 8px; line-height: 1.4; }
  .hero-stage[data-slide-theme="studio"] .hero-caption-link { min-height: 38px; margin-top: 10px; padding-block: 7px; }
  .hero-stage .studio-reveal { padding: 16px 20px; }
  .hero-stage :is(.reveal-eyebrow, .reveal-title, .reveal-options) { display: none; }
}


.studio-home-note { margin: 28px auto 0; max-width: var(--content); border-block: 1px solid var(--line); }
@media (max-width: 760px) {
  .studio-home-note .info-strip-action { flex-wrap: wrap; max-width: 100%; }
  .studio-home-note .info-strip-link { max-width: 100%; white-space: normal; }
}
