/* Each word keeps its original place in the line while it settles into it. */
.motion-heading .chrome-run {
  color: inherit;
  background: none;
  -webkit-text-stroke: 0;
  filter: none;
}
.motion-heading .motion-word {
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.hero-copy h1 .chrome-run .motion-word { font-size: inherit; }
@media (prefers-reduced-motion: reduce) {
  .motion-heading .motion-word {
    transform: none;
    opacity: 1;
  }
}
.process-list .process-drawing {
  width: clamp(64px, 6.4vw, 100px);
  height: auto;
  display: block;
  margin: 0 0 .32rem -.35rem;
  overflow: visible;
  stroke: #e7a5d4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}
.process-drawing .body { fill: #231424; stroke: #efb9db; }
.process-drawing .etched { stroke: #b271a1; }
.process-drawing .trace { stroke: #ffbde6; stroke-width: 2.65; }
.process-drawing .accent { fill: #f3a0d5; stroke: #ffe3f4; stroke-width: 1.35; }

@media (prefers-reduced-motion: no-preference) {
  .reveal.motion-controlled.entered { animation: none; }
  .motion-word {
    --lean: -11deg;
    --drift: -.12em;
    --lift: .38em;
    --loose: clamp(0, calc(1 - (var(--assembly, 1) - var(--word-order) * .22) / .78), 1);
    transform-origin: 40% 70%;
    opacity: calc(1 - .18 * var(--loose));
    transform:
      translate(calc(var(--drift) * var(--loose)), calc(var(--lift) * var(--loose)))
      rotate(calc(var(--lean) * var(--loose)))
      scale(calc(1 - .065 * var(--loose)));
  }
  .motion-word[data-tilt="1"] { --lean: 9deg; --drift: .13em; --lift: -.24em; }
  .motion-word[data-tilt="2"] { --lean: -6deg; --drift: .14em; --lift: .28em; }
  .motion-word[data-tilt="3"] { --lean: 7deg; --drift: -.13em; --lift: -.18em; }
  .pillar-list > li .count {
    transform-origin: 60% 78%;
    transform: translateY(calc((1 - var(--step,1)) * .26em)) rotate(calc((1 - var(--step,1)) * -9deg));
    opacity: calc(.64 + var(--step,1) * .36);
  }
  .pillar-list > li > span:last-child {
    transform: translateX(calc((1 - var(--step,1)) * .55em));
    opacity: calc(.64 + var(--step,1) * .36);
  }
  .pillar-list > li:not(:last-child)::after {
    transform: rotate(19deg) scaleY(calc(.2 + .8 * var(--step,1)));
    transform-origin: center bottom;
  }
  .service-list > li { position: relative; }
  .service-list > li::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(90deg, #eab5db 2%, #b66ba3 42%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .38s cubic-bezier(.16,.7,.17,1);
  }
  .service-list > li svg {
    translate: calc((1 - var(--step,1)) * -.32rem) 0;
    rotate: calc((1 - var(--step,1)) * -7deg);
    transition: transform .32s cubic-bezier(.2,.75,.22,1);
  }
  .service-visual .slice-one { --spread: -.42rem; --turn: -2.8deg; --rise: .16rem; }
  .service-visual .slice-two { --spread: 0px; --turn: -.3deg; --rise: -.28rem; }
  .service-visual .slice-three { --spread: .46rem; --turn: 2.6deg; --rise: .06rem; }
  .service-visual .slice {
    translate: calc(var(--spread) * var(--fan,1)) calc(var(--rise) * var(--fan,1));
    rotate: calc(var(--turn) * var(--fan,1));
    transition: transform .52s cubic-bezier(.22,.71,.16,1);
  }
  .process-drawing {
    transform: translateY(calc((1 - var(--step,1)) * .4rem)) rotate(calc((1 - var(--step,1)) * -4deg));
    transform-origin: 30% 68%;
  }
  .process-drawing .trace {
    stroke-dasharray: 1;
    stroke-dashoffset: calc((1 - var(--step,1)) * .97);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-list li:hover svg, .service-list li:focus-within svg { transform: translateY(-2px) rotate(-8deg) scale(1.09); }
  .service-list li:hover::after, .service-list li:focus-within::after { transform: scaleX(1); }
  .service-visual:hover .slice-one { transform: skewY(-10deg) rotate(1deg) translateX(-3%); }
  .service-visual:hover .slice-two { transform: skewY(-10deg) rotate(5deg) translateY(-3%); }
  .service-visual:hover .slice-three { transform: skewY(-10deg) rotate(8deg) translateX(3%); }
}
@media (max-width: 650px) {
  .process-list li:has(.process-drawing) {
    grid-template-columns: 52px 1.4rem minmax(0, 1fr);
    grid-template-areas: "drawing number title" "drawing number detail";
    align-items: center;
    gap: .2rem .72rem;
    padding: .77rem 0;
  }
  .process-list .process-drawing { grid-area: drawing; width: 58px; margin: 0 0 0 -.35rem; }
  .process-list li > span { grid-area: number; }
  .process-list li > strong { grid-area: title; }
  .process-list li > p { grid-area: detail; }
}
@media (forced-colors: active) {
  .process-drawing .body { fill: Canvas; stroke: CanvasText; }
  .process-drawing .etched, .process-drawing .trace, .process-drawing .accent { stroke: CanvasText; }
  .process-drawing .accent { fill: CanvasText; }
}
