/* Welcome intro (see intro.js): dark ground warmed by a sunset glow, the cube drawn like a
   blueprint, the wordmark, three words and a welcome; it leaves through the red cube. */
.intro{position:fixed;inset:0;z-index:100;display:grid;place-items:center;overflow:hidden;color:#fff;background:#0d0a08;font-family:'Inter Tight',Inter,Arial,sans-serif}
.intro[hidden]{display:none}
.intro-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(70% 55% at 50% 118%,#c2683a66 0%,#7a2c2233 38%,#0d0a0800 70%),radial-gradient(55% 45% at 50% 42%,#b01e391f 0%,#0d0a0800 70%);opacity:0;transform:translateY(8%);animation:glow-rise 2.6s cubic-bezier(.2,.7,.2,1) .1s forwards}
.intro-center{position:relative;display:flex;flex-direction:column;align-items:center;width:min(660px,52vw)}
.intro-logo{position:relative;width:100%}
.intro-logo>img{position:relative;display:block;width:100%;height:auto;clip-path:inset(0 100% 0 0);animation:logo-wipe .9s cubic-bezier(.65,0,.25,1) 1.35s forwards}
.intro-logo::after{content:'';position:absolute;inset:-10% 0;background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.5) 50%,transparent 65%);transform:translateX(-120%);mix-blend-mode:overlay;animation:shine-pass 1.1s ease 2.05s forwards;pointer-events:none}
.intro-draw{position:absolute;inset:0;width:100%;height:100%;overflow:visible;animation:draw-out .6s ease 1.95s forwards}
.intro-draw .lines line{stroke:#f4efe9;stroke-width:1.4;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:.85;animation:draw .85s cubic-bezier(.6,0,.2,1) calc(.2s + var(--d)) forwards}
.intro-draw .ticks path{stroke:#d6284b;stroke-width:1.6;fill:none;opacity:0;transform-box:fill-box;transform-origin:center;animation:tick .5s ease calc(.2s + var(--d)) forwards}
.intro-draw .faces{clip-path:inset(100% 0 0 0);animation:fill-up .8s cubic-bezier(.6,0,.2,1) .95s forwards}
/* Three words slide through a slot, then the welcome stays. */
.intro-words{position:relative;height:1.05em;width:100%;margin-top:.5em;overflow:hidden;font:800 clamp(40px,8vw,84px)/1 'Inter Tight',Inter,Arial,sans-serif;letter-spacing:-.05em;text-align:center}
.intro-words span{position:absolute;inset:0;transform:translateY(105%);animation:word .66s linear forwards}
.intro-words b{color:#b01e39}
/* each word pushes the one before out: it enters exactly while the previous one leaves */
.intro-words span:nth-child(1){animation-delay:1.75s}.intro-words span:nth-child(2){animation-delay:2.19s}.intro-words span:nth-child(3){animation-delay:2.63s}
.intro-words .intro-hello{animation:hello .22s cubic-bezier(.4,0,.2,1) 3.07s forwards}
/* ProcesaLab, at the foot of the welcome */
.intro-credit{position:absolute;left:50%;bottom:calc(6% + env(safe-area-inset-bottom));translate:-50% 0;z-index:2;display:flex;align-items:center;gap:12px;color:#8a837c;font:600 10px/1 Inter,Arial,sans-serif;letter-spacing:2px;text-transform:uppercase;text-decoration:none;white-space:nowrap;opacity:0;animation:tag-in 1s ease .5s forwards}
.intro-credit .pl-logo{--h:30px}
.intro-credit .pl-gear{animation-duration:2.4s}
.intro-credit:hover{color:#fff}
/* the red cube that grows to fill the screen, then lifts off */
.intro-zoom{position:absolute;inset:0;z-index:3;background:#b01e39;opacity:0;pointer-events:none;will-change:clip-path,transform}

/* Exit */
.intro-leaving .intro-words,.intro-leaving .intro-credit,.intro-leaving .intro-logo>img{opacity:0!important;transition:opacity .3s ease}
.intro-open{background:transparent}
.intro-open .intro-glow,.intro-open .intro-center,.intro-open .intro-credit{visibility:hidden}
body.brand-pending header .brand img{opacity:0}
.intro-active{overflow:hidden}

/* Hero entrance, staggered after the plates open. */
.copy>*,.models,.controls,footer,header nav>*{transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.intro-active .copy>*,.intro-active .models,.intro-active .controls,.intro-active footer,.intro-active header nav>*{opacity:0;transform:translateY(18px)}
.copy>:nth-child(1){transition-delay:.25s}.copy>:nth-child(2){transition-delay:.35s}.copy>:nth-child(3){transition-delay:.5s}.copy>:nth-child(4){transition-delay:.62s}.copy>:nth-child(5){transition-delay:.75s}
.models{transition-delay:.55s}.controls{transition-delay:.9s}footer{transition-delay:1s}header nav>*{transition-delay:.45s}

@keyframes glow-rise{to{opacity:1;transform:none}}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes tick{0%{opacity:0;transform:scale(.2) rotate(-45deg)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes fill-up{to{clip-path:inset(0 0 0 0)}}
@keyframes draw-out{to{opacity:0}}
@keyframes logo-wipe{to{clip-path:inset(0 0 0 0)}}
@keyframes shine-pass{to{transform:translateX(120%)}}
@keyframes word{0%{transform:translateY(105%);animation-timing-function:cubic-bezier(.4,0,.2,1)}33%{transform:none}67%{transform:none;animation-timing-function:cubic-bezier(.4,0,.2,1)}100%{transform:translateY(-105%)}}
@keyframes hello{from{transform:translateY(105%)}to{transform:none}}
@keyframes tag-in{from{opacity:0;letter-spacing:6px}to{opacity:1}}
@media(max-width:850px){.intro-center{width:min(460px,88vw)}.intro-credit{font-size:9px;letter-spacing:1.6px}.intro-credit .pl-logo{--h:26px}}
@media(prefers-reduced-motion:reduce){
 .intro *,.intro *::after{animation:none!important;transition:none!important}
 .intro-logo>img{clip-path:none}.intro-draw{opacity:0}.intro-glow,.intro-credit{opacity:1;transform:none}
 .intro-words span{display:none}.intro-words .intro-hello{display:block;transform:none}
 .copy>*,.models,.controls,footer,header nav>*{transition:none!important}}
/* Home: the scroll-house heading enters with the same stagger. */
.architecture-intro>*,.architecture-top,.architecture-copy,.scroll-cue{transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.intro-active .architecture-intro>*,.intro-active .architecture-top,.intro-active .architecture-copy,.intro-active .scroll-cue{opacity:0;transform:translateY(18px)}
.architecture-intro>:nth-child(1){transition-delay:.3s}.architecture-intro>:nth-child(2){transition-delay:.5s}.architecture-top,.architecture-copy{transition-delay:.9s}.scroll-cue{transition-delay:1.1s}
@media(prefers-reduced-motion:reduce){.architecture-intro>*,.architecture-top,.architecture-copy,.scroll-cue{transition:none!important}}

