/* CAIAC motion (2026-10-26, Mike: "an AI company, it should feel a little more alive"). Same grammar as the studio sites:
   reveal on scroll once, staggered siblings, a slow living hero, current running through the circuit mark. Transforms
   and opacity only. Everything is off under prefers-reduced-motion, and nothing hides while the editor is open. */
:root{--mease:cubic-bezier(.2,.7,.2,1)}

/* reveal on scroll */
html.js .rv{opacity:0;transform:translateY(22px);transition:opacity .8s var(--mease),transform .8s var(--mease)}
html.js .rv.in{opacity:1;transform:none}
html.js .rv.rv-l{transform:translateX(-26px)}
html.js .rv.rv-s{transform:translateY(14px) scale(.97)}
html.js .rv.in.rv-l,html.js .rv.in.rv-s{transform:none}
html.js body.editing .rv{opacity:1;transform:none;transition:none}

/* the gold rules draw themselves */
html.js .hero:not(.still) .rule{transform:scaleX(0);transform-origin:50% 50%;transition:transform 1.1s var(--mease) 2.5s}
html.js .hero.ready .rule{transform:scaleX(1)}

/* hero entrance */
html.js .hero .logo{opacity:1}
html.js .hero:not(.still) .wrap h1,html.js .hero:not(.still) .wrap .meta,html.js .hero:not(.still) .wrap .regline{opacity:0;transform:translateY(14px);transition:opacity .7s var(--mease),transform .7s var(--mease)}
html.js .hero.ready .wrap h1{opacity:1;transform:none;transition-delay:2.7s}
html.js .hero.ready .wrap .meta{opacity:1;transform:none;transition-delay:2.85s}
html.js .hero.ready .wrap .regline{opacity:1;transform:none;transition-delay:3s}


/* THE OPENING (Mike 2026-10-26): from nothing, the I opens from its center like a tube TV in reverse, the A's slide out
   of the middle, then the C's, the traces grow out of the C's, and the nodes light one by one. Then the mark holds still. */
