/* Site motion finish (approved 2026-11-14, Gate A "F2 word spring" with the green sheen Let's Talk).
   Shared by the homepage, Field Notes reading pages and every page with the site navigation.
   Classes prefixed fx- are added by assets/js/motion.js; html.fx-on is set in the head when scripts run.
   Rules are scoped html:root so they keep the specificity they were approved and verified with. */
/* Baseline layer */
html:root .mc-metric{font-variant-numeric:tabular-nums}
/* Atmosphere: page heads only, never behind body text */
html:root .fx-atmos{position:absolute;left:0;top:0;width:100%;height:var(--fx-h,100vh);z-index:-1;pointer-events:none;overflow:hidden;-webkit-mask-image:linear-gradient(#000 0,#000 35%,transparent 100%);mask-image:linear-gradient(#000 0,#000 35%,transparent 100%);opacity:0;transition:opacity 900ms ease-out}
html:root .fx-atmos.is-on{opacity:1}
/* Title pre-hide until split; failsafe reveal */
@media (prefers-reduced-motion:no-preference){html.fx-on body.fn-surface .fn-title:not(:has(.fx-line)):not(.fx-static){visibility:hidden;animation:fx-safe 0s .8s forwards}}
@media (prefers-reduced-motion:no-preference){html.fx-on #mc-title .mc-services:not(:has(.fx-line)),html.fx-on .mc-metric:not([data-fx-final]){visibility:hidden;animation:fx-safe 0s 3s forwards}}
@keyframes fx-safe{to{visibility:visible}}
html:root .fx-line{display:block}
html:root .fx-line-inner{display:inline-block}
html:root .fx-w{display:inline-block;white-space:nowrap}
@keyframes fx-glow{0%{text-shadow:0 0 0 #00ee7a00}35%{text-shadow:0 0 30px #00ee7ab3}100%{text-shadow:0 0 0 #00ee7a00}}
/* Homepage story verbs: words spring in (E) */
html:root :is(.mc-beat,.mc-work-title) .fx-w{opacity:0;transform:translate3d(0,85%,0) skewY(10deg) rotate(-2deg);filter:blur(8px);transform-origin:0 100%;transition:transform 950ms cubic-bezier(.34,1.56,.64,1),opacity 500ms ease-out,filter 650ms ease-out;transition-delay:calc(var(--i) * 70ms + 180ms)}
html:root :is(.mc-beat,.mc-work-title).fx-in .fx-w{opacity:1;transform:none;filter:none}
/* The rise is clipped at the verb's own line bottom, so it never passes over the paragraph beneath. */
html:root .mc-beat .mc-beat-verb{-webkit-clip-path:inset(-60% -12% 0 -12%);clip-path:inset(-60% -12% 0 -12%)}
/* Titles: Kinetic glass word spring (E), and the green accent glows */
html:root .fx-w{opacity:0;transform:translate3d(0,85%,0) skewY(10deg) rotate(-2deg);filter:blur(8px);transform-origin:0 100%;transition:transform 950ms cubic-bezier(.34,1.56,.64,1),opacity 500ms ease-out,filter 650ms ease-out;transition-delay:calc(var(--i) * 65ms)}
html:root .fx-in .fx-w{opacity:1;transform:none;filter:none}
html:root .fx-in :is(.fn-acc,.mc-accent).fx-w,html:root .fx-in :is(.fn-acc,.mc-accent) .fx-w{animation:fx-glow 1800ms calc(var(--i) * 65ms + 700ms) ease-out both}
/* Pills (D, without movement): cursor torch, green edge, label roll, arrow pass */
html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill){position:relative;isolation:isolate;overflow:hidden;transition:color 240ms ease-out,border-color 240ms ease-out,background-color 240ms ease-out,box-shadow 300ms ease-out}
html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill)>:not(.fx-fill,.ja-sr){position:relative;z-index:1}
html:root .fx-fill{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background:radial-gradient(90px circle at var(--mx,50%) var(--my,50%),#00ee7a52,transparent 70%);opacity:0;transition:opacity 260ms ease-out}
html:root .fx-roll{display:inline-block;overflow:hidden;height:1.2em;line-height:1.2em;vertical-align:middle}
html:root :is(.fx-roll-a,.fx-roll-b){display:block;transition:transform 420ms cubic-bezier(.65,0,.35,1)}
@media(hover:hover) and (pointer:fine){
 html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill):not(.jb-talk,.mc-nav-talk,.fn-rail-talk,.mc-primary):hover{border-color:#00ee7a73}
 html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill):hover .fx-fill{opacity:1}
 html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill):hover :is(.fx-roll-a,.fx-roll-b){transform:translateY(-100%)}
 html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill):not(.jb-talk,.mc-nav-talk,.fn-rail-talk,.mc-primary):hover>svg{animation:fx-arrow 520ms cubic-bezier(.65,0,.35,1)}
 html:root :is(.jb-nav-button,.mc-button,.fn-pill):hover :is(.jb-play,.mc-play,.fn-play){box-shadow:0 0 0 5px #00ee7a2e,0 0 20px #00ee7a66}
}
html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill):focus-visible :is(.fx-roll-a,.fx-roll-b){transform:translateY(-100%)}
/* Case rows: the whole row is the link (a stretched layer above everything in it), so the "Read the case study"
   pill is decoration and answers the row's hover and keyboard focus instead of its own. */
@media(hover:hover) and (pointer:fine){
 html:root body.fn-surface .fn-row:hover .fn-pill{border-color:#00ee7a73}
 html:root body.fn-surface .fn-row:hover .fn-pill .fx-fill{opacity:1}
 html:root body.fn-surface .fn-row:hover .fn-pill :is(.fx-roll-a,.fx-roll-b){transform:translateY(-100%)}
 html:root body.fn-surface .fn-row:hover .fn-pill .fn-play{box-shadow:0 0 0 5px #00ee7a2e,0 0 20px #00ee7a66}
}
html:root body.fn-surface .fn-row:focus-within .fn-pill :is(.fx-roll-a,.fx-roll-b){transform:translateY(-100%)}
@keyframes fx-arrow{0%{transform:none}45%{transform:translateX(16px);opacity:0}46%{transform:translateX(-16px);opacity:0}100%{transform:none;opacity:1}}
html:root :is(.jb-play,.mc-play,.fn-play){transition:box-shadow 300ms ease-out}
/* Let's Talk · Green sheen (booking buttons only: the 404 "Back to home" link reuses .jb-talk, and booking links
   the assistant inserts into its replies (.mc-a-resource) stay dark, so both are excluded): the one solid green button on the page. A soft band of light sweeps across
   its face every 7s and a halo breathes around it. Wide soft gradients only, no thin lines. Hover: the sheen
   passes once, quickly; nothing moves. */
html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)){overflow:visible!important;border-color:#00ee7a!important;color:#080b12!important;font-weight:800;background:#00ee7a!important;box-shadow:0 8px 25px #03050b66!important}
/* The band rides on the .fx-fill layer (clipped to the pill) and moves by transform, so it runs on the compositor. */
html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)) .fx-fill{display:block;opacity:1;background:none;overflow:hidden}
html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)) .fx-fill::before{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 19%,#ffffff8a 50%,transparent 81%);transform:translateX(-135%);will-change:transform;animation:fx-sheen 7s cubic-bezier(.45,.05,.55,.95) 1.5s infinite}
@keyframes fx-sheen{0%{transform:translateX(-135%)}24%,100%{transform:translateX(135%)}}
html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource))::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;box-shadow:0 0 26px 3px #00ee7a;opacity:.22;animation:fx-halo 4.5s ease-in-out infinite}
@keyframes fx-halo{0%,100%{opacity:.18}50%{opacity:.5}}

