/* Motion layer. Personality: premium. One signature ease, three durations.
   --m-ease: cubic-bezier(.22,1,.36,1)  quick .25s / standard .6s / slow 1.1s.
   Everything here is progressive: without .js-motion (reduced motion or no JS) the page is static and complete. */
:root{--m-ease:cubic-bezier(.22,1,.36,1)}

/* Lenis */
html.lenis,html.lenis body{height:auto}.lenis.lenis-smooth{scroll-behavior:auto!important}.lenis.lenis-stopped{overflow:hidden}.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}

/* Preloader: blueprint of the hero drawing builds as the percentage climbs. */
.preloader{display:none}
html.pl .preloader{display:block;position:fixed;inset:0;z-index:10000;color:var(--ink);overflow:hidden}
html.pl{overflow:hidden}
.pl-bg{position:absolute;inset:0;background:var(--paper)}
.pl-bg::before{content:"";position:absolute;inset:6px;border:1px solid var(--line)}
.pl-wire{position:fixed;pointer-events:none}
.pl-wire svg{width:100%;height:100%;display:block;overflow:visible}
.pl-wire svg *{fill:none!important;stroke:var(--ink)!important;stroke-width:1.05px!important}
.pl-bar{position:absolute;left:0;right:0;top:50%;height:1px}
.pl-bar i{display:block;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left}
.pl-pct{position:absolute;left:33px;top:-22px;font-size:12px;color:var(--accent-ink);font-variant-numeric:tabular-nums}
.pl-tag{position:absolute;left:33px;bottom:30px;margin:0;font-size:clamp(22px,2.7vw,40px);line-height:.98;font-weight:650;letter-spacing:-.05em;}
.pl-info{position:absolute;left:67%;bottom:30px;margin:0;white-space:pre;font-size:9px;line-height:1.45;color:var(--muted);min-height:8.4em}
.pl-log{position:absolute;left:87%;bottom:30px;list-style:none;margin:0;padding:0;font-size:9px;line-height:1.45;color:var(--ink);width:12%}
.pl-log li{white-space:nowrap}
@media(max-width:1000px){.pl-info{left:auto;right:34px;bottom:170px;width:60%}.pl-log{display:none}}
@media(max-width:700px){.pl-info{left:33px;right:auto;bottom:130px;width:calc(100% - 66px);white-space:pre-wrap}}

/* Page progress */
.page-progress{position:fixed;left:0;top:0;height:2px;width:100%;background:var(--accent);transform:scaleX(0);transform-origin:left;z-index:60;pointer-events:none}

/* Hidden-until-revealed states. Failsafe after 6s so a stalled script never hides content. */
.js-motion :is(.hero-summary h1,.product-heading h1,.product-heading h2,.scene-title h2,.work-intro h2,.build-intro h2,.contact-main h2,.story-heading h2){visibility:hidden;animation:m-show 0s linear 1.5s forwards}
.js-motion :is(.editorial-bottom>*,.product-heading p,.scene-title>p,.work-intro p,.build-intro p,.contact-bottom>*,.testimonial,.hero-description,.disciplines,.ticker,.section-id>span){opacity:0;animation:m-show 0s linear 1.5s forwards}
.js-motion .board-image,.js-motion .hotspot,.js-motion .board-caption,.js-motion .board-bottom,.js-motion .board-scale,.js-motion .masthead nav a{opacity:0;animation:m-show 0s linear 1.5s forwards}
.js-motion .board-image{animation-name:m-show}
@keyframes m-show{to{opacity:1;visibility:visible}}
.js-motion .masthead>.brand .logo{opacity:0;animation:m-show 0s linear 1.5s forwards}
.m-line{will-change:transform}

/* Ticker: linear is correct for constant motion. Pauses with the motion control and on hover. */
.ticker{border-top:1px solid var(--line);overflow:hidden;white-space:nowrap;padding:12px 0;mask-image:linear-gradient(90deg,transparent,var(--mask-on) 6%,var(--mask-on) 94%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,var(--mask-on) 6%,var(--mask-on) 94%,transparent)}
.ticker-track{display:inline-flex;align-items:center;gap:26px;padding-left:26px;animation:ticker 46s linear infinite;will-change:transform}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker i{width:6px;height:6px;border:1px solid var(--ink);transform:rotate(45deg);display:block;flex:none}
.ticker span{font-size:10px;color:var(--muted)}
@keyframes ticker{to{transform:translateX(-50%)}}

/* Attention ping on hero markers: three times, then rest. */
.hotspot::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border:1px solid var(--accent);pointer-events:none;animation:ping 2.4s var(--m-ease) 3 2.6s both}
@keyframes ping{0%{transform:scale(1);opacity:.9}100%{transform:scale(4.2);opacity:0}}
.hotspot[aria-expanded=true]::after,.hotspot:hover::after{animation:none;opacity:0}

/* Press feedback */
.btn,.text-link,.cell-link,.reveal-controls button,.story-controls button,.build-step,.evidence-card,.engagement-paths a,.contact-main,.mark-reveal{transition-timing-function:var(--m-ease)}
.text-link:active,.cell-link:active,.reveal-controls button:active,.story-controls button:active,.evidence-card:active,.build-step:active,.engagement-paths a:active,.mark-reveal:active{transform:scale(.985)}
.text-link,.cell-link,.mark-reveal{will-change:transform}

/* Hero depth layers (pointer parallax) */
.board-image [data-depth]{will-change:transform}

/* Section drawings: strokes draw in on first view */
.inspection-art svg [data-draw]{will-change:stroke-dashoffset}

/* Evidence image wipe */
.js-motion .evidence-image,.js-motion .svc-plate-art img{clip-path:inset(0 0 100% 0)}

@media(prefers-reduced-motion:reduce){.preloader,.page-progress,.ticker{display:none!important}.js-motion .evidence-image,.js-motion .svc-plate-art img{clip-path:none}}