.hero .logo svg.opening .L{transform-box:fill-box;transform-origin:center}
.hero .logo svg.opening .L3{animation:openI .7s cubic-bezier(.2,.8,.2,1) .3s both}
.hero .logo svg.opening .L2{animation:slideR .7s cubic-bezier(.2,.8,.2,1) .85s both}
.hero .logo svg.opening .L4{animation:slideL .7s cubic-bezier(.2,.8,.2,1) .85s both}
.hero .logo svg.opening .L1{animation:slideR .8s cubic-bezier(.2,.8,.2,1) 1.25s both}
.hero .logo svg.opening .L5{animation:slideL .8s cubic-bezier(.2,.8,.2,1) 1.25s both}
@keyframes openI{from{transform:scaleY(.02);opacity:0}30%{opacity:1}to{transform:scaleY(1);opacity:1}}
@keyframes slideR{from{transform:translateX(70%);opacity:0}to{transform:none;opacity:1}}
@keyframes slideL{from{transform:translateX(-70%);opacity:0}to{transform:none;opacity:1}}
.hero .logo svg.opening .T path{stroke-dasharray:420;stroke-dashoffset:-420;animation:grow .9s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(1.9s + var(--k,0) * .09s)}
.hero .logo svg.opening .T circle{opacity:0;animation:nodeOn .35s ease-out both;animation-delay:calc(2.55s + var(--k,0) * .11s)}
@keyframes grow{to{stroke-dashoffset:0}}
@keyframes nodeOn{from{opacity:0;fill:#e8d3a2;stroke:#e8d3a2}60%{opacity:1;fill:#e8d3a2;stroke:#e8d3a2}to{opacity:1}}

/* the four topics float; cards and speakers lift to the hand */
.card.panel{animation:float 7s ease-in-out infinite;transition:transform .25s var(--mease),box-shadow .25s var(--mease)}
.card.panel:nth-child(2){animation-delay:-1.8s}.card.panel:nth-child(3){animation-delay:-3.6s}.card.panel:nth-child(4){animation-delay:-5.4s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.card.panel:hover,.spk:hover,#principles .card:hover{box-shadow:0 18px 40px rgba(0,0,0,.28);animation-play-state:paused;transform:translateY(-6px)}
.spk,#principles .card{transition:transform .25s var(--mease),box-shadow .25s var(--mease)}
.card .num{transition:color .3s ease}
.card.panel:hover .num{color:var(--gold-soft)}

/* schedule: the gold line draws down as you reach it, the dots arrive in order */
html.js .sched:before{transform:scaleY(0);transform-origin:50% 0;transition:transform 1.6s var(--mease) .2s}
html.js .sched.in:before{transform:scaleY(1)}
html.js .sched li:after{transform:scale(0);transition:transform .4s var(--mease)}
html.js .sched li.in:after{transform:scale(1)}

/* register buttons: a slow gold breath so the eye finds them */
.btn-reg{position:relative;animation:regring 3.4s ease-out infinite}
@keyframes regring{0%{box-shadow:0 0 0 0 rgba(184,151,90,.55)}55%{box-shadow:0 0 0 14px rgba(184,151,90,0)}100%{box-shadow:0 0 0 14px rgba(184,151,90,0)}}
.btn-reg:hover{animation:none}

/* photos: a slow drift inside their frames */
.fig img{transition:transform 1.2s var(--mease)}
.fig:hover img{transform:scale(1.03)}

@media (prefers-reduced-motion:reduce){
  html.js .rv,html.js .hero .logo,html.js .hero .wrap h1,html.js .hero .wrap .meta,html.js .hero .wrap .regline,html.js .hero .rule{opacity:1;transform:none;transition:none}
  .hero .logo svg g.spark{display:none}.hero .logo svg.opening .L,.hero .logo svg.opening .T path,.hero .logo svg.opening .T circle,.card.panel,.btn-reg{animation:none;opacity:1;stroke-dashoffset:0;transform:none}
  html.js .sched:before,html.js .sched li:after{transform:none;transition:none}
  }

/* ---- card icons (locked 2026-10-26) ---- */
.card{position:relative}.cicon{position:absolute;top:20px;right:22px;width:66px;height:66px;display:block}@media (max-width:640px){.cicon{top:18px;right:18px;width:58px;height:58px}}.cicon svg{width:100%;height:100%;overflow:visible;display:block}
.cicon .t{fill:none;stroke:var(--gold);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.cicon .n{fill:var(--navy-2);stroke:var(--gold);stroke-width:2.4}
.cicon .n.on{fill:var(--gold-soft);stroke:var(--gold-soft)}
.cicon .soft{stroke:var(--gold-soft)}
section.light .cicon .n{fill:var(--parch-2)}

.t{fill:none;stroke:var(--gold);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.n{fill:var(--navy-2);stroke:var(--gold);stroke-width:2.4}
.n.on{fill:var(--gold-soft);stroke:var(--gold-soft)}
.soft{stroke:var(--gold-soft)}
/* draw-in for every trace, then the per-icon move. .play restarts everything */
.cicon.play .d{stroke-dasharray:200;stroke-dashoffset:200;animation:draw 1.1s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
/* 1 Responsible Deployment: the gate. A switch arm swings closed, the far node lights, a spark runs on. */
.cicon.play .gate-arm{transform-origin:24px 32px;animation:gate 1.2s cubic-bezier(.3,1.3,.5,1) .9s both}
@keyframes gate{from{transform:rotate(-38deg)}to{transform:rotate(0)}}
.cicon.play .gate-spark{stroke-dasharray:6 200;stroke-dashoffset:0;animation:spark 1.6s linear 2.1s infinite}
@keyframes spark{from{stroke-dashoffset:60}to{stroke-dashoffset:-150}}
.cicon.play .gate-node{animation:light .5s ease 2s both,glow 2.4s ease-in-out 2.6s infinite}
@keyframes glow{0%,100%{opacity:1}50%{opacity:.55}}
@keyframes light{to{fill:#d9c08f;stroke:#d9c08f}}
/* 2 Ongoing Monitoring: the eye. The pulse line runs through it, the pupil node breathes. */
.cicon.play .mon-pulse{stroke-dasharray:140;stroke-dashoffset:140;animation:pulse 1.6s linear 1s infinite}
@keyframes pulse{from{stroke-dashoffset:140}to{stroke-dashoffset:-140}}
.cicon.play .mon-pupil{transform-origin:32px 32px;animation:breathe 2.4s ease-in-out 1s infinite}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
/* 3 Incident Response: the alarm. Rings ripple out from a node, then the trace reroutes around it. */
.cicon.play .inc-ring{transform-origin:32px 32px;opacity:0;animation:ring 2.2s ease-out 1s infinite}
.cicon.play .inc-ring.r2{animation-delay:1.55s}
@keyframes ring{0%{transform:scale(.3);opacity:.9}100%{transform:scale(1.6);opacity:0}}
.cicon.play .inc-reroute{stroke-dasharray:120;stroke-dashoffset:120;animation:draw 1.2s cubic-bezier(.2,.7,.2,1) 1.9s forwards}
.cicon.play .inc-old{animation:fade 1s ease 1.9s forwards}
@keyframes fade{to{opacity:.25}}
/* 4 Liability and Risk: the scale. The beam tips, swings back, settles level. */
.cicon.play .risk-beam{transform-origin:32px 24px;animation:tip 2.6s cubic-bezier(.3,.7,.3,1) 1s both,rock 7s ease-in-out 3.6s infinite}
@keyframes tip{0%{transform:rotate(-9deg)}40%{transform:rotate(7deg)}70%{transform:rotate(-3deg)}100%{transform:rotate(0)}}
@keyframes rock{0%,100%{transform:rotate(0)}30%{transform:rotate(2.5deg)}70%{transform:rotate(-2.5deg)}}
/* I Built around the attendee: the orbit. One person at the center; the room, six nodes on a ring, turns slowly around them. */
.cicon.play .orb-ring{transform-origin:32px 32px;animation:orbit 18s linear 1s infinite}
@keyframes orbit{to{transform:rotate(360deg)}}
.cicon.play .orb-ring circle{transform-origin:32px 32px}
.cicon.play .orb-person{animation:light .6s ease 1.2s both,glow 3s ease-in-out 2s infinite}
/* II Human protection and optimism: the north star rises over a shield, its rays reach, then it holds a slow twinkle. */
.cicon.play .opt-star{transform-origin:32px 22px;animation:rise 1.4s cubic-bezier(.2,.7,.2,1) .8s both,twinkle 3s ease-in-out 2.4s infinite}
@keyframes rise{from{transform:translateY(10px) scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes twinkle{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.cicon.play .opt-ray{stroke-dasharray:20;stroke-dashoffset:20;animation:draw .6s ease 1.9s forwards}

@media (prefers-reduced-motion:reduce){.cicon.play *{animation:none!important;stroke-dashoffset:0!important;opacity:1!important}}
