/* Icon line-draw + hero motion (TEST). Hidden states apply only under html.hi-on
   (set by JS when IntersectionObserver exists and reduced-motion is off), so
   no-JS and reduced-motion visitors see the static page. Animate transform and
   opacity only, except small raster mask-wipes (72px icons, paint is cheap).
   Never hide a hero <img> (LCP). */
.hi-on .hi-icon[data-hi-ready]:not(.is-in) path,
.hi-on .hi-icon[data-hi-ready]:not(.is-in) line,
.hi-on .hi-icon[data-hi-ready]:not(.is-in) polyline,
.hi-on .hi-icon[data-hi-ready]:not(.is-in) circle,
.hi-on .hi-icon[data-hi-ready]:not(.is-in) ellipse,
.hi-on .hi-icon[data-hi-ready]:not(.is-in) rect{
  stroke-dasharray: var(--hi-len, 120);
  stroke-dashoffset: var(--hi-len, 120);
}
.hi-on .hi-icon.is-in path,
.hi-on .hi-icon.is-in line,
.hi-on .hi-icon.is-in polyline,
.hi-on .hi-icon.is-in circle,
.hi-on .hi-icon.is-in ellipse,
.hi-on .hi-icon.is-in rect{
  stroke-dasharray: var(--hi-len, 120);
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1) var(--hi-d, 0ms);
}
/* Highlight underlines (the pink ink stroke under .hl words) */
.hi-on .hl svg path{
  stroke-dasharray: var(--hi-len, 240);
  stroke-dashoffset: var(--hi-len, 240);
}
.hi-on .hl.is-in svg path,
.hi-on .is-hi .hl svg path{
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1) .15s;
}

/* Raster Ink & Wash icons stay static this release (no brush wipe). */


/* Homepage hero: the mobile LCP is often .lead, so H1, eyebrow and lead
   stay painted at load. Only CTAs and the trust row enter. */
.hi-on .hero .hero-grid > div:first-child > .hero-ctas,
.hi-on .hero .hero-grid > div:first-child > .trust{
  opacity: 0;
  translate: 0 14px;
}
.hi-on .hero.is-hi .hero-grid > div:first-child > .hero-ctas,
.hi-on .hero.is-hi .hero-grid > div:first-child > .trust{
  opacity: 1;
  translate: 0 0;
  transition: opacity .6s cubic-bezier(.2,.8,.2,1) var(--hi-d, 0ms), translate .7s cubic-bezier(.2,.8,.2,1) var(--hi-d, 0ms);
}

/* Service-page hero copy: the LCP is the image, so the text may enter. */
.hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .idx,
.hi-on .sp-hero:not(.is-hi) .sp-hero-copy > h1,
.hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .lead,
.hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .sp-note,
.hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .sp-ctas,
.hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .sp-quick{
  opacity: 0;
  translate: 0 16px;
}
.hi-on .sp-hero.is-hi .sp-hero-copy > .idx,
.hi-on .sp-hero.is-hi .sp-hero-copy > h1,
.hi-on .sp-hero.is-hi .sp-hero-copy > .lead,
.hi-on .sp-hero.is-hi .sp-hero-copy > .sp-note,
.hi-on .sp-hero.is-hi .sp-hero-copy > .sp-ctas,
.hi-on .sp-hero.is-hi .sp-hero-copy > .sp-quick{
  opacity: 1;
  translate: 0 0;
  transition: opacity .65s cubic-bezier(.2,.8,.2,1) var(--hi-d, 0ms), translate .75s cubic-bezier(.2,.8,.2,1) var(--hi-d, 0ms);
}


/* Homepage / shared count-up: space reserved, tabular figures, fade in as they tick. */
.hi-count{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.hi-on .hi-count:not(.is-in){opacity:0}
.hi-on .hi-count.is-in{opacity:1;transition:opacity .35s ease}
/* Decorative ink overlay on the already-visible hero image. Never applied to the <img>. */
.hi-hero-fx{
  position: absolute;
  inset: 0;
  border-radius: 28px;
  rotate: 1.2deg;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.hi-hero-fx .hi-wash{
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(60% 70% at 80% 15%, #efb3d466 0%, transparent 60%),
    radial-gradient(70% 80% at 10% 90%, #c9bfec55 0%, transparent 62%),
    linear-gradient(118deg, #f7f3fbcc 0%, #fce1ed88 36%, #fff0 68%);
  opacity: 0;
  translate: -12% 0;
}
.hi-hero-fx.is-in .hi-wash{
  animation: hiWash 1.1s cubic-bezier(.2,.8,.2,1) .05s both;
}
@keyframes hiWash{
  0%{opacity:.28; translate:-10% 0}
  55%{opacity:.12; translate:6% 0}
  100%{opacity:0; translate:22% 0}
}
.hi-hero-fx .hi-ink{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hi-hero-fx .hi-ink path{
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.hi-hero-fx.is-in .hi-ink path{
  animation: hiInkDraw 1.15s cubic-bezier(.2,.8,.2,1) var(--hi-d, 0ms) both, hiInkFade .5s ease 1.25s forwards;
}
@keyframes hiInkDraw{to{stroke-dashoffset:0}}
@keyframes hiInkFade{to{opacity:0}}

@media (prefers-reduced-motion: reduce){
  .hi-on .hi-count:not(.is-in){opacity:1!important}
  .hi-on .hi-icon[data-hi-ready]:not(.is-in) path,
  .hi-on .hi-icon[data-hi-ready]:not(.is-in) line,
  .hi-on .hi-icon[data-hi-ready]:not(.is-in) polyline,
  .hi-on .hi-icon[data-hi-ready]:not(.is-in) circle,
  .hi-on .hi-icon[data-hi-ready]:not(.is-in) ellipse,
  .hi-on .hi-icon[data-hi-ready]:not(.is-in) rect,
  .hi-on .hl svg path,
  .hi-on .hero .hero-grid > div:first-child > .idx,
  .hi-on .hero .hero-grid > div:first-child > .lead,
  .hi-on .hero .hero-grid > div:first-child > .hero-ctas,
  .hi-on .hero .hero-grid > div:first-child > .trust,
  .hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .idx,
  .hi-on .sp-hero:not(.is-hi) .sp-hero-copy > h1,
  .hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .lead,
  .hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .sp-note,
  .hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .sp-ctas,
  .hi-on .sp-hero:not(.is-hi) .sp-hero-copy > .sp-quick{
    opacity: 1 !important;
    translate: none !important;
    stroke-dashoffset: 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hi-hero-fx{display:none}
}
