/* A scroll-directed entrance, built around the approved first frame. */
.cinema-journey{position:relative;background:#000}
.journey-destination,.journey-progress,.journey-hint{display:none}
html.cinema-enabled .cinema-journey{height:260svh;min-height:1500px;overflow:visible}
html.cinema-enabled .cinema-journey .reference-hero{position:sticky;top:0;height:100svh;min-height:0;max-height:none;aspect-ratio:auto;contain:paint;--travel:0;--copy-hide:0;--portal-reveal:0;--portal-opacity:0;--art-opacity:1;--portfolio-spread:0}
html.cinema-enabled .reference-art{transform:none!important;opacity:var(--art-opacity);will-change:opacity}
html.cinema-enabled .reference-copy{top:26.6%;opacity:calc(1 - var(--copy-hide));transform:translate3d(0,calc(var(--copy-hide)*-100px),0);pointer-events:none;will-change:transform,opacity}
html.cinema-enabled body[data-page=home] .reference-copy h1{font-size:clamp(38px,min(5.6vw,8.4svh),100px)}
html.cinema-enabled .reference-copy h1 span{transform:translateX(calc(var(--copy-hide)*var(--line-shift,-70px)));will-change:transform}
html.cinema-enabled .reference-copy h1 span:nth-child(2){--line-shift:-125px}
html.cinema-enabled .reference-copy h1 span:nth-child(3){--line-shift:-185px}
html.cinema-enabled .reference-manifesto{margin-top:clamp(24px,3.2vw,45px)}
html.cinema-enabled .reference-explore{opacity:calc(1 - var(--copy-hide));transform:translateY(calc(var(--copy-hide)*55px));z-index:5}
html.cinema-enabled .reference-coordinate,html.cinema-enabled .reference-caption{opacity:calc(1 - var(--copy-hide))}
.reference-explore:hover .reference-arrow,.reference-explore:focus-visible .reference-arrow{transform:scale(1.14);box-shadow:0 0 42px #9dc5ff66,inset 0 0 20px #abcfff22;background:#366fd626}
.reference-arrow{transition:transform .45s cubic-bezier(.22,1.5,.45,1),border-color .3s,box-shadow .4s,background .3s}
.reference-explore:hover svg{transform:translateX(4px)}

/* The doorway opens onto real client work. This layer becomes interactive only when open. */
html.cinema-enabled .journey-destination{display:flex;position:absolute;inset:0;z-index:4;flex-direction:column;align-items:center;justify-content:center;padding:90px 5% 70px;background:#030406;opacity:var(--portal-opacity);clip-path:var(--doorway-clip,polygon(76.20% 52.3%,76.30% 52.3%,76.30% 74.9%,76.20% 74.9%));pointer-events:none;overflow:hidden}
html.cinema-enabled .journey-destination.is-open{pointer-events:auto}
.journey-destination:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 52% 55% at 50% 65%,#32567f24,transparent 76%);pointer-events:none}
.destination-heading{position:relative;text-align:center;z-index:2;margin-bottom:35px;transform:translateY(calc((1 - var(--portfolio-spread))*35px));opacity:var(--portfolio-spread)}
.destination-heading p{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#9dadc1;margin:0 0 20px}
.destination-heading h2{font-size:clamp(36px,4.5vw,69px);font-weight:300;line-height:1.04;letter-spacing:-.045em;color:#f0f3f8;margin:0}
.destination-heading h2 span{color:#929fb2}
.destination-projects{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(1250px,100%);gap:25px;perspective:1600px;align-items:center;z-index:2}
.destination-card{min-width:0;display:block;position:relative;transform-style:preserve-3d;transform:translate3d(calc((1 - var(--portfolio-spread))*var(--card-x,0px)),calc((1 - var(--portfolio-spread))*140px),0) rotateY(calc((1 - var(--portfolio-spread))*var(--card-turn,0deg))) scale(calc(.64 + var(--portfolio-spread)*.36));opacity:clamp(0,calc(var(--portfolio-spread)*2),1);will-change:transform;transition:filter .3s ease}
.destination-card:first-child{--card-x:220px;--card-turn:42deg}
.destination-card:last-child{--card-x:-220px;--card-turn:-42deg}
.destination-card:nth-child(2){z-index:2;margin-top:-25px}
.destination-card img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;object-position:top;border:1px solid #c3d4ea70;border-radius:4px;box-shadow:0 25px 70px #000b,0 0 35px #a2c5f418}
.destination-card>span{display:flex;justify-content:space-between;gap:10px;padding:14px 2px;color:#c2ccda;font-size:11px;letter-spacing:.025em}
.destination-card small{color:#7791b3;font-size:10px}
.destination-card:hover,.destination-card:focus-visible{filter:brightness(1.12)}
.destination-card:focus-visible{outline:1px solid #d9e8ff;outline-offset:5px}
.destination-actions{position:relative;z-index:3;display:flex;gap:30px;align-items:center;justify-content:center;margin-top:32px;opacity:var(--portfolio-spread);transform:translateY(calc((1 - var(--portfolio-spread))*25px))}
.destination-actions a{display:inline-flex;align-items:center;gap:25px;border-bottom:1px solid #d1ddeb70;padding:13px 0;color:#e0e8f5;font-size:10px;text-transform:uppercase;letter-spacing:.16em}
.destination-actions button{border:0;background:transparent;color:#8a9bb3;padding:13px 0;font-size:10px;letter-spacing:.08em;cursor:pointer}
.destination-actions button:hover{color:#fff}
html.cinema-enabled .journey-hint{display:block;position:absolute;left:5%;bottom:8%;z-index:3;color:#a3b4ce;font-size:9px;letter-spacing:.12em;text-transform:uppercase;opacity:calc(1 - var(--copy-hide));margin:0}
html.cinema-enabled .journey-progress{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:8;display:flex;align-items:center;gap:18px;color:#75869f;font-size:8px;letter-spacing:.16em;text-transform:uppercase;pointer-events:none}
.journey-progress i{position:relative;width:110px;height:1px;background:#b9cee32b;overflow:hidden}
.journey-progress i:after{content:'';position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--travel));background:#d6e7ff;box-shadow:0 0 8px #abcfff}
.reference-motion{z-index:10!important}
.reference-motion{width:auto;min-width:100px;display:flex;gap:8px;align-items:center;justify-content:flex-start;padding:0 7px;background:transparent;color:#a5b6cd;font-size:8px;letter-spacing:.04em}
.reference-motion .motion-label{position:static;clip-path:none;width:auto;height:auto;overflow:visible;white-space:nowrap}
.hint-mobile{display:none}
.identity-orbit-stage.is-dragging{cursor:grabbing}
@media(max-width:650px){.hint-desktop{display:none}.hint-mobile{display:inline}.journey-progress>span{display:none}.reference-motion{font-size:7px;min-width:90px}}

/* Larger section entrances resolve into stable, readable screens. */
.work-reveal72,.software-reveal72{position:relative;perspective:1700px;--reveal-progress:1}
html.cinema-enabled .work-reveal72 .portfolio-canvas{transform:translate3d(0,calc((1 - var(--reveal-progress))*115px),0) rotateX(calc((1 - var(--reveal-progress))*14deg)) scale(calc(.86 + var(--reveal-progress)*.14))!important;transform-origin:50% 80%;opacity:calc(.25 + var(--reveal-progress)*.75);will-change:transform;clip-path:inset(calc((1 - var(--reveal-progress))*12%) calc((1 - var(--reveal-progress))*8%) round 4px)}
html.cinema-enabled .software-reveal72 .software-stage{transform:translate3d(0,calc((1 - var(--reveal-progress))*100px),0) rotateX(calc((1 - var(--reveal-progress))*16deg)) scale(calc(.88 + var(--reveal-progress)*.12));transform-origin:50% 60%;opacity:calc(.25 + var(--reveal-progress)*.75);will-change:transform;transition:none}
html.cinema-enabled .perspective-title h2{background:linear-gradient(100deg,#f1f4fa 0%,#f1f4fa calc(var(--section-progress)*100%),#697386 calc(var(--section-progress)*100% + 8%),#697386 100%);color:transparent;background-clip:text;-webkit-background-clip:text}
html.cinema-enabled .perspective-title h2 span{color:inherit}
html.cinema-enabled .capabilities-list>a{transform:translateX(calc((1 - var(--row-progress,1))*55px));opacity:calc(.35 + var(--row-progress,1)*.65);transition:background .3s ease}
.identity-orbit-stage{cursor:grab;touch-action:pan-y}
.identity-orbit-stage:active{cursor:grabbing}
.orbit-instruction{font-size:8px;letter-spacing:.17em;text-transform:uppercase;text-align:center;color:#6f8098;margin:19px 0 0}

@media(max-width:900px){.destination-heading h2{font-size:46px}.destination-projects{gap:15px}.destination-card>span{font-size:10px}.destination-card small{display:none}.destination-heading{margin-bottom:35px}}
@media(max-width:650px){html.cinema-enabled .cinema-journey{height:230svh;min-height:1450px}html.cinema-enabled .cinema-journey .reference-hero{height:100svh;min-height:0}html.cinema-enabled .reference-copy{top:17%}html.cinema-enabled body[data-page=home] .reference-copy h1{font-size:clamp(30px,8.5vw,50px)}html.cinema-enabled .reference-manifesto{font-size:7px;margin-top:23px;letter-spacing:.19em}html.cinema-enabled .reference-explore{top:42%;left:24px}.reference-hero:after{pointer-events:none}html.cinema-enabled .journey-hint{left:24px;bottom:8%;font-size:7px;letter-spacing:.09em;max-width:200px;line-height:1.8}html.cinema-enabled .journey-destination{padding:100px 24px 80px}.destination-heading{margin-bottom:32px}.destination-heading p{font-size:8px;margin-bottom:18px}.destination-heading h2{font-size:41px}.destination-projects{display:block;width:100%;max-width:420px;height:260px}.destination-card{position:absolute;width:72%;left:14%;top:20px}.destination-card:first-child{--card-x:40px;--card-turn:30deg;transform:translate3d(calc(var(--portfolio-spread)*-43px),calc(var(--portfolio-spread)*-9px),0) rotateZ(calc(var(--portfolio-spread)*-9deg)) scale(.9)}.destination-card:last-child{--card-x:-40px;--card-turn:-30deg;transform:translate3d(calc(var(--portfolio-spread)*43px),calc(var(--portfolio-spread)*10px),0) rotateZ(calc(var(--portfolio-spread)*9deg)) scale(.9)}.destination-card:nth-child(2){margin-top:0;top:60px;transform:translateY(calc((1 - var(--portfolio-spread))*80px));z-index:3}.destination-card>span{font-size:9px;background:#05070a;padding:10px 7px;border:1px solid #9cb4d529;border-top:0}.destination-card img{border-radius:2px}.destination-actions{gap:23px;margin-top:7px}.destination-actions a{font-size:8px;gap:13px;letter-spacing:.1em}.destination-actions button{font-size:9px}.journey-progress{bottom:18px!important;font-size:6px!important;gap:12px!important}.journey-progress i{width:70px}html.cinema-enabled .work-reveal72 .portfolio-canvas{transform:translateY(calc((1 - var(--reveal-progress))*65px)) scale(calc(.9 + var(--reveal-progress)*.1))!important;clip-path:none}html.cinema-enabled .software-reveal72 .software-stage{transform:translateY(calc((1 - var(--reveal-progress))*65px)) scale(calc(.94 + var(--reveal-progress)*.06))}.orbit-instruction{font-size:7px}}
@media(max-height:640px) and (min-width:651px){.destination-heading{margin-bottom:22px}.destination-heading h2{font-size:39px}.destination-heading p{margin-bottom:12px;font-size:8px}.destination-projects{max-width:920px}.destination-card img{max-height:190px}.destination-actions{margin-top:12px}.journey-destination{padding-top:88px!important;padding-bottom:55px!important}.journey-hint{bottom:7%!important;font-size:7px!important}}
@media(prefers-reduced-motion:reduce){.reference-arrow{transition:none;transform:none!important}.orbit-instruction{display:none}}
@media(pointer:coarse){.orbit-instruction{display:none}}

/* Static stars share the scene crop when animation is paused or unavailable. */
.reference-art img.hero-stars74{position:absolute;inset:0;pointer-events:none}
