/* Motion chapters within the original Sivence homepage. */
:root{--orange:#ff5a1f}
.theatre,.lab-spotlight,.signal-story{scroll-margin-top:0}
.theatre{height:440vh;background:#111410;color:#fff;position:relative}.theatre-pin{position:sticky;top:0;height:100vh;min-height:630px;overflow:hidden;background:var(--stage-color,#111410);transition:background .8s ease}.theatre-head,.theatre-foot{position:absolute;z-index:12;left:clamp(22px,4vw,68px);right:clamp(22px,4vw,68px);display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.13em;font-weight:650}.theatre-head{top:108px}.theatre-foot{bottom:26px;gap:20px}.theatre-progress{width:22vw;height:1px;background:#ffffff66}.theatre-progress i{display:block;background:var(--orange);height:2px;transform-origin:left;transform:scaleX(var(--chapter-progress,0));transition:transform .2s}.theatre-nav{display:flex;gap:10px}.theatre-nav button{height:18px;width:18px;border:1px solid #fff9;background:transparent;border-radius:50%;padding:0}.theatre-nav button.active{background:var(--orange);border-color:var(--orange)}.theatre-steps{position:absolute;inset:0;display:grid;grid-template-rows:repeat(4,1fr);pointer-events:none}.theatre-stage{position:absolute;inset:0}.chapter{position:absolute;inset:0;display:grid;grid-template-columns:minmax(300px,43%) minmax(0,57%);align-items:center;padding:140px clamp(22px,4vw,68px) 90px;opacity:0;visibility:hidden;transform:scale(.97) translateY(25px);transition:opacity .7s ease,transform .8s var(--ease),visibility .7s;pointer-events:none}.chapter.active{opacity:1;visibility:visible;transform:none;pointer-events:auto}.scene-copy{position:relative;z-index:6;align-self:center}.scene-label{display:block;font-size:11px;font-weight:650;letter-spacing:.16em;color:var(--scene-accent);margin-bottom:27px}.chapter h2{font-weight:550;font-size:clamp(64px,8.8vw,140px);line-height:.85;letter-spacing:-.075em}.scene-dot{color:var(--orange)}.scene-deck{font-size:clamp(17px,1.7vw,24px);max-width:435px;line-height:1.4;margin:32px 0 38px;color:#f1f1ed}.scene-proof{border-top:1px solid #ffffff88;padding-top:18px;display:flex;gap:22px;align-items:flex-end;max-width:470px}.scene-proof strong{font-size:clamp(44px,5.7vw,82px);letter-spacing:-.07em;font-weight:500;line-height:1}.scene-proof span{font-size:12px;line-height:1.45;color:#e5e5e4;padding-bottom:5px}.scene-proof.word-proof strong{font-size:clamp(26px,2.5vw,40px);letter-spacing:-.04em}.scene-link{display:inline-flex;gap:65px;justify-content:space-between;margin-top:40px;background:#f6f4ec;color:#111;padding:17px 20px;min-width:250px;border-radius:50px;font-size:14px;font-weight:650;transition:background .2s,transform .25s}.scene-link:hover{background:var(--orange);transform:translateY(-4px)}.scene-art{position:relative;width:100%;height:min(66vh,700px);perspective:1200px}.artifact{position:absolute;padding:10px 10px 0;background:#f5f4ee;color:#1b1b19;box-shadow:0 25px 55px #0005;overflow:hidden;transition:transform .8s var(--ease),opacity .6s}.artifact img{height:calc(100% - 28px);width:100%;object-fit:contain;background:#e8e8e4}.artifact figcaption{height:28px;display:flex;align-items:center;font-size:9px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.scene-art .primary{width:66%;height:83%;left:17%;top:4%;z-index:3;transform:translateY(var(--media-y,0)) rotate(-4deg)}.scene-art .secondary{width:46%;height:47%;right:-5%;bottom:2%;z-index:4;transform:translateY(calc(var(--media-y,0)*-.6)) rotate(8deg)}.scene-art .tertiary{width:34%;height:40%;left:-2%;bottom:-3%;z-index:2;transform:rotate(-13deg)}.scene-art-bhatt .primary{width:86%;height:73%;left:10%;top:6%;transform:rotate(3deg)}.scene-art-bhatt .secondary{width:50%;height:42%;left:-5%;bottom:0;right:auto;transform:rotate(-7deg)}.scene-art-minimal .primary{width:93%;height:75%;left:5%;top:3%;transform:rotate(-3deg)}.scene-art-minimal .secondary{width:37%;height:47%;right:-4%;bottom:1%;transform:rotate(8deg)}.scene-art-auto .primary{width:88%;height:70%;left:8%;top:4%;transform:rotate(-3deg)}.scene-art-auto .secondary{width:62%;height:45%;right:-5%;bottom:2%;transform:rotate(6deg)}

.lab-spotlight{background:#111410;color:#f5f5ef;padding:clamp(90px,9vw,150px) clamp(22px,4vw,68px);display:grid;grid-template-columns:minmax(290px,33%) 1fr;gap:55px 6vw;overflow:hidden}
.lab-heading{align-self:center}.lab-heading .eyebrow{color:var(--orange)}
.lab-heading h2{font-size:clamp(54px,6.4vw,108px);line-height:.91;letter-spacing:-.07em;font-weight:550;margin:35px 0}
.lab-heading h2 em{font-style:normal;color:var(--orange)}
.lab-heading>p:not(.eyebrow){font-size:18px;line-height:1.48;color:#c7c9c0;max-width:420px}
.lab-heading a{display:inline-block;margin-top:38px;padding-bottom:8px;border-bottom:1px solid var(--orange);font-size:16px}
.lab-feature{min-width:0}.lab-feature video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:radial-gradient(ellipse at center,#353a2f 0%,#111410 72%)}
.lab-meta{display:flex;gap:20px;align-items:baseline;border-top:1px solid #555b52;padding-top:16px;margin-top:18px}
.lab-meta span{font-size:11px;color:#b7bbb1;line-height:1.3}.lab-meta strong{font-size:19px;font-weight:550;white-space:nowrap}
.lab-rail{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:15px}
.lab-rail a{min-width:0;display:block;overflow:hidden}.lab-rail img{width:100%;height:clamp(210px,26vw,360px);object-fit:contain;object-position:center;background:radial-gradient(ellipse at center,#252b24,#111410 73%);transition:transform .5s var(--ease)}
.lab-rail a:hover img{transform:scale(1.035)}.lab-rail span{display:block;border-top:1px solid #50564c;padding:14px 0;color:#d7d8d1;font-size:13px}

/* The case images are the actual work: full frame, without padded cards. */
.artifact{padding:0;background:transparent;color:#fff;overflow:visible;box-shadow:none;filter:drop-shadow(0 24px 38px #0008)}
.artifact img{height:100%;background:transparent;object-fit:contain}
.artifact figcaption{position:absolute;left:10px;bottom:-23px;height:auto;color:#fff;font-size:10px;text-shadow:0 1px 8px #000}
.scene-art-remic .primary{left:0;right:auto;top:10%;width:57%;height:76%;transform:translateY(var(--media-y,0)) rotate(-2deg)}
.scene-art-remic .secondary{left:auto;right:0;bottom:auto;top:24%;width:40%;height:50%;z-index:4;transform:rotate(2deg)}
.chapter[data-scene-index="2"] h2{font-size:clamp(42px,5.3vw,90px);white-space:nowrap}
.chapter[data-scene-index="3"] h2{font-size:clamp(54px,7.2vw,115px);white-space:nowrap}
.scene-link{display:inline-flex;align-items:center;min-width:0;gap:45px;margin-top:31px;padding:0 0 11px;border-bottom:1px solid #ff5a1f;background:transparent;color:#fff;border-radius:0;font-size:16px;font-weight:650;transition:color .25s}
.scene-link:hover{background:transparent;color:#ff8c63;transform:none}
.scene-link span{color:var(--orange)}
.lab-meta{flex-wrap:wrap}.lab-meta a{margin-left:auto;padding-bottom:4px;border-bottom:1px solid var(--orange);font-size:12px;white-space:nowrap}
.lab-feature video{background:radial-gradient(ellipse at center,#353a2f 0%,#111410 72%)}
.signal-story{position:relative;height:315vh;background:#090d0d;color:#f3f3ed}
.signal-pin{position:sticky;top:0;min-height:690px;height:100vh;display:grid;grid-template-columns:minmax(340px,43%) minmax(0,57%);align-items:center;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 77% 52%,#132427 0%,#090d0d 54%,#070909 85%)}
.signal-pin:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(90deg,#090d0de8 0%,transparent 56%)}
.signal-copy{position:relative;z-index:3;max-width:680px;padding:125px 0 70px clamp(22px,5vw,85px)}
.signal-copy .eyebrow{color:var(--orange)}
.signal-copy h2{font-size:clamp(60px,6.2vw,106px);font-weight:550;line-height:.9;letter-spacing:-.073em;margin:29px 0 25px}
.signal-copy h2 em{font-style:normal;color:var(--orange);white-space:nowrap}
.signal-intro{max-width:460px;color:#c8cbc5;font-size:clamp(16px,1.5vw,21px);line-height:1.45}
.signal-steps{margin-top:38px;max-width:455px}
.signal-step{position:relative;border-top:1px solid #61706b;padding:13px 0 12px 63px;color:#a6b1ad;transition:color .4s,opacity .4s}
.signal-step span{position:absolute;left:0;top:17px;font-size:10px;letter-spacing:.11em;color:#8a9792}
.signal-step strong{display:block;font-size:20px;font-weight:550;letter-spacing:-.03em}
.signal-step p{max-height:0;overflow:hidden;opacity:0;font-size:13px;line-height:1.45;color:#c3c9c4;transition:max-height .55s,opacity .4s,padding .4s}
.signal-step.active{color:#fff}.signal-step.active span{color:var(--orange)}.signal-step.active p{max-height:90px;padding-top:8px;opacity:1}
.signal-visual{position:relative;z-index:2;height:100%;min-width:0;background:radial-gradient(circle at 51% 50%,#ff5a1f12,transparent 38%)}
#signal-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:pan-y;opacity:0;transition:opacity .5s}
.webgl-ready #signal-canvas{opacity:1}.signal-fallback{position:absolute;left:50%;top:50%;width:min(52vw,570px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 35% 30%,#bdc8c324,#111c1f 49%,#ff5a1f63 67%,transparent 71%);box-shadow:0 0 100px #ff5a1f12;opacity:.9}
.webgl-ready .signal-fallback{opacity:0}.signal-legend{position:absolute;left:8%;right:8%;bottom:44px;display:flex;justify-content:space-between;gap:20px;font-size:10px;font-weight:650;letter-spacing:.15em;color:#d3d7d3}.signal-legend span:first-child{color:var(--orange)}
@media(max-width:1100px){.signal-pin{grid-template-columns:46% 54%}.signal-copy h2{font-size:clamp(50px,6vw,77px)}.signal-copy h2 em{white-space:normal}}
@media(max-width:760px){
 .theatre{height:420vh}.theatre-pin{min-height:600px}.theatre-head{top:86px}.theatre-foot{bottom:22px}.theatre-foot>span:first-child{display:none}.theatre-progress{width:32vw}
 .chapter{padding:115px 22px 65px;display:flex;flex-direction:column;align-items:stretch;justify-content:start}
 .scene-copy{align-self:stretch}.scene-label{margin-bottom:12px}.chapter h2{font-size:clamp(58px,11vw,85px)}.scene-deck{font-size:15px;margin:14px 0}.scene-proof{padding-top:10px;gap:14px}.scene-proof strong{font-size:39px}.scene-proof span{font-size:10px}
 .scene-link{margin-top:15px;padding-bottom:8px;font-size:13px;gap:30px}
 .scene-art{position:absolute;left:5%;right:5%;bottom:68px;width:90%;height:31vh;min-height:190px}
 .artifact img{height:100%}.artifact figcaption{bottom:-15px;font-size:7px}
 .scene-art .primary{left:13%;height:88%;top:0}.scene-art .secondary{height:53%;bottom:0}
 .scene-art-remic .primary{left:0;top:4%;height:82%;width:57%}.scene-art-remic .secondary{right:0;top:26%;bottom:auto;height:47%;width:40%}
 .chapter[data-scene-index="2"] h2{font-size:clamp(35px,8.1vw,62px)}.chapter[data-scene-index="3"] h2{font-size:clamp(49px,10vw,76px)}
 .lab-spotlight{grid-template-columns:1fr;gap:32px}.lab-heading h2{font-size:clamp(48px,11vw,78px)}.lab-heading a{margin-top:25px}.lab-rail{grid-column:1;gap:10px}.lab-rail img{height:240px}.lab-rail span{font-size:11px}
 .signal-story{height:285vh}.signal-pin{min-height:600px;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;background:radial-gradient(ellipse at 50% 80%,#142426,#090d0d 70%)}
 .signal-pin:after{background:linear-gradient(#090d0dba 0%,transparent 65%)}
 .signal-copy{padding:90px 22px 0;max-width:none}.signal-copy h2{font-size:clamp(48px,9.8vw,72px);margin:20px 0 12px}.signal-intro{font-size:14px;max-width:520px}
 .signal-steps{margin-top:16px;max-width:none}.signal-step{padding:7px 0 7px 55px}.signal-step span{top:10px;font-size:9px}.signal-step strong{font-size:16px}.signal-step p{font-size:11px}.signal-step.active p{max-height:65px;padding-top:3px}
 .signal-visual{height:37vh;min-height:190px;flex:none}.signal-fallback{width:min(56vw,330px)}.signal-legend{bottom:17px;left:22px;right:22px;font-size:8px}
}
@media(max-width:600px){.lab-rail{grid-template-columns:1fr;gap:24px}.lab-rail img{height:clamp(240px,72vw,360px)}.lab-rail span{font-size:13px;padding-top:12px}}
@media(max-width:480px){.chapter[data-scene-index="2"] h2{font-size:clamp(31px,8.1vw,46px)}.chapter[data-scene-index="3"] h2{font-size:clamp(46px,11vw,60px)}.lab-meta{display:grid;gap:5px}.signal-copy h2{font-size:clamp(44px,10vw,57px)}.signal-visual{height:31vh;min-height:170px}.signal-legend span:last-child{display:none}}
@media(max-height:700px) and (max-width:760px){.chapter{padding-top:90px}.chapter h2{font-size:48px}.scene-deck{font-size:13px;margin:10px 0}.scene-proof strong{font-size:32px}.scene-art{height:23vh;min-height:120px;bottom:48px}.theatre-head{top:72px}.theatre-foot{bottom:12px}}
@media(prefers-reduced-motion:reduce){.chapter{transition:none}.scene-art,.artifact{transform:none!important}.signal-step p{transition:none}.signal-fallback{opacity:1}}

.work-lightbox{max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0;border:0;padding:clamp(22px,5vw,65px);background:rgba(8,10,9,.97);color:#fff;box-sizing:border-box}
.work-lightbox[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.work-lightbox::backdrop{background:#050705e8}.work-lightbox img{display:block;max-width:100%;max-height:74vh;object-fit:contain;box-shadow:0 25px 90px #0009}
.work-lightbox p{font-size:12px;letter-spacing:.1em;text-transform:uppercase;align-self:start}.work-lightbox button{position:absolute;right:clamp(22px,4vw,68px);top:22px;background:#fff;border:0;color:#111;border-radius:50px;padding:10px 18px;cursor:pointer}
body.work-lightbox-open{overflow:hidden}.artifact{cursor:zoom-in}.artifact:focus-visible{outline:3px solid #ff5a1f;outline-offset:5px}

/* Nine real projects, with a direct route past the sequence. */
.theatre{height:850svh}
.theatre-steps{grid-template-rows:repeat(9,1fr)}
.theatre-head{gap:20px}.theatre-head a{color:#f2f2eb;text-transform:none;letter-spacing:0;border-bottom:1px solid var(--orange);padding-bottom:3px;font-size:12px}
.theatre-nav{align-items:center;gap:8px}.theatre-nav button{width:28px;height:28px;border-radius:50%;position:relative;background:transparent;border:0;padding:0;cursor:pointer}
.theatre-nav button:before{content:"";position:absolute;inset:8px;border:1px solid #fff9;border-radius:50%}.theatre-nav button.active:before{background:var(--orange);border-color:var(--orange)}
.theatre-nav button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.chapter h2{font-size:clamp(53px,6.1vw,100px);max-width:100%;white-space:nowrap}
.chapter[data-scene-index="1"] h2,.chapter[data-scene-index="4"] h2,.chapter[data-scene-index="5"] h2{font-size:clamp(38px,4.5vw,76px)}
.chapter[data-scene-index="2"] h2{font-size:clamp(41px,5.1vw,82px)}
.chapter[data-scene-index="6"] h2{font-size:clamp(34px,4vw,64px)}
.chapter[data-scene-index="8"] h2{font-size:clamp(53px,6.1vw,100px)}
.scene-art-soaltech .primary,.scene-art-autoreel .primary{width:91%;height:72%;left:4%;top:7%;transform:rotate(-2deg)}
.scene-art-soaltech .secondary,.scene-art-autoreel .secondary{width:49%;height:43%;right:-2%;bottom:0;transform:rotate(4deg)}
.scene-art-incuse .primary{width:68%;height:66%;left:6%;top:7%;transform:rotate(-3deg)}
.scene-art-incuse .secondary{width:54%;height:49%;right:0;bottom:0;transform:rotate(4deg)}
.scene-art-xipster .primary{width:68%;height:78%;left:5%;top:5%;transform:rotate(-3deg)}
.scene-art-xipster .secondary{width:48%;height:50%;right:0;bottom:2%;transform:rotate(4deg)}
.scene-art-nett-technologies .primary{width:85%;height:70%;left:6%;top:4%;transform:rotate(-2deg)}
.scene-art-nett-technologies .secondary{width:62%;height:31%;right:0;bottom:2%;transform:rotate(3deg)}
.portfolio-board{width:min(90%,640px);min-height:min(65vh,560px);margin:4% auto 0;border:1px solid #ffffff55;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(25px,4vw,60px);background:linear-gradient(135deg,#222b23,#111410);box-shadow:0 30px 80px #0005;transform:rotate(-2deg);color:#f2f2eb}
.portfolio-board>span,.portfolio-board small{font-size:11px;letter-spacing:.12em;color:#b8c3b8}.portfolio-board>strong{font-size:clamp(53px,5.5vw,95px);font-weight:550;line-height:.9;letter-spacing:-.065em;color:var(--orange)}
.portfolio-board>div{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #9ba899;border-bottom:1px solid #9ba899}.portfolio-board>div span{padding:16px 8px;font-size:12px;line-height:1.3;border-right:1px solid #6b776c}.portfolio-board>div span:last-child{border-right:0}
@media(max-width:760px){.theatre{height:810svh}.theatre-head{top:84px}.theatre-head a{font-size:10px}.theatre-head span:first-child{display:none}.theatre-nav{gap:1px}.theatre-nav button{width:27px;height:27px}.chapter h2{font-size:clamp(52px,10vw,76px)}.chapter[data-scene-index="1"] h2,.chapter[data-scene-index="4"] h2,.chapter[data-scene-index="5"] h2{font-size:clamp(29px,7.1vw,54px)}.chapter[data-scene-index="2"] h2{font-size:clamp(29px,8vw,52px)}.chapter[data-scene-index="6"] h2{font-size:clamp(29px,7.1vw,54px)}.chapter[data-scene-index="8"] h2{font-size:clamp(50px,10vw,75px)}.scene-art-soaltech .primary,.scene-art-autoreel .primary{height:75%;top:0}.scene-art-soaltech .secondary,.scene-art-autoreel .secondary{height:44%}.portfolio-board{min-height:0;height:100%;width:90%;padding:20px}.portfolio-board>strong{font-size:clamp(39px,10vw,65px)}.portfolio-board>div span{font-size:9px;padding:8px 4px}.portfolio-board small{font-size:8px}}
@media(max-width:420px){.theatre-head{top:77px}.theatre-head a{font-size:9px}.chapter[data-scene-index="6"] h2{font-size:6.7vw}.chapter[data-scene-index="4"] h2,.chapter[data-scene-index="1"] h2{font-size:7vw}}
@media(prefers-reduced-motion:reduce){.theatre{height:auto}.theatre-pin{height:auto;position:relative;min-height:0;overflow:visible}.theatre-stage{position:relative}.chapter,.chapter[aria-hidden="true"]{position:relative;display:grid;opacity:1;visibility:visible;pointer-events:auto;transform:none;min-height:720px;border-bottom:1px solid #ffffff44}.theatre-head,.theatre-foot,.theatre-steps{display:none}}

@media(min-width:761px){.chapter[data-scene-index="6"] h2{font-size:clamp(34px,4vw,64px)}}

@media(max-width:760px){.scene-art-nett-technologies .primary{width:92%;height:72%;left:2%}.scene-art-nett-technologies .secondary{width:64%;height:28%}}
/* Mobile chapters follow their own copy length; the artwork takes the remaining
   stage space instead of being pinned to a fixed vertical coordinate. */
@media(max-width:760px){
 .theatre-pin{height:100svh;min-height:0}
 .chapter{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-content:stretch;gap:clamp(10px,2svh,18px);padding:clamp(100px,12svh,115px) 22px 64px}
 .scene-copy{align-self:start}
 .scene-art{position:relative;top:auto;bottom:auto;left:auto;right:auto;width:100%;height:100%;min-height:0;align-self:stretch}
 .scene-art .artifact img{object-position:center}
 .portfolio-board{margin:0 auto;min-height:0;height:100%;padding:clamp(12px,2.5svh,22px)}
 .portfolio-board>strong{font-size:clamp(25px,6.4vw,43px)}
 .portfolio-board>span,.portfolio-board small{font-size:9px}
}
@media(max-height:700px) and (max-width:760px){
 .chapter{padding:88px 22px 52px;gap:8px}
 .scene-label{margin-bottom:7px}.scene-deck{margin:8px 0;font-size:13px;line-height:1.3}
 .scene-proof{padding-top:7px}.scene-proof strong{font-size:30px}.scene-link{margin-top:9px}
 .theatre-head{top:69px}.theatre-foot{bottom:10px}
 .portfolio-board small{display:none}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){
 .theatre-pin{position:relative;height:auto;min-height:0}
 .chapter{grid-template-rows:auto minmax(240px,1fr);min-height:700px}
}
