/* The Skin Is the Messenger. Shared reading aids live in glyco.css, carousels and widget frames in bal.css. */
.ec-hero-vis{width:100%;max-width:420px;justify-self:center}
.ec-hero-vis svg{width:100%;height:auto;display:block;overflow:visible}
.ec-rise{animation:ecrise 5s ease-in-out infinite}
@keyframes ecrise{0%{transform:translateY(16px);opacity:0}25%{opacity:1}70%{opacity:1}100%{transform:translateY(-70px);opacity:0}}
.ec-ring{transform-box:fill-box;transform-origin:50% 100%;animation:ecring 3.6s ease-out infinite;opacity:0}
@keyframes ecring{0%{transform:translateY(0) scale(.6);opacity:0}20%{opacity:.9}100%{transform:translateY(-90px) scale(1.5);opacity:0}}
.ec-up{animation:ecup 2.6s ease-in infinite}
@keyframes ecup{0%{transform:translateY(0);opacity:0}25%{opacity:.9}100%{transform:translateY(-46px);opacity:0}}
.ec-sink{animation:ecsink 2.8s ease-in-out infinite}
@keyframes ecsink{0%,100%{transform:translateY(0)}50%{transform:translateY(10px)}}
.ec-pulse{animation:ecpulse 1.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes ecpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}

/* wall slider */
.ec-wall-scale{display:flex;justify-content:space-between;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin:4px 0 14px}
.ec-wall-scale span:first-child{color:#C2306B}.ec-wall-scale span:last-child{color:#0F6E73}

/* itch loop + microbes + gut + march toggles */
.ec-itch .ec-itch-tog button.on,.ec-micro .ec-micro-tog button.on,.ec-gut .ec-gut-tog button.on{background:#0B4F53;border-color:#0B4F53;color:#fff}
.ec-itch .ec-itch-tog button[data-x="break"].on{background:#0F6E73;border-color:#0F6E73}
.ec-march-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 14px}
.ec-march-row button{font-family:inherit;cursor:pointer;min-height:64px;padding:10px 8px;border-radius:18px;border:1px solid #DDE2D3;background:#fff;color:#24301D;font-size:15px;font-weight:600;line-height:1.2;text-align:center}
.ec-march-row button span{display:block;margin-top:3px;font-size:12px;font-weight:500;color:#5A6650}
.ec-march-row button.on{background:#24301D;border-color:#24301D;color:#fff}
.ec-march-row button.on span{color:#E3E8D8}

/* trigger bucket */
.ec-stack-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}
.ec-stack-room{grid-column:1/-1}
.ec-stack-vis svg{max-height:300px;width:auto !important;max-width:100%;margin:0 auto}
.ec-stack-cols p.ff-k{margin:0 0 8px !important}
.ec-stack-add,.ec-stack-calm{display:flex;flex-wrap:wrap;gap:6px}
.ec-stack .ec-stack-add button.on{background:#C2306B;border-color:#C2306B;color:#fff}
.ec-stack .ec-stack-calm button.on{background:#0F6E73;border-color:#0F6E73;color:#fff}
.ec-stack .ec-stack-reset{background:transparent;border:0;text-decoration:underline;color:#5A6650;min-height:36px;padding:0 6px}

/* mechanism chain */
.ec-chain-dots{display:flex;align-items:center;justify-content:space-between;gap:0;margin:0 0 16px;padding:0 4px;position:relative}
.ec-chain-dots::before{content:"";position:absolute;left:24px;right:24px;top:50%;height:4px;margin-top:-2px;background:#DDE2D3;border-radius:2px}
.ec-chain-dots button{position:relative;z-index:1;font-family:inherit;cursor:pointer;width:44px;height:44px;border-radius:50%;border:2px solid #DDE2D3;background:#fff;color:#24301D;font-size:16px;font-weight:700;padding:0}
.ec-chain-dots button.done{border-color:#0F6E73;color:#0F6E73}
.ec-chain-dots button.on{background:#C2306B;border-color:#C2306B;color:#fff}
.ec-chain-card{padding:24px;border-radius:22px;background:#fff;border:1px solid #DDE2D3;min-height:230px}
.ec-chain-card p{margin:0 0 10px !important;font-size:16px !important;line-height:1.55 !important}
.ec-chain-card p.ec-chain-k{display:inline-flex;padding:5px 12px;border-radius:999px;font-size:11px !important;font-weight:700;letter-spacing:.14em;text-transform:uppercase;background:#D7ECEA;color:#0B4F53 !important;margin:0 0 12px !important}
.ec-chain-card p.ec-chain-h{font-size:24px !important;font-weight:600;line-height:1.2 !important;color:#24301D !important}
.ec-chain-nav{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
.ec-chain-nav button{font-family:inherit;cursor:pointer;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #DDE2D3;background:#fff;color:#24301D;font-size:15px;font-weight:600}
.ec-chain-nav button:disabled{opacity:.35;cursor:default}

/* testimony carousel */
.ec-stories .bl-car-track{align-items:stretch}
.bl-card.ec-t{padding:18px 18px 16px;min-height:0}
.bl-card.ec-t p.bl-card-h{font-size:20px !important;margin:0 0 12px !important}
.ec-shot{position:relative;max-height:380px;overflow:hidden;border-radius:16px;border:1px solid #EEF0E7;background:#F8F8F3;-webkit-overflow-scrolling:touch}
.bl-card.ec-t img{display:block;width:100%;height:auto}
.ec-note{font-size:14px !important;line-height:1.5 !important;color:#5A6650 !important;text-align:center;margin:6px 0 0 !important}

@media (max-width:640px){
.ec-stack-cols{grid-template-columns:1fr}
.ec-march-row{grid-template-columns:1fr 1fr}
.ec-stack .ec-stack-add button,.ec-stack .ec-stack-calm button{font-size:14px;padding:0 12px}
.ec-chain-dots button{width:38px;height:38px;font-size:15px}
.ec-chain-card p.ec-chain-h{font-size:21px !important}
}
@media (prefers-reduced-motion:reduce){.ec-rise,.ec-ring,.ec-up,.ec-sink,.ec-pulse{animation:none !important}}
@media (prefers-reduced-motion:reduce){.ec-ring{opacity:.6}}

/* tap to expand testimonies */
.ec-shot.more{cursor:pointer}
.ec-shot.more::after{content:"";position:absolute;left:0;right:0;bottom:0;height:110px;background:linear-gradient(rgba(255,255,255,0),#fff 78%);pointer-events:none}
.ec-shot.open{max-height:none}
.ec-shot.open::after{display:none}
.ec-more{position:absolute;z-index:1;left:50%;bottom:12px;transform:translateX(-50%);white-space:nowrap;padding:8px 14px;border-radius:999px;background:#24301D;color:#fff;font-size:13px;font-weight:600;pointer-events:none}
.ec-shot.open .ec-more{position:static;display:block;width:max-content;margin:10px auto 12px;transform:none}
.ec-shot.more:focus-visible{outline:3px solid #33422A;outline-offset:3px}
.ec-stories .bl-car-track.has-open{align-items:flex-start}
.gc-root.short .ar-sec>.ar-note.gc-keep{display:block}
.ec-stories .bl-car-dots{gap:4px;flex-wrap:wrap;justify-content:center;max-width:62vw}
.ec-stories .bl-car-dots button{width:7px;height:7px}
.ec-stories .bl-car-dots button.on{width:18px}
