/* Text folds in its own lane; the separate sparkle layer survives the handoff. */
.type-visual { display: contents; }
.type-heading { word-spacing: .06em; }
.type-word { display: inline-block; white-space: nowrap; letter-spacing: 0; }
.type-char { display: inline-block; position: relative; letter-spacing: 0; margin-inline-end: -.028em; transform-origin: 50% 85%; backface-visibility: hidden; }
.type-ink { display: inline-block; padding: .14em .18em; margin: -.14em -.18em; }
.type-active .type-char { text-shadow: 0 0 calc(var(--type-glint, 0) * .12em) rgb(189 134 203 / calc(var(--type-glint, 0) * .3)); }
/* Room for serifs and descenders, including letters turning through 3D space. */
h1.type-heading, h2.type-heading, h3.type-heading { line-height: 1.1; }
.hero h1.type-heading { line-height: 1.02; }
@media (min-width: 1700px) { .hero h1.type-heading { font-size: 122px; } }
.type-heading .hero-line { overflow: visible; }
.pane-copy h3.type-heading, .is-pinned .pane-copy h3.type-heading { line-height: 1.1; max-width: 100%; }
.section-heading > div, .welcome-copy, .neighborhood-grid > div, .estimate-copy, .detail-hero > div, .detail-grid > div { min-width: 0; }
/* Padded ink boxes preserve italic overhang; the moving color stays on the ink. */
.motion-on .hero h1.type-heading em, .motion-on .estimate-copy h2.type-heading em { color: inherit; background: none; animation: none; }
.motion-on .type-heading em .type-ink {
  color: transparent;
  background: linear-gradient(110deg, #432b46 15%, #a05091 33%, #c08238 43%, #8b55a5 53%, #432b46 68%);
  background-size: 250% 100%; background-clip: text; -webkit-background-clip: text;
  animation: type-shimmer 8s ease-in-out infinite;
  animation-delay: var(--type-shimmer-delay, 0s);
  filter: drop-shadow(0 0 .055em #bd86cb55);
}
.motion-on .estimate-copy h2.type-heading em .type-ink {
  background-image: linear-gradient(110deg, #d9c8e9 15%, #fbf4e6 34%, #efcd72 44%, #efa1b5 54%, #d9c8e9 68%);
}
.type-sparkle-layer { position: fixed; z-index: 46; top: 0; left: 0; width: 0; height: 0; pointer-events: none; visibility: hidden; }
.type-handoff-star { position: absolute; width: calc(var(--star-size) * var(--handoff-amplify, 1)); height: calc(var(--star-size) * var(--handoff-amplify, 1)); margin: calc(var(--star-size) * var(--handoff-amplify, 1) / -2); filter: drop-shadow(0 1px 0 #fbf4e6) drop-shadow(0 0 5px #fbf4e6b3); }
.type-sparkle-layer.is-active .type-handoff-star { will-change: transform; }
.type-handoff-star::before, .type-handoff-star::after { content: ''; position: absolute; inset: 0; background: var(--star-color); clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%); }
.type-handoff-star::after { inset: 37%; background: #fff9e9; }
.motion-paused .type-sparkle-layer { display: none; }
@media (prefers-reduced-motion: reduce), print {
  .type-char { transform: none !important; opacity: 1 !important; text-shadow: none !important; }
  .type-ink { animation: none !important; filter: none !important; }
  .type-sparkle-layer { display: none !important; }
}
@media print { .type-heading em .type-ink { color: inherit !important; background: none !important; } }
@media (hover: none) and (pointer: coarse) {
  .motion-on .type-heading em .type-ink { filter: none; }
  .type-handoff-star { filter: none; }
  .type-char { backface-visibility: visible; }
}
