/* Cornerstone Insurance, LOGO lane (cil-): the three cornerstone slabs stack on first view.
   At rest the header shows the untouched logo.png. The overlay exists only while it plays.
   Slab outlines traced from logo.png (720x183): the cuts run through the transparent gaps. */

/* Hide the real logo only while the stack plays (class set by the inline head script / cil-logo.js). */
html.cil-anim img[src^="/static/images/global/logo.png"]:not(.cil-c),
.cil-host.cil-playing > img:not(.cil-c) { visibility: hidden; }

.cil-host { position: relative; }
.cil-stack { position: absolute; display: block; pointer-events: none; z-index: 1; }
.cil-c {
  position: absolute; left: 0; top: 0; display: block;
  width: 100%; height: 100%; max-width: none;
  will-change: transform, opacity;
}
/* s0 = top blue slab, s1 = middle blue slab, s2 = orange base, w = wordmark */
.cil-s0 { clip-path: polygon(0 0, 35.42% 0, 35.42% 48.81%, 15.76% 38.14%, 0 52.2%); transform-origin: 19% 45.9%; }
.cil-s1 { clip-path: polygon(0 52.2%, 15.76% 38.14%, 35.42% 48.81%, 35.42% 61.73%, 15.76% 58.63%, 0 62.03%); transform-origin: 19% 60.1%; }
.cil-s2 { clip-path: polygon(0 62.03%, 15.76% 58.63%, 35.42% 61.73%, 35.42% 100%, 0 100%); transform-origin: 19% 82%; }
.cil-w  { clip-path: inset(0 0 0 35.42%); }
.cil-puff {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,162,174,.75) 0, rgba(150,162,174,.35) 45%, rgba(150,162,174,0) 70%);
  opacity: 0; will-change: transform, opacity;
}

/* Belt and braces: reduced motion never hides or animates anything. */
@media (prefers-reduced-motion: reduce) {
  html.cil-anim img[src^="/static/images/global/logo.png"]:not(.cil-c),
  .cil-host.cil-playing > img:not(.cil-c) { visibility: visible; }
  .cil-stack { display: none; }
}
