/* Porul motion layer: gentle, slow, transform-only. Uses the individual `rotate`, `scale` and `translate`
   properties so it never fights the existing transforms (parallax, tilt, hover). Everything switches off
   under prefers-reduced-motion, and motion.js pauses anything that is off-screen. */

@keyframes m-sway{0%,100%{rotate:-4deg}50%{rotate:4deg}}
@keyframes m-spin{to{rotate:360deg}}
@keyframes m-breathe{0%,100%{scale:1}50%{scale:1.08}}
@keyframes m-bob{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes m-in-up{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@keyframes m-pol-in{from{opacity:0;translate:0 44px;scale:.94}to{opacity:1;translate:0 0;scale:1}}
@keyframes m-drift{0%{transform:translate3d(0,-10%,0) rotate(0);opacity:0}8%{opacity:.85}92%{opacity:.85}100%{transform:translate3d(var(--dx,40px),calc(var(--h,600px) + 40px),0) rotate(var(--rot,200deg));opacity:0}}
@keyframes m-bump{40%{transform:scale(1.55)}}
@keyframes m-glow{0%,100%{box-shadow:0 0 0 0 rgba(241,180,54,0)}50%{box-shadow:0 0 0 7px rgba(241,180,54,.22)}}

/* leaves sway, rangoli turn and breathe */
.lf,.cr-leaf{animation:m-sway var(--md,6.5s) ease-in-out var(--mdl,0s) infinite}
.kol,.cr-orn{animation:m-spin var(--md,90s) linear infinite,m-breathe 7s ease-in-out var(--mdl,0s) infinite}
.kol.m-rev,.cr-orn.m-rev{animation-direction:reverse,normal}
.s-forest.tear::after,.s-mustard.tear::after,.phero::before,.phero::after{animation:m-spin 110s linear infinite}

/* hero: words settle in, polaroids drop in then float */
.cr-hero .eyebrow,.cr-hero h1,.cr-hero .lead,.cr-hero .btn-row,.cr-hero .tags,.phero .kicker,.phero h1{animation:m-in-up .85s cubic-bezier(.2,.8,.2,1) both}
.cr-hero h1,.phero h1{animation-delay:.12s}.cr-hero .lead{animation-delay:.26s}.cr-hero .btn-row{animation-delay:.38s}.cr-hero .tags{animation-delay:.5s}
.cr-pol{animation:m-pol-in .95s cubic-bezier(.2,.8,.2,1) both,m-bob 7.5s ease-in-out 1s infinite}
.cr-pol:nth-child(2){animation-delay:.18s,1.3s;animation-duration:.95s,8.5s}
.cr-pol:nth-child(3){animation-delay:.36s,1.6s;animation-duration:.95s,6.8s}
.cr-note{animation:m-in-up 1s cubic-bezier(.2,.8,.2,1) .9s both}
.pol{animation:m-bob 8s ease-in-out var(--mdl,0s) infinite}

/* falling petals in inner-page heroes (added by motion.js) */
.cr-hero .wrap{z-index:1}
.m-petals{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.m-petal{position:absolute;top:0;width:var(--s,22px);height:calc(var(--s,22px)*1.6);opacity:0;animation:m-drift var(--t,16s) linear var(--dl,0s) infinite}
.m-petal svg{width:100%;height:100%;display:block}

/* hover and click feedback */
.cr-proc .cf-card{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.cr-proc .cf-card:hover{transform:translateY(-8px)}
.hc img{transition:transform .9s cubic-bezier(.2,.8,.2,1)}.hc{overflow:hidden}.hc:hover img{transform:scale(1.05)}
.pc .ph,.pc .pm img{transition:transform .8s cubic-bezier(.2,.8,.2,1)}.pc:hover .ph,.pc:hover .pm img{transform:scale(1.05)}
.btn,.cf-btn{transition:transform .2s,background .2s,box-shadow .2s}
.btn-gold:hover,.cf-btn.rust:hover{box-shadow:0 8px 20px rgba(166,68,15,.28)}
.btn-gold.m-pulse{animation:m-glow 3.2s ease-in-out infinite}
.logo .tam,.logo2 .tam{transition:transform .5s cubic-bezier(.2,.8,.2,1)}.logo:hover .tam,.logo2:hover .tam{transform:rotate(-8deg) scale(1.08)}
.badge.bump{animation:m-bump .5s ease}

/* paused while off-screen */
.m-off,.m-off::before,.m-off::after{animation-play-state:paused!important}

@media(max-width:760px){.m-petals{display:none}.s-forest.tear::after,.s-mustard.tear::after,.phero::before,.phero::after{animation:none}}
@media(prefers-reduced-motion:reduce){
  .lf,.cr-leaf,.kol,.cr-orn,.cr-pol,.pol,.cr-note,.cr-hero .eyebrow,.cr-hero h1,.cr-hero .lead,.cr-hero .btn-row,.cr-hero .tags,.phero .kicker,.phero h1,.btn-gold.m-pulse,.badge.bump,
  .s-forest.tear::after,.s-mustard.tear::after,.phero::before,.phero::after{animation:none!important}
  .m-petals{display:none}
  .cr-proc .cf-card,.hc img,.pc .ph,.pc .pm img,.logo .tam,.logo2 .tam{transition:none}
  .cr-proc .cf-card:hover,.hc:hover img,.pc:hover .ph,.pc:hover .pm img,.logo:hover .tam,.logo2:hover .tam{transform:none}
}
