/* =====================================================================
   CASE INTRO — brand-colour disc title card
   --ac: the client's brand colour. Inner disc and type are mixed from it.
   ===================================================================== */
.ci{--ac:#F2404F;position:fixed;inset:0;z-index:95;overflow:hidden;cursor:pointer;pointer-events:auto}
.ci-outer{position:absolute;inset:0;background:var(--ac);clip-path:circle(0 at var(--ox,50%) var(--oy,50%))}
.ci-inner{position:absolute;left:50%;top:50%;width:max(64vw,124vh);aspect-ratio:1;margin:calc(max(64vw,124vh) / -2) 0 0 calc(max(64vw,124vh) / -2);border-radius:50%;
  background:color-mix(in srgb,var(--ac) 36%,#120d0c);display:grid;place-content:center;justify-items:center;gap:clamp(12px,1.6vw,22px);text-align:center;
  transform:scale(0)}
.ci-client{margin:0;font:800 clamp(12px,1vw,15px)/1 var(--display);letter-spacing:.28em;text-transform:uppercase;color:var(--ac);opacity:0;transform:translateY(12px)}
.ci-title{margin:0;max-width:min(14ch,78vw);font:900 clamp(44px,7vw,120px)/.9 var(--display);font-stretch:122%;letter-spacing:-.035em;text-transform:uppercase;
  color:color-mix(in srgb,var(--ac) 16%,#F4F1EA);text-wrap:balance}
.ci-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.06em;margin-bottom:-.06em}
.ci-w > span{display:inline-block;transform:translateY(110%)}

/* play */
.ci.go .ci-outer{animation:ci-outer .6s cubic-bezier(.76,0,.24,1) forwards}
.ci.go .ci-inner{animation:ci-inner .9s cubic-bezier(.16,1,.3,1) .32s forwards}
.ci.go .ci-client{animation:ci-up .6s cubic-bezier(.16,1,.3,1) .62s forwards}
.ci.go .ci-w > span{animation:ci-word .8s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(.7s + var(--i) * 60ms)}
@keyframes ci-outer{to{clip-path:circle(150% at var(--ox,50%) var(--oy,50%))}}
@keyframes ci-inner{0%{transform:scale(0)}100%{transform:scale(1)}}
@keyframes ci-up{to{opacity:1;transform:none}}
@keyframes ci-word{to{transform:none}}

/* open out: inner disc swells, everything fades to reveal the case */
.ci.out{pointer-events:none}
.ci.out .ci-outer{clip-path:circle(150% at var(--ox,50%) var(--oy,50%));animation:ci-fade .55s ease .1s forwards}
.ci.out .ci-inner{transform:scale(1);animation:ci-swell .65s cubic-bezier(.76,0,.24,1) forwards}
.ci.out .ci-client,.ci.out .ci-w > span{opacity:1;transform:none;animation:ci-text-out .3s ease forwards}
@keyframes ci-swell{to{transform:scale(2.4);opacity:0}}
@keyframes ci-fade{to{opacity:0}}
@keyframes ci-text-out{to{opacity:0;transform:translateY(-30%)}}