html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource))>svg{transition:transform 260ms cubic-bezier(.22,1,.36,1)}
@media(hover:hover) and (pointer:fine){
 html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)):hover .fx-fill::before{animation:fx-sheen-hover 900ms cubic-bezier(.45,.05,.55,.95) both}
 html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)):hover::after{animation:none;opacity:.7;transition:opacity 260ms ease-out}
 html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)):hover>svg{transform:translateX(3px)}
}
@keyframes fx-sheen-hover{0%{transform:translateX(-135%)}100%{transform:translateX(135%)}}
html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)):focus-visible::after{animation:none;opacity:.7}
@media(prefers-reduced-motion:reduce){html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)){animation:none!important}html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource))::after{animation:none!important;opacity:.3}}
/* Portrait (E): radar pulses, 3D lean, green LinkedIn tag */
html:root :is(.jb-portrait-link,.mc-portrait-link){position:relative;display:block;overflow:visible}
html:root :is(.jb-avatar,.mc-avatar){transition:transform 520ms cubic-bezier(.34,1.56,.64,1)}
html:root .fx-pulse{position:absolute;inset:0;border-radius:50%;border:1.5px solid #00ee7a;opacity:0;pointer-events:none}
html:root .fx-tag{position:absolute;left:50%;top:calc(100% + 10px);z-index:20;transform:translate(-50%,-6px);opacity:0;pointer-events:none;padding:7px 11px;border-radius:50px;background:#00ee7a;color:#080b12;font:800 11px/1 Archivo,sans-serif;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;transition:opacity 220ms ease-out,transform 320ms cubic-bezier(.34,1.56,.64,1)}
@media(hover:hover) and (pointer:fine){
 html:root :is(.jb-portrait-link,.mc-portrait-link):hover .fx-pulse{animation:fx-pulse 1600ms cubic-bezier(.22,1,.36,1) infinite}
 html:root :is(.jb-portrait-link,.mc-portrait-link):hover :is(.jb-avatar,.mc-avatar){transform:perspective(320px) rotateY(calc(var(--ax,0) * 30deg)) rotateX(calc(var(--ay,0) * -30deg)) scale(1.06)}
 html:root :is(.jb-portrait-link,.mc-portrait-link):hover .fx-tag{opacity:1;transform:translate(-50%,0)}
}
html:root :is(.jb-portrait-link,.mc-portrait-link):focus-visible .fx-tag{opacity:1;transform:translate(-50%,0)}
@keyframes fx-pulse{0%{transform:scale(1);opacity:.8}100%{transform:scale(2);opacity:0}}
/* Insights rows (D text only): title glides, number steps; images stay still */
/* The glide moves an inner wrapper, never the link: a transformed link would trap its stretched row layer. */
html:root body.fn-surface .fn-row h2 a{transition:color 200ms ease-out}
html:root body.fn-surface .fn-row h2 .fx-glide{display:inline-block;transition:transform 520ms cubic-bezier(.22,1,.36,1)}
html:root body.fn-surface .fn-num{display:inline-block;transition:color 200ms ease-out,transform 520ms cubic-bezier(.34,1.56,.64,1)}
@media(hover:hover) and (pointer:fine){
 html:root body.fn-surface .fn-row:hover h2 .fx-glide{transform:translateX(12px)}
 html:root body.fn-surface .fn-row:hover .fn-num{transform:translateX(-6px) scale(1.12)}
}
html:root .fx-fade{opacity:0;transform:translateY(28px);transition:opacity 700ms ease-out,transform 1000ms cubic-bezier(.16,1,.3,1)}
html:root .fx-fade.fx-in{opacity:1;transform:none}

/* Reduced motion: no entrances, no sheen or halo breathing, no hover travel. Content shows at once. */
@media(prefers-reduced-motion:reduce){
 html:root :is(.fx-w,.fx-fade,.fx-line-inner){opacity:1!important;transform:none!important;filter:none!important;transition:none!important;animation:none!important}
 html:root :is(.fx-fill,.fx-roll-a,.fx-roll-b,.fx-pulse,.fx-tag,.jb-avatar,.mc-avatar,.jb-play,.mc-play,.fn-play){transition:none!important;animation:none!important}
 html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill),html:root :is(.jb-nav-button,.mc-blog,.mc-button,.fn-pill)>svg{transition:none!important;animation:none!important}
 html:root body.fn-surface :is(.fn-row h2 .fx-glide,.fn-num){transition:none!important;transform:none!important}
 html:root :is(.jb-portrait-link,.mc-portrait-link):hover :is(.jb-avatar,.mc-avatar){transform:none!important}
 html:root :is(.jb-talk:not(.jnf-home),.mc-nav-talk,.fn-rail-talk,.mc-primary:not(.mc-a-resource)) .fx-fill::before{animation:none!important;transform:translateX(-135%)!important}
 html:root .fx-atmos{transition:none!important}
}
