/* Echnify motion layer: states for fx.js, cursor, preloader, off-canvas, hamburger,
   back to top, footer wordmark. Everything here degrades to a static, readable page. */

/* Pre-animation states, only while JS is running (class set in <head>, removed by fail-safe) */
html.ech-js [data-ech-split]{visibility:hidden}
html.ech-js [data-ech-reveal]:not([data-ech-reveal="mask"]){opacity:0}
html.ech-js [data-ech-stagger]>*{opacity:0}
html.ech-preloading .ech-line>span{animation-play-state:paused}
html.ech-preloading,html.ech-preloading body{overflow:hidden}
[data-ech-parallax]{will-change:transform}
html.ech-smooth,html.ech-smooth body{scroll-behavior:auto}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* Header hide on scroll */
.ech-header{transition:transform .5s var(--ech-ease),background .3s,border-color .3s}
.ech-header.is-hidden{transform:translateY(-100%)}
body.ech-menu-open .ech-header{transform:none}

/* Hamburger + off-canvas */
.ech-header__right{display:flex;align-items:center;gap:1.2rem;position:relative}
.ech-ham{display:inline-flex;align-items:center;gap:.9rem;height:46px;padding:0 .4rem 0 1rem;border:0;background:none;color:var(--ech-white);font:500 .9375rem var(--ech-font);cursor:pointer}
.ech-ham__i{position:relative;width:46px;height:46px;border-radius:50%;border:1px solid var(--ech-line);transition:background .3s,border-color .3s}
.ech-ham__i i{position:absolute;left:14px;right:14px;height:2px;background:var(--ech-white);transition:transform .4s var(--ech-ease),background .3s}
.ech-ham__i i:first-child{top:19px}.ech-ham__i i:last-child{top:25px}
.ech-ham:hover .ech-ham__i{background:var(--ech-lime);border-color:var(--ech-lime)}
.ech-ham:hover .ech-ham__i i{background:var(--ech-on-lime,#000)}
.ech-ham:hover .ech-ham__i i:first-child{transform:translateY(2px)}
.ech-ham:hover .ech-ham__i i:last-child{transform:translateY(-2px)}
@media (max-width:640px){.ech-header__cta,.ech-ham__t{display:none}}

.ech-oc{position:fixed;inset:0;z-index:300;visibility:hidden;pointer-events:none}
.ech-oc__shade{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .5s}
.ech-oc__panel{position:absolute;top:0;right:0;bottom:0;width:min(640px,100%);background:#050505;border-left:1px solid var(--ech-line);padding:1.4rem clamp(1.4rem,3vw,3rem) 2rem;display:flex;flex-direction:column;gap:2rem;overflow:auto;transform:translateX(102%);transition:transform .8s var(--ech-ease);overscroll-behavior:contain}
body.ech-menu-open .ech-oc{visibility:visible;pointer-events:auto}
body.ech-menu-open .ech-oc__shade{opacity:1}
body.ech-menu-open .ech-oc__panel{transform:none}
.ech-oc__top{display:flex;align-items:center;justify-content:space-between;min-height:56px}
.ech-oc__brand{font-weight:900;font-size:1.5rem;letter-spacing:-.04em;color:var(--ech-white)}
.ech-oc__brand i{font-style:normal;color:var(--ech-lime)}
.ech-oc__close{position:relative;width:46px;height:46px;border-radius:50%;border:1px solid var(--ech-line);background:none;cursor:pointer;transition:background .3s,border-color .3s,transform .5s var(--ech-ease)}
.ech-oc__close span{position:absolute;left:14px;right:14px;top:22px;height:2px;background:var(--ech-white)}
.ech-oc__close span:first-child{transform:rotate(45deg)}.ech-oc__close span:last-child{transform:rotate(-45deg)}
.ech-oc__close:hover{background:var(--ech-lime);border-color:var(--ech-lime);transform:rotate(90deg)}
.ech-oc__close:hover span{background:var(--ech-on-lime,#000)}
.ech-oc__list{list-style:none;margin:0;padding:0}
.ech-oc__list li{border-bottom:1px solid var(--ech-line);overflow:hidden}
.ech-oc__list a{display:block;padding:.35em 0;color:var(--ech-white);font-size:clamp(2rem,4.2vw,3rem);font-weight:700;letter-spacing:-.035em;line-height:1.05;transition:color .25s,padding .4s var(--ech-ease)}
.ech-oc__list a:hover,.ech-oc__list .current-menu-item>a{color:var(--ech-lime);padding-left:.25em}
.ech-oc__link{display:block}
.ech-oc__meta{display:flex;flex-direction:column;gap:1.8rem;margin-top:auto}
.ech-oc__intro h3{margin-bottom:.6rem}
.ech-oc__intro p{max-width:34ch;color:var(--ech-muted);margin-bottom:1.2rem}
.ech-oc__cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 2rem;font-size:.9375rem}
.ech-oc__cols h4{font-size:.9375rem;font-weight:500;color:var(--ech-muted);margin-bottom:.5rem}
.ech-oc__cols a:hover{color:var(--ech-lime)}
.ech-oc__cols p{margin:0}
.ech-social{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.ech-social--row{flex-direction:row;gap:1.4rem;flex-wrap:wrap}
.ech-social a:hover{color:var(--ech-lime)}

/* Back to top */
.ech-top{position:fixed;right:clamp(14px,2vw,28px);bottom:clamp(14px,2vw,28px);z-index:90;width:52px;height:52px;border-radius:50%;border:1px solid var(--ech-line);background:rgba(0,0,0,.75);color:var(--ech-white);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .4s,transform .5s var(--ech-ease),background .3s,color .3s,border-color .3s}
.ech-top.is-on{opacity:1;transform:none;pointer-events:auto}
.ech-top:hover{background:var(--ech-lime);border-color:var(--ech-lime);color:var(--ech-on-lime,#000)}

/* Preloader */
.ech-pre{position:fixed;inset:0;z-index:1000;background:var(--ech-black);color:var(--ech-white);display:flex;align-items:center;justify-content:center}
.ech-pre__in{display:flex;align-items:baseline;gap:1.2rem;font-family:var(--ech-font-head);font-weight:var(--ech-head-w);text-transform:uppercase;letter-spacing:-.04em;line-height:1}
.ech-pre__word{font-size:clamp(2.4rem,7vw,6.4rem)}
.ech-pre__n{font-family:var(--ech-font);font-size:clamp(1rem,2vw,1.6rem);font-weight:500;color:var(--ech-lime);font-variant-numeric:tabular-nums;letter-spacing:0;min-width:3ch}
.ech-pre__bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--ech-line)}
.ech-pre__bar i{display:block;height:100%;background:var(--ech-lime);transform:scaleX(0);transform-origin:left}

/* Custom cursor (desktop with a mouse; fx.js adds the classes) */
html.ech-has-cursor,html.ech-has-cursor a,html.ech-has-cursor button,html.ech-has-cursor summary,html.ech-has-cursor [role="button"],html.ech-has-cursor label{cursor:none}
html.ech-has-cursor input,html.ech-has-cursor textarea,html.ech-has-cursor select{cursor:text}
.ech-cur{position:fixed;left:0;top:0;z-index:2000;pointer-events:none;opacity:0;transition:opacity .3s;will-change:transform}
html.ech-cursor-on .ech-cur{opacity:1}
.ech-cur--dot{width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--ech-lime)}
.ech-cur--ring{width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;border:1.5px solid rgba(255,255,255,.55);display:flex;align-items:center;justify-content:center;transition:opacity .3s,width .35s var(--ech-ease),height .35s var(--ech-ease),margin .35s var(--ech-ease),background .3s,border-color .3s}
.ech-cur--ring.is-hot{width:64px;height:64px;margin:-32px 0 0 -32px;border-color:var(--ech-lime);background:var(--ech-lime-soft)}
.ech-cur--ring.is-label{width:92px;height:92px;margin:-46px 0 0 -46px;background:var(--ech-lime);border-color:var(--ech-lime)}
.ech-cur--ring.is-down{width:30px;height:30px;margin:-15px 0 0 -15px}
.ech-cur__label{font:700 .8125rem/1 var(--ech-font);color:var(--ech-on-lime,#000);opacity:0;transition:opacity .2s;text-align:center;padding:0 .4rem}
.ech-cur--ring.is-label .ech-cur__label{opacity:1}
html.ech-cursor-on .ech-cur--ring.is-label~.ech-cur--dot{opacity:0}

/* Footer: call to action, pills, wordmark */
.ech-footer{padding-top:6rem}
.ech-footer__cta{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;flex-wrap:wrap;margin-bottom:3.5rem}
.ech-footer__cta h2{font-size:clamp(2.2rem,5.6vw,5.6rem);max-width:13ch;line-height:1}
.ech-pills{list-style:none;margin:0 0 4rem;padding:0;display:flex;flex-wrap:wrap;gap:.7rem}
.ech-pills a{display:inline-flex;padding:.7rem 1.3rem;border:1px solid var(--ech-line);border-radius:999px;font-weight:500;transition:background .3s,border-color .3s,color .3s}
.ech-pills a:hover{background:var(--ech-lime-hot);border-color:var(--ech-lime-hot);color:var(--ech-on-lime,#000)}
.ech-footer__office{margin-top:.8rem;color:var(--ech-muted)}
.ech-footer__office strong{color:var(--ech-white)}
.ech-wm{margin:5rem 0 0;line-height:.8;user-select:none}
.ech-wm__row{display:flex;justify-content:space-between;width:100%;font-family:var(--ech-font-head);font-weight:var(--ech-head-w);text-transform:uppercase;letter-spacing:-.04em;color:var(--ech-white);font-size:clamp(3rem,13.5vw,16rem);line-height:.9}
.ech-wm__mask{display:block;overflow:hidden;padding:.04em .07em .28em;margin:0 -.07em -.2em}
.ech-wm__ch{display:block;transition:color .25s;transform-origin:50% 100%;will-change:transform}
.ech-wm__ch:hover{color:var(--ech-lime)}
.ech-wm__mask.is-open{overflow:visible}
.ech-wm__sp{width:.22em}
.ech-footer__base{margin-top:1rem}

@media (max-width:1024px){.ech-oc__panel{width:100%}}
@media (prefers-reduced-motion:reduce){
	html.ech-js [data-ech-reveal],html.ech-js [data-ech-stagger]>*,html.ech-js .ech-wm__ch{opacity:1;transform:none}
	html.ech-js [data-ech-split]{visibility:visible}
}

/* v1.7.2 inline header on desktop, off-canvas on tablet/mobile */
.ech-ham--m{display:none}
@media (max-width:1024px){.ech-header .ech-nav{display:none}.ech-header .ech-burger{display:none}.ech-ham--m{display:inline-flex}}

/* Homepage Results: the spend pill is never narrower than its own label and amount. */
.ech-wrap .ech-ro__bar--s i{min-width:10.75rem!important}
@media (max-width:767px){.ech-wrap .ech-ro__bar--s i{min-width:8.6rem!important}}

/* Sticky sections (Approach chapters and others): "overflow:hidden" on a section breaks position:sticky.
   "clip" trims overflow exactly the same way but lets sticky images and rails stay pinned. */
@supports (overflow:clip){.ech-w{overflow:clip}}

/* Homepage "Approach" steps on mobile: keep the big step number clear of the title and text. */
@media (max-width:860px){.ech-pt__step>div{padding-right:4.6rem}.ech-pt .ech-pt__n{font-size:3.4rem;line-height:1;top:0}}
