/* =====================================================================
   Chief Rainmaker — The Rain Core (homepage hero artwork)

   Five independent artwork layers, stacked in one 1448 x 1086 stage:
     1  .rc-bg        blue and gold energy background
     2  .rc-floor     reflective floor and illuminated rings
     3  .rc-cards     seven floating information panels
     4  .rc-pedestal  branded pedestal
     5  .rc-drop      raindrop and lightning bolt

   Every layer is placed with --x/--y/--w/--h in artwork pixels, so the
   whole composition scales with the stage. rain-core.js adds the light
   overlays and drives transform + opacity only (GPU friendly).

   Two empty .rc-slot elements are reserved for the next phase (an
   interactive rain canvas) so it can be dropped in without touching the
   hero animation: [data-slot="rain-back"] sits between the background and
   the floor, [data-slot="rain-front"] sits in front of the raindrop.

   rain-core-energy.js adds the light that travels through the background,
   floor and pedestal, and the live charts on the three right-hand panels.
   The scenery itself never moves.
   ===================================================================== */

.rain-core{position:relative;width:100%;max-width:660px;margin-inline:auto;line-height:0}

.rc-stage{position:relative;width:100%;aspect-ratio:1448/1086;isolation:isolate;overflow:hidden;
  -webkit-user-select:none;user-select:none;
  /* same soft edge fade the flat hero image had */
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  mask-composite:intersect}

/* ---------- layer placement ---------- */
.rc-layer,.rc-card{position:absolute;
  left:calc(var(--x,0) / 1448 * 100%);top:calc(var(--y,0) / 1086 * 100%);
  width:calc(var(--w,1448) / 1448 * 100%);height:calc(var(--h,1086) / 1086 * 100%);
  pointer-events:none;transform:translate3d(0,0,0);will-change:transform;backface-visibility:hidden}
.rc-cards{left:0;top:0;width:100%;height:100%;will-change:auto;transform:none}
.rc-card{pointer-events:auto;cursor:pointer}

/* site.css fades and caps every image inside .shield-art; the layers opt out */
.rain-core .rc-stage img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;
  border-radius:0;-webkit-mask-image:none;mask-image:none;-webkit-user-drag:none}

.rc-slot{position:absolute;inset:0;pointer-events:none}
.rc-slot:empty{display:none}

/* ---------- light overlays (built by rain-core.js) ----------
   Each "lit" overlay is a pre-brightened copy of its own layer; only its
   opacity is animated, so brightening the scene never repaints anything. */
.rc-lit{opacity:0;will-change:opacity}
.rain-core .rc-bg .rc-lit{filter:brightness(1.9) saturate(1.3)}
.rain-core .rc-floor .rc-lit{filter:brightness(1.75) saturate(1.2)}
.rain-core .rc-pedestal .rc-lit{filter:brightness(1.65) saturate(1.3)}
.rain-core .rc-drop .rc-lit{filter:brightness(1.42) saturate(1.3) contrast(1.04)}
.rain-core .rc-card .rc-lit{filter:brightness(1.55) saturate(1.25) drop-shadow(0 0 10px rgba(255,200,110,.9))}
.rain-core .rc-card[data-tone="cyan"] .rc-lit{filter:brightness(1.55) saturate(1.25) drop-shadow(0 0 10px rgba(90,200,255,.95))}

/* pulls the background back while the core charges, so the light has somewhere to go */
.rc-dim{position:absolute;inset:0;opacity:0;will-change:opacity;
  background:radial-gradient(46% 50% at 49% 60%,rgba(2,5,14,.1),rgba(2,5,14,.8) 100%)}

/* ---------- travelling light (drawn by rain-core-energy.js) ----------
   One canvas over each scenery layer. It only ever holds brightened pieces of
   that same layer, so screening it on top reads as light moving through the
   artwork while the artwork stays exactly where it is. */
