body{margin:0}.cri-startup{position:fixed;inset:0;z-index:10000;min-height:100dvh;overflow:auto;display:grid;place-items:center;padding:24px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 0%,#e1ebff 0%,#f4f6fa 65%);color:#172033;font-family:Arial,sans-serif}.cri-startup-card{width:min(100%,420px);box-sizing:border-box;text-align:center;animation:cri-startup-appear .35s ease-out}.cri-startup-brand{display:grid;justify-items:center;gap:14px;margin-bottom:32px}.cri-startup-brand img{width:88px;height:88px;border-radius:22px;box-shadow:0 10px 32px #17365a18}.cri-startup-brand>span{font-weight:800;font-size:12px;letter-spacing:3px;color:#2456bd}.cri-startup h1{font-size:24px;line-height:1.35;margin:0 0 12px;font-weight:700}.cri-startup-status{min-height:20px;color:#526780;font-size:14px;margin:0 0 24px}.cri-startup-progress{height:5px;overflow:hidden;background:#dce5f3;border-radius:10px;margin-bottom:26px}.cri-startup-progress>span{display:block;height:100%;background:#2563eb;border-radius:10px;transition:width .3s ease}.cri-startup-steps{display:grid;gap:12px;list-style:none;margin:0;padding:0;text-align:left}.cri-startup-steps li{display:flex;align-items:center;gap:12px;color:#8491a5;font-size:13px}.cri-startup-steps li>span{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border:1px solid #dbe3ee;border-radius:50%;font-size:11px}.cri-startup-steps .active{color:#1d4ed8;font-weight:700}.cri-startup-steps .active>span{background:#2563eb;color:white;border-color:#2563eb;animation:cri-startup-pulse 1.5s ease-in-out infinite}.cri-startup-steps .done{color:#27714b}.cri-startup-steps .done>span{background:#e3f4e9;border-color:#cce7d7}.cri-startup-card>small{display:block;margin-top:32px;color:#6b7c92;font-size:11px;line-height:1.6}.cri-startup-help{margin-top:22px;padding:14px;border-radius:12px;background:white;border:1px solid #dce5f3;font-size:13px}.cri-startup-help p{margin:0 0 12px}.cri-startup-help button{padding:9px 16px;border:1px solid #b9cbea;border-radius:8px;background:#fff;color:#2456bd;font:inherit;cursor:pointer}.cri-startup-boot .cri-startup-progress>span{width:18%;animation:cri-startup-pulse 1.5s ease-in-out infinite}@keyframes cri-startup-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes cri-startup-pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.cri-startup *,.cri-startup-card{animation:none!important;transition:none!important}}

/* Resolution-independent rope-access scene. Ropes stay anchored to the screen. */
.cri-startup-adventure{--rig-x:25%;--tech-size:clamp(240px,26vw,370px);display:flex;justify-content:flex-end;padding:clamp(30px,6vw,100px);background:radial-gradient(ellipse at 22% 30%,#e5ecf7,transparent 55%),#f6f8fc}
.cri-startup-scene{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.cri-startup-building{position:absolute;left:5%;top:12%;bottom:12%;width:36%;border:1px solid #c4d0e240;background:repeating-linear-gradient(0deg,transparent 0,transparent 88px,#c4d0e235 89px,#c4d0e235 90px),repeating-linear-gradient(90deg,transparent 0,transparent 88px,#c4d0e235 89px,#c4d0e235 90px);transform:skewY(-7deg);border-radius:3px}
.cri-rope{position:absolute;top:0;bottom:0;width:4px;border-radius:0 0 3px 3px;box-shadow:3px 0 5px #23384d0d}
.cri-rope-work{left:var(--rig-x);background:repeating-linear-gradient(35deg,#c18c38 0 4px,#e6b967 4px 7px)}
.cri-rope-safety{left:calc(var(--rig-x) - var(--tech-size)*.093333);background:repeating-linear-gradient(-35deg,#92a7b9 0 4px,#c4d0dc 4px 7px)}
.cri-startup-technician{position:absolute;left:calc(var(--rig-x) - var(--tech-size)*.44);top:0;width:var(--tech-size);animation:cri-tech-descend 4.2s ease-in-out 1 both;will-change:transform}
.cri-startup-technician img{display:block;width:100%;height:auto;filter:drop-shadow(8px 14px 9px #14273e14)}

.cri-startup-adventure .cri-startup-card{position:relative;z-index:1;width:min(44%,430px);padding:32px;border:1px solid #fff;border-radius:24px;background:#fff;box-shadow:0 18px 60px #18314c0f;text-align:left}
.cri-startup-adventure .cri-startup-brand{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:26px}.cri-startup-adventure .cri-startup-brand img{width:50px;height:50px;border-radius:13px;box-shadow:none}.cri-startup-adventure .cri-startup-brand>span{font-size:11px;letter-spacing:2px;color:#334e73}
.cri-startup-adventure h1{font-size:clamp(24px,2.6vw,34px);letter-spacing:-.7px;line-height:1.18;max-width:310px}
.cri-startup-adventure .cri-startup-status{margin-top:18px}.cri-startup-adventure .cri-startup-card>small{margin-top:24px}
.cri-startup[data-error="true"] .cri-startup-technician{animation-play-state:paused}
@keyframes cri-tech-descend{from{transform:translateY(6vh)}to{transform:translateY(110dvh)}}
@media(max-width:760px){.cri-startup-adventure{--rig-x:38%;--tech-size:220px;align-items:flex-end;justify-content:center;padding:24px 20px;padding-bottom:max(24px,env(safe-area-inset-bottom));min-height:100dvh}.cri-startup-adventure .cri-startup-card{width:min(100%,400px);padding:24px;margin-top:32vh;border-radius:20px}.cri-startup-building{left:9%;width:82%;top:6%;bottom:5%}.cri-startup-adventure .cri-startup-brand{margin-bottom:18px}.cri-startup-adventure h1{font-size:28px;max-width:270px}.cri-startup-adventure .cri-startup-steps{gap:9px}.cri-startup-adventure .cri-startup-card>small{margin-top:18px}.cri-startup-technician{animation-duration:4.2s}}
@media(max-height:620px) and (min-width:761px){.cri-startup-adventure{padding:20px 6vw;--tech-size:230px}.cri-startup-adventure .cri-startup-card{padding:22px}.cri-startup-adventure .cri-startup-brand{margin-bottom:14px}.cri-startup-adventure .cri-startup-steps{gap:6px}.cri-startup-adventure .cri-startup-card>small{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.cri-startup-technician{animation:none!important;transform:translateY(10vh);opacity:1;will-change:auto}}

.cri-startup-building{inset:0;width:100%;border:0;border-radius:0;transform:none;background:url("/illustrations/refinery-photo.png") center / cover no-repeat;opacity:1;filter:saturate(.65)}
.cri-startup-building::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f6f8fc4d 0%,#f6f8fc66 32%,#f6f8fce8 65%,#f6f8fcfa 100%),linear-gradient(0deg,#f6f8fc8c,transparent 40%)}

@media(max-width:760px){.cri-startup-building{inset:0;width:100%;background-position:28% center;background-size:cover;opacity:1}.cri-startup-building::after{background:linear-gradient(180deg,#f6f8fc66 0%,#f6f8fc99 43%,#f6f8fce8 70%,#f6f8fcfa 100%)}}

/* One photographic rig: only joints move. Hardware remains on fixed rope axes. */
.cri-startup-technician{left:calc(var(--rig-x) - var(--tech-size)*.4951456311);z-index:1}
.cri-technician-rig{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(5px 10px 8px #14273e18)}
.cri-rig-head{transform-box:view-box;transform-origin:707px 390px;animation:cri-rig-look 4.2s cubic-bezier(.45,0,.35,1) both}
.cri-rig-far-leg{transform-box:view-box;transform-origin:310px 1040px;animation:cri-rig-knee-far 4.2s ease-in-out both}
.cri-rig-near-leg{transform-box:view-box;transform-origin:578px 1125px;animation:cri-rig-knee-near 4.2s ease-in-out both}
@keyframes cri-rig-look{0%,10%{transform:rotate(5deg)}36%{transform:rotate(0deg)}68%{transform:rotate(-3deg)}100%{transform:rotate(3deg)}}
@keyframes cri-rig-knee-far{0%{transform:rotate(-.5deg)}38%{transform:rotate(.9deg)}72%{transform:rotate(-.3deg)}100%{transform:rotate(.4deg)}}
@keyframes cri-rig-knee-near{0%{transform:rotate(.4deg)}48%{transform:rotate(-.7deg)}100%{transform:rotate(.3deg)}}
.cri-startup-ropes{position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round;--rope-width:3px}
.cri-rope-edges{stroke:#4e5b68;stroke-width:calc(var(--rope-width) + 1px)}
.cri-rope-core{stroke:#8b98a5;stroke-width:var(--rope-width)}
.cri-rope-braid{stroke:#d2d9e0;stroke-width:1;stroke-dasharray:1 5}
#startup-overlay .cri-startup-adventure:not(.is-asset-ready) .cri-technician-rig g,
.cri-startup[data-error="true"] .cri-technician-rig g{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.cri-technician-rig g{animation:none!important}}

#startup-ui{position:relative;z-index:1;width:min(44%,430px)}
#startup-overlay{position:fixed;inset:0;z-index:10000}
.cri-startup-adventure #startup-ui>.cri-startup-card{width:100%}
#startup-overlay .cri-startup-adventure:not(.is-asset-ready) .cri-startup-technician{animation-play-state:paused}
/* Both loading and descent finish before the scene gathers into the logo. */
#startup-overlay .cri-startup-scene{transform-origin:50% 50%}
#startup-overlay[data-phase="gathering"] .cri-startup-scene{animation:cri-scene-gather .8s cubic-bezier(.6,0,.9,.5) both}
#startup-overlay[data-phase="gathering"] .cri-startup-card{animation:cri-card-gather .8s cubic-bezier(.6,0,.9,.5) both}
#startup-overlay[data-phase="logo"] .cri-startup-scene,
#startup-overlay[data-phase="logo"] .cri-startup-card,
#startup-overlay[data-phase="leaving"] .cri-startup-scene,
#startup-overlay[data-phase="leaving"] .cri-startup-card{visibility:hidden}
.cri-startup-finale{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;visibility:hidden;text-align:center;pointer-events:none}
.cri-startup-finale img{width:clamp(110px,22vw,160px);height:auto;border-radius:28px;box-shadow:0 20px 70px #18314c1c}
.cri-startup-finale strong{font-size:20px;letter-spacing:5px;color:#334e73}
.cri-startup-finale p{font-size:14px;color:#526780;margin:0}
#startup-overlay[data-phase="logo"] .cri-startup-finale,
#startup-overlay[data-phase="leaving"] .cri-startup-finale{visibility:visible;animation:cri-logo-reveal .65s cubic-bezier(.2,.8,.2,1) both}
#startup-overlay[data-phase="leaving"]{animation:cri-overlay-leave .4s ease-in both;pointer-events:none}
@keyframes cri-scene-gather{to{transform:scale(.02) rotate(8deg);filter:blur(12px);opacity:0}}
@keyframes cri-card-gather{to{transform:translateX(-25vw) scale(.02) rotate(-8deg);filter:blur(12px);opacity:0}}
@keyframes cri-logo-reveal{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@keyframes cri-overlay-leave{to{opacity:0;transform:scale(1.025)}}
@media(max-width:760px){#startup-ui{width:min(100%,400px)}.cri-startup-adventure #startup-ui>.cri-startup-card{margin-top:32vh}@keyframes cri-card-gather{to{transform:translateY(-20vh) scale(.02);filter:blur(12px);opacity:0}}}
@media(prefers-reduced-motion:reduce){#startup-overlay *{animation:none!important;transition:none!important}}
.cri-startup-refresh{display:grid;place-items:center;padding:24px}
.cri-startup-refresh .cri-startup-scene,.cri-startup-refresh #startup-ui{display:none}
.cri-startup-refresh::after{content:'Gegevens vernieuwen…';color:#526780;font-size:14px}
.cri-startup-refresh[data-error="true"] #startup-ui{display:block}
.cri-startup-refresh[data-error="true"]::after{display:none}
.cri-startup-version{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:3;color:#526780;font:11px/1.4 Arial,sans-serif;letter-spacing:.2px;pointer-events:none}
