/* Motion explains the work. Reading text stays sharp, still and at full contrast. */
html{--motion-ink:var(--text-muted);--motion-line:var(--line)}
.motion-toggle{border:1px solid #A0A6AE4d;border-radius:5px;background:transparent;padding:7px 10px;color:var(--surface-muted);font:inherit;cursor:pointer;white-space:nowrap}
.motion-toggle:hover{border-color:var(--line);color:var(--white)}.motion-toggle:disabled{cursor:default}
.footer-bottom{flex-wrap:wrap}.footer-bottom .back-top{margin-left:auto}
.dropdown{animation:menu-curtain .24s cubic-bezier(.2,.7,.3,1) both}
@keyframes menu-curtain{from{clip-path:inset(0 0 100% 0 round 12px)}to{clip-path:inset(0 0 0 round 12px)}}
.nav>a:before{content:'';position:absolute;bottom:3px;left:13px;right:13px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .25s}
.nav>a:hover:before,.nav>a:focus-visible:before{transform:scaleX(1)}
.text-link{position:relative}.text-link:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--text-muted);transform:scaleX(0);transform-origin:left;transition:transform .35s}
.text-link:hover:after,.text-link:focus-visible:after{transform:scaleX(1)}
.btn{transition:background .2s,border-color .2s,box-shadow .2s}.btn:hover{transform:none;box-shadow:0 0 0 3px #81879017}
.hero-bg,.hero-daylight{translate:0 var(--hero-scroll,0px)}
.hero-bottom a span{animation:scroll-invitation 3s ease-in-out 3}
@keyframes scroll-invitation{40%{translate:0 4px}80%,100%{translate:0 0}}
.motion-section{position:relative;--section-progress:0}
.motion-section:before{content:'';position:absolute;left:0;top:0;width:100%;height:1px;background:linear-gradient(90deg,transparent,#A0A6AE88,transparent);transform-origin:left;transform:scaleX(var(--section-progress));pointer-events:none}
.motion-line{position:relative;--line-progress:0}
.motion-line:after{content:'';position:absolute;left:0;top:-1px;height:1px;width:100%;background:var(--silver-600);transform:scaleX(var(--line-progress));transform-origin:left;pointer-events:none}
.exp-practice-card,.exp-solution-card,.point,.exp-role-grid article,.connection-grid a,.layer{transition:border-color .25s,background .25s,box-shadow .25s}
.exp-practice-card:hover,.exp-role-grid article:hover{border-color:var(--silver-600)}
.exp-solution-card:hover{box-shadow:0 4px 14px #3032360a}
.motion-visual{--visual-progress:0}
.motion-visual>.motion-frame{position:absolute;inset:0;border:1px solid #81879055;border-radius:inherit;pointer-events:none;clip-path:inset(0 calc((1 - var(--visual-progress))*100%) 0 0);transition:clip-path .5s ease}
.motion-check path{stroke-dasharray:40;stroke-dashoffset:40;transition:stroke-dashoffset .7s ease}
.is-motion-visible .motion-check path{stroke-dashoffset:0}
.exp-practice-card li:nth-child(2) .motion-check path{transition-delay:.16s}.exp-practice-card li:nth-child(3) .motion-check path{transition-delay:.32s}

/* The scroll position carries the case context through each preparation stage. */
.journey-map{margin-top:22px;border:1px solid #81879055;border-radius:8px;padding:12px 18px;background:#2021245e;position:relative}
.journey-map-label{text-transform:uppercase;color:var(--silver-400);display:block;margin-bottom:13px}
.journey-map ol{list-style:none;position:relative;padding:0;margin:0;display:grid;gap:10px}
.journey-map ol:before,.journey-map ol:after{content:'';position:absolute;left:9px;top:10px;bottom:10px;width:1px;background:var(--text-muted)}
.journey-map ol:after{background:var(--surface-muted);transform:scaleY(var(--journey-progress,0));transform-origin:top;transition:transform .6s cubic-bezier(.2,.7,.3,1)}
.journey-map li{display:flex;gap:13px;align-items:center;color:var(--silver-400)}
.journey-map li>i{height:19px;width:19px;border-radius:50%;border:1px solid var(--silver-600);background:var(--ink);position:relative;z-index:1;display:grid;place-items:center;font-style:normal;color:var(--line)}
.journey-map li.is-complete>i{background:var(--text-muted);color:var(--surface);border-color:var(--silver-500)}.journey-map li.is-active{color:var(--white)}.journey-map li.is-active>i{background:var(--surface-muted);color:var(--charcoal);border-color:var(--surface-muted);box-shadow:0 0 0 4px #F0F1F30a}
.journey-map small{display:block;color:var(--silver-400);margin-top:14px;border-top:1px solid #81879033;padding-top:12px}
.workflow-sticky{padding-bottom:20px}
.workflow-sticky .workflow-count,.workflow-sticky .scroll-hint{display:none}
.workflow-sticky .text-link{margin-top:18px}
.case-playback{display:flex;align-items:center;justify-content:space-between;gap:12px}
.case-playback button{color:var(--text);background:var(--white);border:1px solid var(--silver-400);padding:7px 10px;border-radius:4px;min-height:32px;white-space:nowrap}
.demo-content{animation:none}
.motion-record-path{position:absolute;left:36px;top:24px;bottom:24px;width:1px;pointer-events:none}
.demo-content .doc-type{position:relative}
.case-demo[data-case-view=records] .doc-type:after{content:'';position:absolute;left:5px;right:5px;top:8px;height:1px;background:var(--silver-600);box-shadow:0 5px 0 var(--silver-400),0 10px 0 var(--silver-400);transform:scaleX(0);transform-origin:left;animation:document-lines 2.4s ease both}
.case-demo[data-case-view=records] .document-row:nth-child(3) .doc-type:after{animation-delay:.25s}.case-demo[data-case-view=records] .document-row:nth-child(4) .doc-type:after{animation-delay:.5s}
@keyframes document-lines{30%,100%{transform:scaleX(1)}}
.case-demo[data-case-view=chronology] .timeline-item:before{animation:timeline-mark .8s ease both}.case-demo[data-case-view=chronology] .timeline-item:nth-child(3):before{animation-delay:.25s}.case-demo[data-case-view=chronology] .timeline-item:nth-child(4):before{animation-delay:.5s}
@keyframes timeline-mark{from{box-shadow:0 0 0 7px #81879000}50%{box-shadow:0 0 0 5px #81879024}to{box-shadow:none}}

/* A source-to-review sequence appears on every solution detail page. */
.source-flow{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;margin:25px 0 20px;position:relative;border-top:1px solid var(--silver-400);padding-top:18px}
.source-flow:before{content:'';position:absolute;left:0;right:0;top:-1px;height:2px;background:var(--text-muted);transform:scaleX(var(--source-progress,0));transform-origin:left;transition:transform .7s ease}
.source-flow>span{color:var(--text-muted);display:flex;gap:8px;align-items:center}
.source-flow i{height:5px;width:5px;border-radius:50%;border:1px solid var(--silver-500);background:var(--white);transition:background .3s}
.source-flow>span.is-active{color:var(--charcoal)}.source-flow>span.is-active i{background:var(--text-muted);border-color:var(--text-muted)}
.exp-detail-sheet li{border-left:2px solid transparent;padding-left:10px;transition:border-color .3s,background .3s}
.exp-detail-sheet li.is-source-active{border-color:var(--silver-600);background:var(--surface)}
.exp-detail-sheet .exp-sheet-output{transition:border-color .4s,background .4s}
.exp-detail-sheet.is-output-active .exp-sheet-output{border-color:var(--silver-500);background:var(--surface-muted)}

/* Source connections animate; the underlying insights remain readable. */
.exp-insight-bridge{min-width:0}.insight-path{position:absolute;left:-27px;right:-27px;top:35%;width:calc(100% + 54px)!important;height:30%!important;overflow:visible;z-index:0}
.insight-path .path-base{stroke:var(--line);stroke-width:1;fill:none}.insight-path .path-signal{stroke:var(--silver-600);stroke-width:1.5;fill:none;stroke-dasharray:12 200;animation:insight-transfer 4.8s ease-in-out infinite}
.insight-path .path-signal:nth-of-type(4){animation-delay:1.1s}.exp-insight-bridge>svg:not(.insight-path),.exp-insight-bridge>span{position:relative;z-index:1;background:var(--white);padding:5px}
@keyframes insight-transfer{from{stroke-dashoffset:210}60%,100%{stroke-dashoffset:0}}
.exp-insights .exp-current-matter{transition:border-color .4s}.exp-insights.is-insight-updated .exp-current-matter{border-color:var(--silver-500)}
.exp-private-connection{width:100%;height:60px;background:none;overflow:visible}.exp-private-connection:after{display:none}
.private-route{width:100%!important;height:60px!important;overflow:visible}.private-route path{fill:none;stroke:var(--line);stroke-width:1}
.private-route .route-signal{stroke:var(--silver-600);stroke-width:1.5;stroke-dasharray:12 300;animation:private-transfer 5s ease-in-out infinite}.private-route .route-signal:nth-last-child(2){animation-delay:.65s}.private-route .route-signal:last-child{animation-delay:1.3s}
@keyframes private-transfer{from{stroke-dashoffset:310}65%,100%{stroke-dashoffset:0}}
.exp-private-inputs span{transition:border-color .5s,background .5s}.exp-private-inputs span.is-source-active{background:var(--surface-muted);border-color:var(--silver-500)}
.exp-private-core{transition:border-color .5s}.exp-private-visual.is-output-active .exp-private-core{border-color:var(--silver-400)}
.exp-story-stage{position:relative}.exp-story-stage:after{content:'';position:absolute;left:0;top:20px;bottom:20px;width:2px;background:var(--silver-500);transform:scaleY(var(--handoff-progress,0));transform-origin:top;transition:transform .65s cubic-bezier(.2,.7,.3,1)}
.exp-stage-result{transition:border-color .3s,background .3s}.exp-story.is-handoff-complete .exp-stage-result{border-color:var(--silver-400);background:var(--surface-muted)}
.privacy-visual .privacy-ring{transition:border-color .7s}.privacy-visual.is-motion-visible .privacy-ring{border-color:#C2C7CE55}
.connection-grid a:hover svg,.exp-practice-card:hover svg,.exp-solution-card:hover .exp-card-icon svg{stroke:var(--charcoal)}
.motion-in-view .insight-path .path-signal,.motion-in-view .private-route .route-signal{animation-play-state:running}
.insight-path .path-signal,.private-route .route-signal{animation-play-state:paused}
html[data-motion=paused] *,html[data-motion=paused] *:before,html[data-motion=paused] *:after{animation-play-state:paused!important;transition-duration:0s!important}
html[data-motion=paused] .hero-bg,html[data-motion=paused] .hero-daylight{translate:0 0}
@media(max-width:940px){.case-playback{flex-wrap:wrap}.journey-map{padding:15px}}
@media(min-width:641px) and (max-height:820px){.workflow-sticky{position:static}}
@media(max-width:640px){.journey-map{margin-top:25px}.journey-map ol{grid-template-columns:1fr 1fr;gap:15px}.journey-map ol:before,.journey-map ol:after{display:none}.journey-map li:last-child{grid-column:1/-1}.workflow-sticky{padding-bottom:35px}.case-playback{gap:8px}.case-playback button{padding:6px 8px;min-height:30px}.case-playback>span{max-width:210px}.exp-insight-bridge{min-height:80px}.insight-path{left:25%;right:auto;top:0;width:50%!important;height:80px!important;rotate:90deg}.source-flow>span{gap:5px}.footer-bottom .back-top{margin-left:0}.footer-bottom{gap:15px}.nav>a:before{left:11px;right:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.hero-bg,.hero-daylight{translate:none}.motion-check path{stroke-dashoffset:0}.source-flow:before{transform:scaleX(1)}.motion-line:after{transform:scaleX(1)}.motion-section:before{transform:scaleX(1)}.dropdown{clip-path:none}.insight-path .path-signal,.private-route .route-signal{stroke-dasharray:none;opacity:.5}}
