/* Staying Steady · motion layer
   One calm intro on load, a different reveal per section, light interactions.
   Everything here only runs under html.mx (set before paint) and never with reduced motion. */
@media (prefers-reduced-motion:no-preference){html.mx{scroll-behavior:smooth}}
.mx-progress{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#59A356,#B1D99D);z-index:1000;pointer-events:none}

@keyframes mxFade{from{opacity:0}to{opacity:1}}
@keyframes mxUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes mxDrop{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:none}}
@keyframes mxZoom{0%{opacity:0;transform:scale(1.14)}25%{opacity:1}100%{opacity:1;transform:scale(1)}}
@keyframes mxCard{from{opacity:0;transform:translateY(34px) scale(.98);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes mxLine{from{opacity:0;transform:translateY(105%);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:none;clip-path:inset(0 0 -20% 0)}}
@keyframes mxPop{0%{opacity:0;transform:scale(.86)}70%{opacity:1;transform:scale(1.03)}100%{opacity:1;transform:none}}
@keyframes mxClip{from{clip-path:inset(100% 0 0 0);transform:scale(1.12)}to{clip-path:inset(0 0 0 0);transform:none}}
@keyframes mxLeft{from{opacity:0;transform:translateX(-48px) rotate(-1deg)}to{opacity:1;transform:none}}
@keyframes mxRight{from{opacity:0;transform:translateX(48px) rotate(1deg)}to{opacity:1;transform:none}}
@keyframes mxPanel{from{opacity:0;transform:scale(.94);border-radius:60px}to{opacity:1;transform:none}}
@keyframes mxSlide{from{opacity:0;transform:translateX(-26px)}to{opacity:1;transform:none}}
@keyframes mxFlip{from{opacity:0;transform:perspective(800px) rotateX(-28deg) translateY(22px)}to{opacity:1;transform:none}}
@keyframes mxDraw{from{stroke-dashoffset:60}to{stroke-dashoffset:0}}
@keyframes mxBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes mxRule{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* ---------- Intro on load ---------- */
/* backwards, not both: a transform left on the header traps the fixed mobile drawer inside it */
html.mx .site-header{animation:mxDrop .7s cubic-bezier(.2,.7,.2,1) backwards}
html.mx .mh-bg{animation:mxZoom 2.6s cubic-bezier(.16,.7,.2,1) both}
html.mx .mh-card{animation:mxCard 1s .3s cubic-bezier(.2,.7,.2,1) both}
html.mx .mh-card h1 span{display:block;animation:mxLine .95s cubic-bezier(.2,.75,.2,1) both}
html.mx .mh-card h1 span:nth-child(1){animation-delay:.55s}
html.mx .mh-card h1 span:nth-child(2){animation-delay:.75s}
html.mx .mh-lead{animation:mxUp .8s 1s cubic-bezier(.2,.7,.2,1) both}
html.mx .mh-btn{animation:mxPop .7s 1.2s cubic-bezier(.2,.8,.2,1) both}
html.mx .sh-copy>*{animation:mxUp .8s cubic-bezier(.2,.7,.2,1) both}
html.mx .sh-copy>*:nth-child(1){animation-delay:.15s}
html.mx .sh-copy>*:nth-child(2){animation-delay:.3s}
html.mx .sh-copy>*:nth-child(3){animation-delay:.45s}
html.mx .sh-copy>*:nth-child(4){animation-delay:.6s}
html.mx .sh-photo{animation:mxClip 1.3s .25s cubic-bezier(.2,.7,.2,1) both}
html.mx .sh-media::before{animation:mxFade 1s .6s both}

/* ---------- Scroll reveals: hidden until the section enters ---------- */
html.mx [data-mx] .mx-h{opacity:0}
html.mx [data-mx].mx-in .mx-h{animation:mxUp .8s cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx].mx-in .mx-h::after{content:"";display:block;width:56px;height:3px;margin:14px auto 0;border-radius:3px;background:#DFC48E;transform-origin:50% 50%;animation:mxRule .7s .35s cubic-bezier(.2,.7,.2,1) both}

/* Support, your way: cards rise in turn, pictures unveil from below */
html.mx [data-mx=rise] .way{opacity:0}
html.mx [data-mx=rise].mx-in .way{animation:mxUp .8s calc(var(--mx-d,0ms) + 150ms) cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx=rise].mx-in .way-img img{animation:mxClip 1.1s calc(var(--mx-d,0ms) + 250ms) cubic-bezier(.2,.7,.2,1) both}

/* Find help: the panel opens, cards slide in from the left one by one */
html.mx [data-mx=panel] .hp-panel{opacity:0}
html.mx [data-mx=panel].mx-in .hp-panel{animation:mxPanel .9s cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx=panel] .hp-card{opacity:0}
html.mx [data-mx=panel].mx-in .hp-card{animation:mxSlide .7s calc(var(--mx-d,0ms) + 400ms) cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx=panel].mx-in .hp-ic{animation:mxPop .6s calc(var(--mx-d,0ms) + 650ms) cubic-bezier(.2,.8,.2,1) both}

/* For you and your family: the two cards meet from both sides */
html.mx [data-mx=split] .ff-card{opacity:0}
html.mx [data-mx=split].mx-in .ff-card:nth-child(1){animation:mxLeft .9s .15s cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx=split].mx-in .ff-card:nth-child(2){animation:mxRight .9s .3s cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx=split].mx-in .ff-img img{animation:mxClip 1.2s .35s cubic-bezier(.2,.7,.2,1) both}

/* Why you can trust it: cards flip up, icons draw themselves */
html.mx [data-mx=pop] .tr-card{opacity:0}
html.mx [data-mx=pop].mx-in .tr-card{animation:mxFlip .8s calc(var(--mx-d,0ms) + 150ms) cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx=pop].mx-in .tr-ic svg *{stroke-dasharray:60;animation:mxDraw 1.2s calc(var(--mx-d,0ms) + 500ms) ease-out both}

/* Any other section on any page: the content block rises */
html.mx [data-mx=rise-any]>.wrap,html.mx [data-mx=rise-any]>div{opacity:0}
html.mx [data-mx=rise-any].mx-in>.wrap,html.mx [data-mx=rise-any].mx-in>div{animation:mxUp .9s cubic-bezier(.2,.7,.2,1) both}

/* Once an element has finished entering, hand transforms back to interactions */
html.mx .mx-done{animation:none!important;opacity:1!important;clip-path:none!important;filter:none!important}

/* ---------- Interactions ---------- */
.way,.ff-card,.tr-card,.hp-card{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.way.mx-done,.ff-card.mx-done{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--lift,0px))}
.way:hover,.ff-card:hover{--lift:-6px;box-shadow:0 28px 50px -30px rgba(0,57,38,.45)!important}
.way-img img,.ff-img img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.way:hover .way-img img,.ff-card:hover .ff-img img{transform:scale(1.06)}
.tr-card.mx-done:hover{transform:translateY(-5px);box-shadow:0 22px 40px -28px rgba(0,57,38,.45)}
.tr-card:hover .tr-ic{background:#B1D99D;transition:background .3s}
.tr-card:hover .tr-ic svg{animation:mxBob 1.2s ease-in-out infinite}
.hp-panel{position:relative;overflow:hidden}
.hp-panel::before{content:"";position:absolute;inset:0;background:radial-gradient(420px circle at var(--gx,50%) var(--gy,-30%),rgba(255,255,255,.65),transparent 60%);pointer-events:none;transition:opacity .4s}
.hp-panel>*{position:relative}
.hp-card.mx-done:hover{transform:translateY(-4px)}
.hp-card:hover .hp-ic{transform:rotate(-8deg) scale(1.08);transition:transform .3s}
.hp-card b::after{content:" \2192";display:inline-block;opacity:0;transform:translateX(-6px);transition:opacity .25s,transform .25s;color:#59A356}
.hp-card:hover b::after{opacity:1;transform:none}
.mh-btn{will-change:transform}

/* Mobile: a calm sticky start button once the hero has gone by */
.mx-sticky{position:fixed;left:16px;right:16px;bottom:16px;z-index:900;display:none;justify-content:center;align-items:center;gap:10px;padding:15px 20px;border-radius:999px;background:#003926;color:#fff;font-weight:800;text-decoration:none;box-shadow:0 16px 34px -14px rgba(0,57,38,.65);transform:translateY(140%);transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.mx-sticky::after{content:"\2192"}
.mx-sticky.show{transform:none}
@media (max-width:760px){.mx-sticky{display:flex}}
body:has(.drawer.open) .mx-sticky{display:none!important}

/* Site-wide (v2) */
/* Page heroes: the copy rises in turn, the picture settles */
html.mx .mx-hero .hero-inner>div>*,html.mx .mx-hero .sh-copy>*,html.mx .mx-hero>.wrap>*:not(.sh-media):not(.hero-inner):not(.sh-grid){animation:mxUp .8s cubic-bezier(.2,.7,.2,1) both}
html.mx .mx-hero .hero-inner>div>*:nth-child(1),html.mx .mx-hero>.wrap>*:nth-child(1){animation-delay:.15s}
html.mx .mx-hero .hero-inner>div>*:nth-child(2),html.mx .mx-hero>.wrap>*:nth-child(2){animation-delay:.3s}
html.mx .mx-hero .hero-inner>div>*:nth-child(3),html.mx .mx-hero>.wrap>*:nth-child(3){animation-delay:.45s}
html.mx .mx-hero .hero-inner>div>*:nth-child(4),html.mx .mx-hero>.wrap>*:nth-child(4){animation-delay:.6s}
html.mx .ww-hero .hero-bg img,html.mx .ab-hero .sh-photo img{animation:mxZoom 2.4s cubic-bezier(.16,.7,.2,1) both}
html.mx .ab-hero .sh-photo{animation:none!important}
/* Any section with cards: the heading rises, cards follow one by one */
html.mx [data-mx=rise-any].mx-cards>.wrap,html.mx [data-mx=rise-any].mx-cards>div{opacity:1;animation:none}
html.mx [data-mx].mx-cards .mx-item{opacity:0}
html.mx [data-mx].mx-cards.mx-in .mx-item{animation:mxUp .75s calc(var(--mx-d,0ms) + 120ms) cubic-bezier(.2,.7,.2,1) both}
html.mx [data-mx].mx-cards .mx-h{opacity:0}
html.mx [data-mx].mx-cards.mx-in .mx-h{animation:mxUp .8s cubic-bezier(.2,.7,.2,1) both}
/* Members' dashboard zones */
html.mx section.zone[data-mx=rise-any]:not(.mx-cards)>*{opacity:0}
html.mx section.zone[data-mx=rise-any].mx-in:not(.mx-cards)>*{animation:mxUp .8s cubic-bezier(.2,.7,.2,1) both}
/* Card interactions everywhere */
.card,.aw-item,.tool-card,.tile,.wb-card,.need-card{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.card.mx-done:hover,.card:not(.mx-item):hover,.aw-item:hover,.tool-card:hover,.tile:hover,.need-card:hover{transform:translateY(-5px);box-shadow:0 26px 48px -32px rgba(0,57,38,.5)}
.card .card-media img,.tile img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.card:hover .card-media img,.tile:hover img{transform:scale(1.05)}
.aw-item:hover .aw-ic{transform:rotate(-6deg) scale(1.06);transition:transform .3s}
.btn,.mh-btn,.sv-explore,.sv-add{transition:transform .2s,background .2s,box-shadow .2s}
.btn:active,.mh-btn:active,.sv-add:active{transform:scale(.97)}
@media (prefers-reduced-motion:reduce){
  .mx-progress{display:none}
  .way,.ff-card,.tr-card,.hp-card,.way-img img,.ff-img img,.mx-sticky{transition:none!important}
  .tr-card:hover .tr-ic svg{animation:none}
}