.rc-energy{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}
/* low light hanging just above the floor rings */
.rc-floorhaze{position:absolute;inset:0;opacity:.3;pointer-events:none;will-change:opacity;mix-blend-mode:screen;
  background:
    radial-gradient(19% 20% at 49.9% 45%,rgba(60,170,255,0) 62%,rgba(60,170,255,.3) 86%,rgba(60,170,255,0) 118%),
    radial-gradient(36% 34% at 47.6% 50%,rgba(255,170,60,0) 66%,rgba(255,170,60,.2) 88%,rgba(255,170,60,0) 116%);
  -webkit-mask-image:linear-gradient(180deg,transparent 8%,#000 30%);mask-image:linear-gradient(180deg,transparent 8%,#000 30%)}

/* the levitation beam: a soft column of light from the pedestal's core up into the raindrop */
.rc-beam{position:absolute;left:48.9%;top:50.5%;width:17%;height:17.6%;opacity:.2;pointer-events:none;will-change:opacity;
  transform:translateX(-50%);mix-blend-mode:screen;
  background:
    radial-gradient(22% 58% at 50% 100%,rgba(225,248,255,.95),rgba(120,220,255,.5) 55%,rgba(120,220,255,0) 100%),
    radial-gradient(50% 100% at 50% 100%,rgba(70,190,255,.6),rgba(40,140,255,.2) 55%,rgba(40,140,255,0) 100%)}
/* and where it lands: cool light on the underside of the drop, clipped to the drop's own shape */
.rc-uplight{position:absolute;inset:0;opacity:.16;pointer-events:none;will-change:opacity;mix-blend-mode:screen;
  background:radial-gradient(42% 26% at 49% 100%,rgba(190,240,255,.9),rgba(80,195,255,.45) 45%,rgba(40,140,255,0) 100%);
  -webkit-mask:url(rain-core/drop-724.webp) center/100% 100% no-repeat;mask:url(rain-core/drop-724.webp) center/100% 100% no-repeat}

/* the glow where the drop and the pedestal almost touch */
.rc-coreglow{position:absolute;left:50%;top:21%;width:44%;aspect-ratio:1;border-radius:50%;opacity:0;
  transform:translate(-50%,-50%) scaleY(.34);will-change:opacity;
  background:radial-gradient(closest-side,rgba(255,255,255,.95),rgba(150,225,255,.7) 22%,rgba(40,140,255,.28) 55%,rgba(30,107,255,0) 100%)}

/* the drop's own light */
.rc-halo{position:absolute;left:50%;top:58%;width:150%;aspect-ratio:1;border-radius:50%;opacity:0;
  transform:translate(-50%,-50%);will-change:opacity;
  background:radial-gradient(closest-side,rgba(70,170,255,.5),rgba(60,140,255,.22) 42%,rgba(255,186,90,.12) 62%,rgba(255,186,90,0) 78%)}
.rc-boltglow{position:absolute;inset:0;opacity:0;will-change:opacity;mix-blend-mode:screen;
  background:radial-gradient(34% 30% at 50% 60%,rgba(255,236,170,.9),rgba(255,190,80,.5) 48%,rgba(255,170,60,0) 100%);
  -webkit-mask:url(rain-core/drop-724.webp) center/100% 100% no-repeat;mask:url(rain-core/drop-724.webp) center/100% 100% no-repeat}

/* arcs and the pulses that carry energy to the panels */
.rc-fxcanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

/* ---------- the raindrop's hit area: its own silhouette, not a box ---------- */
.rc-strike{position:absolute;left:32.87%;top:4.42%;width:32.6%;height:63.72%;z-index:5;
  margin:0;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;
  -webkit-clip-path:polygon(54.2% 2.6%,58.1% 4.6%,62.7% 9.8%,66.1% 15.0%,70.6% 20.2%,74.6% 25.4%,80.3% 30.6%,82.6% 35.8%,86.4% 41.0%,90.0% 46.2%,93.2% 51.4%,95.6% 56.6%,97.5% 61.8%,97.5% 67.1%,96.6% 72.3%,94.3% 77.5%,90.5% 82.7%,84.3% 87.9%,74.2% 93.1%,58.3% 96.8%,48.7% 98.6%,40.3% 96.8%,25.4% 93.1%,15.3% 87.9%,9.3% 82.7%,5.5% 77.5%,2.8% 72.3%,2.1% 67.1%,2.3% 61.8%,3.6% 56.6%,6.1% 51.4%,8.3% 46.2%,14.2% 41.0%,19.3% 35.8%,24.2% 30.6%,30.1% 25.4%,35.8% 20.2%,41.1% 15.0%,45.1% 9.8%,49.8% 4.6%);
  clip-path:polygon(54.2% 2.6%,58.1% 4.6%,62.7% 9.8%,66.1% 15.0%,70.6% 20.2%,74.6% 25.4%,80.3% 30.6%,82.6% 35.8%,86.4% 41.0%,90.0% 46.2%,93.2% 51.4%,95.6% 56.6%,97.5% 61.8%,97.5% 67.1%,96.6% 72.3%,94.3% 77.5%,90.5% 82.7%,84.3% 87.9%,74.2% 93.1%,58.3% 96.8%,48.7% 98.6%,40.3% 96.8%,25.4% 93.1%,15.3% 87.9%,9.3% 82.7%,5.5% 77.5%,2.8% 72.3%,2.1% 67.1%,2.3% 61.8%,3.6% 56.6%,6.1% 51.4%,8.3% 46.2%,14.2% 41.0%,19.3% 35.8%,24.2% 30.6%,30.1% 25.4%,35.8% 20.2%,41.1% 15.0%,45.1% 9.8%,49.8% 4.6%)}
.rc-strike:focus{outline:none}
.rain-core.is-focus .rc-drop > img:first-of-type{filter:drop-shadow(0 0 2px #cdeeff) drop-shadow(0 0 12px rgba(76,192,255,.95))}

/* ---------- cue line + sound switch under the artwork ---------- */
.rc-cue{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:10px 14px;margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.3;letter-spacing:.02em}
.rc-cue .rc-hint{opacity:.85}
.sound-toggle{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:rgba(3,8,23,.6);color:var(--muted);font:600 13px/1 var(--display);letter-spacing:.04em;cursor:pointer;position:relative;z-index:2;
  transition:color .2s ease,border-color .2s ease}
.sound-toggle:hover{color:var(--text);border-color:var(--blue)}
.sound-toggle[aria-pressed="true"]{color:var(--text);border-color:rgba(76,192,255,.6)}
.sound-toggle:focus-visible{outline:2px solid #4cc0ff;outline-offset:3px}
.sound-toggle .ico-off,.sound-toggle[aria-pressed="false"] .ico-on{display:none}
.sound-toggle[aria-pressed="false"] .ico-off{display:inline}

/* ---------- housekeeping ---------- */
.rain-core.is-paused .rc-dash *{animation-play-state:paused}
.rc-cue .rc-note{flex-basis:100%;text-align:center;font-size:12px;opacity:.7}

/* ---------- right-hand panels: the live dashboard (built by rain-core-energy.js) ----------
   Geometry is in each panel image's own pixels. At rest every chart shows its
   finished state; adding .is-play replays the build. --i is an element's place
   in its row, --po offsets each panel's ambient loop so they take turns. */
.rc-dash{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.rcd-num{font-family:var(--display,"Sora"),system-ui,sans-serif;font-weight:800;fill:url(#rcdNum);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rc-dash rect,.rc-dash g,.rc-dash circle,.rc-dash path{transform-box:fill-box}

/* ambient: light running round the border, and a highlight crossing the chart */
.rcd-edge{fill:none;stroke:#e9fbff;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:.07 .93;stroke-dashoffset:0;opacity:0;
  animation:rcdEdge 7.8s linear infinite;animation-delay:var(--pd,0s)}
.rcd-edge.soft{stroke:#56ccff;stroke-width:6;stroke-dasharray:.1 .9;filter:blur(2px)}
@keyframes rcdEdge{0%{stroke-dashoffset:0;opacity:0}6%{opacity:.9}52%{opacity:.9}60%{stroke-dashoffset:-1;opacity:0}100%{stroke-dashoffset:-1;opacity:0}}
.rcd-sheen{fill:#fff;opacity:0;animation:rcdSheen 9s ease-in-out infinite;animation-delay:calc(var(--po,0s) + 2.4s + var(--i,0)*.11s)}
@keyframes rcdSheen{0%,100%{opacity:0}2.2%{opacity:.5}5.5%{opacity:0}}

/* Lead Generation */
.rcd-bar,.rcd-rb,.rcd-rg{transform-origin:50% 100%}
.rcd-trend{fill:none;stroke:#ffcf2e;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:0}
.rcd-pt{transform-origin:50% 50%}
.rcd-pt .halo{opacity:.28}
.rcd-arrow{transform-origin:100% 0}
.rcd-ping{fill:none;stroke:#ffd95a;stroke-width:2;opacity:0;transform-origin:50% 50%}
.is-play .rcd-bar{animation:rcdGrow .5s cubic-bezier(.2,.8,.25,1) both;animation-delay:calc(var(--i)*90ms)}
.is-play .rcd-trend{animation:rcdDraw .95s cubic-bezier(.45,.1,.4,1) .5s both}
.is-play .rcd-pt{animation:rcdPop .5s cubic-bezier(.2,.9,.3,1.3) both;animation-delay:calc(.5s + var(--f)*.9s)}
.is-play .rcd-pt .halo{animation:rcdHalo .7s ease-out both;animation-delay:calc(.5s + var(--f)*.9s)}
.is-play .rcd-arrow{animation:rcdPop .35s cubic-bezier(.2,.9,.3,1.3) 1.36s both}
.is-play .rcd-ping{animation:rcdPing .8s ease-out 1.5s both}
.is-play .rcd-num{animation:rcdNum .35s ease-out both}
@keyframes rcdGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes rcdDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes rcdPop{0%{transform:scale(0);opacity:0}60%{opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes rcdHalo{0%{opacity:0}35%{opacity:.95}100%{opacity:.28}}
@keyframes rcdPing{0%{opacity:0;transform:scale(.6)}12%{opacity:.95}100%{opacity:0;transform:scale(3.4)}}
@keyframes rcdNum{from{opacity:.35}to{opacity:1}}

/* Customer Acquisition */
.rcd-person .dim{opacity:0}
.rcd-person .rcd-sheen{fill:#fff}
.rcd-aura{opacity:0}
.is-play .rcd-person .dim{animation:rcdDim 1.5s linear both}
.is-play .rcd-person .full{animation:rcdFill .42s ease-out both;animation-delay:calc(.12s + var(--i)*.2s)}
.is-play .rcd-person .rcd-sheen{animation:rcdSurge .5s ease-out both;animation-delay:calc(.12s + var(--i)*.2s)}
.is-play .rcd-aura{animation:rcdAura 1s ease-out 1.25s both}
@keyframes rcdDim{0%,70%{opacity:.75}100%{opacity:0}}
@keyframes rcdFill{from{opacity:0}to{opacity:1}}
@keyframes rcdSurge{0%{opacity:0}30%{opacity:.85}100%{opacity:0}}
@keyframes rcdAura{0%{opacity:0}30%{opacity:1}100%{opacity:0}}

/* Revenue Growth: blue first, then the gold that sits on top of it */
.rcd-glint{fill:none;stroke:#fff3c4;stroke-width:3;stroke-linecap:round;stroke-dasharray:.13 .87;stroke-dashoffset:.13;opacity:0;filter:drop-shadow(0 0 2px #ffc94a)}
.is-play .rcd-rb{animation:rcdGrow .42s cubic-bezier(.2,.8,.25,1) both;animation-delay:calc(var(--i)*100ms)}
.is-play .rcd-rg{animation:rcdGrow .36s cubic-bezier(.2,.8,.25,1) both;animation-delay:calc(var(--i)*100ms + 360ms)}
.is-play .rcd-glint{animation:rcdGlint .9s ease-in-out 1.35s both}
@keyframes rcdGlint{0%{stroke-dashoffset:.13;opacity:0}12%{opacity:1}88%{opacity:1}100%{stroke-dashoffset:-.87;opacity:0}}

@media (prefers-reduced-motion:reduce){
  /* no travelling light, no arcs, no chart builds: brightness cross-fades only, every chart in its finished state */
  .rc-energy,.rc-fxcanvas{display:none}
  .rc-layer,.rc-card{transform:none !important}
  .rc-dash *{animation:none !important}
}

/* ---------- hero rain (assets/rain-fx.js) ----------
   Three canvases, none of which take pointer events:
   .rain-back sits behind all hero content, .rain-mid sits inside the artwork
   behind the raindrop, .rain-front is a sparse layer in front of everything. */
.rain-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:block}
.home-hero > .rain-back{z-index:0}
.home-hero > .rain-front{z-index:3}
@media (prefers-reduced-motion:reduce){.rain-canvas{display:none}}
