/* The homepage name is display type; the established ivory/lilac identity and P.P reveal stay intact. */
.hb {
  --hb-title-size: clamp(2.75rem, calc(1rem + 9.6vw), 4.5rem);
  --head-b: max(12rem, calc(92px + 1.92 * var(--fs)));
  min-block-size: max(520px, 32rem);
}
.hb .hb-brand-title {
  max-inline-size: 100%;
  min-block-size: 1em;
  margin: 0;
  color: var(--hb-ink);
  font: 700 var(--hb-title-size)/1.05 var(--hb-display);
  letter-spacing: -.05em;
  text-wrap: initial;
}
.hb-brand-title .pdh-name { display: inline-block; }
.hb-brand-title .pdh-initial { color: var(--hb-lilac); }
/* One introduction: the initials open into the name without a second slide on the whole heading. */
.hb-motion .hb .hb-brand-title { animation: none; }

@media (min-width: 768px) and (min-aspect-ratio: 5/4) {
  .hb { --hb-title-size: clamp(3rem, calc(2rem + 5.8vw), 8rem); }
  .hb .hb-head { max-inline-size: 46%; }
  .hb-brand-title .pdh-name {
    display: inline-grid;
    grid-template-columns: auto;
    text-align: start;
  }
}

/* Keep separate text/product columns when a narrow landscape window uses enlarged text. */
@media (min-width: 768px) and (max-width: 1100px) and (min-aspect-ratio: 5/4) {
  .hb { --px: max(calc(var(--bx) + .691 * var(--wi)), calc(75 * var(--u) + .5rem)); }
}


/* A single, deliberate introduction: hold the initials, open the name, then settle the last word.
   The final text boxes stay in place throughout; only the letters and their reveal move. */
@media (prefers-reduced-motion: no-preference) {
  .hb-brand-title .pdh-name--intro {
    animation: hb-name-arrive 500ms cubic-bezier(.23, 1, .32, 1) both;
  }
  @keyframes hb-name-arrive {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .hb-brand-title .pdh-name--intro .pdh-word--pixel {
    animation: pdh-initial-open 1200ms cubic-bezier(.77, 0, .175, 1) 500ms both;
  }
  /* In the single-line layout, this mask follows the moving P so letters never collide. */
  .hb-brand-title .pdh-name--intro .pdh-tail--pocket {
    animation: pdh-tail-open 1200ms cubic-bezier(.77, 0, .175, 1) 500ms both;
  }
  .hb-brand-title .pdh-name--intro .pdh-tail--pixel {
    animation: hb-name-settle 800ms cubic-bezier(.23, 1, .32, 1) 1580ms both;
  }
  .hb-brand-title .pdh-name--intro .pdh-word--pocket > .pdh-initial::after {
    animation: pdh-dot-away 200ms cubic-bezier(.23, 1, .32, 1) 500ms both;
  }
  @keyframes hb-name-settle {
    from { opacity: 0; transform: translateY(.08em); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) and (min-aspect-ratio: 5/4) {
  /* Let the P clear the first row before the tails appear, with an 80ms stagger. */
  .hb-brand-title .pdh-name--intro .pdh-tail--pocket {
    animation: hb-name-settle 800ms cubic-bezier(.23, 1, .32, 1) 1500ms both;
  }
}
