/* Scroll chapters: depth comes from perspective and independently moving layers. */
body{overflow-x:clip}.portrait{animation:none!important;opacity:1}.portrait-panel{transform:perspective(1000px) rotateY(-9deg) rotateZ(3deg);transition:transform .15s ease-out;transform-style:preserve-3d}.cover-grid{perspective:1200px}.cover{isolation:isolate}.portrait-panel .burst{translate:0 0;transform:translateZ(50px) rotate(-12deg)}
.scroll-scene{height:280svh;position:relative;background:#152e63;color:#fff3d4}.scene-sticky{height:100svh;min-height:600px;position:sticky;top:0;overflow:hidden;perspective:1200px;isolation:isolate;background-image:radial-gradient(#fff3d422 1px,transparent 1px);background-size:7px 7px}.scene-words{position:absolute;inset:14% 0 auto;text-align:center;z-index:2;pointer-events:none}.scene-words h2{font-size:clamp(56px,8vw,120px);line-height:.96}.scene-words h2 em{color:#ffda43}.scene-words>p:last-child{font:13px monospace}.scene-art{position:absolute;object-fit:contain;pointer-events:none;will-change:transform;filter:drop-shadow(12px 18px 0 #09152c55)}.scene-city{width:47%;left:-12%;bottom:-9%;z-index:1;transform:translateX(-65%) rotate(-18deg)}.scene-laptop{width:48%;right:-12%;top:43%;z-index:4;transform:translateX(70%) rotate(25deg)}.scene-card{width:30%;position:absolute;left:35%;top:49%;border:4px solid #121212;box-shadow:12px 12px #0005;background:#fff3d4;color:#121212;transform-style:preserve-3d;will-change:transform}.scene-card span{display:block;padding:10px;font:700 10px monospace}.scene-card img{display:block;aspect-ratio:1.6;object-fit:cover;width:100%;height:auto}.scene-card-one{z-index:3;transform:rotateY(25deg) rotateZ(-12deg)}.scene-card-two{z-index:2;transform:translateX(30%) rotateY(-25deg) rotateZ(12deg)}.scene-caption{position:absolute;bottom:30px;left:6%;right:6%;display:flex;justify-content:space-between;font:11px monospace;z-index:6}.scene-meter{position:absolute;bottom:0;left:0;right:0;height:5px;background:#fff3d422;z-index:6}.scene-meter i{display:block;background:#ffda43;height:100%;transform-origin:left;transform:scaleX(0)}.scroll-web{position:absolute;width:min(36vw,510px);height:auto;pointer-events:none;z-index:5;color:#fff3d4;filter:drop-shadow(1px 2px 0 #0c183c);opacity:.8}.web-left{left:-1%;top:0}.web-right{right:-1%;top:0;transform:scaleX(-1)}.scroll-web path{stroke-dasharray:1;stroke-dashoffset:1}.scene-sticky .scroll-web{width:37%}.project{transition:transform .25s ease-out;transform-style:preserve-3d}.project-image{transform:translateZ(20px)}.toolkit{min-height:750px;isolation:isolate}.toolkit>.eyebrow,.toolkit>h2,.toolkit>p,.tools{position:relative;z-index:6}.toolkit .scroll-web{opacity:.32}.tools{perspective:900px;padding-bottom:30px}.tool{box-shadow:6px 6px #10101a,10px 10px 0 #fff2}.tool:nth-child(3n+1){rotate:-5deg}.tool:nth-child(3n+2){rotate:6deg}.contact{isolation:isolate;min-height:650px;padding-right:30%}.contact-city{position:absolute;right:-14%;bottom:-12%;width:49%;pointer-events:none;z-index:-1}.contact .scroll-web{z-index:-1;opacity:.6}.contact h2{font-size:clamp(48px,6vw,85px)}.contact .end-mark{right:7%;bottom:30px;z-index:2}.motion-off .scroll-scene{height:100svh}.motion-off .scene-city{transform:translateX(0) rotate(-8deg)!important}.motion-off .scene-laptop{transform:translateX(0) rotate(8deg)!important}.motion-off .scroll-web path{stroke-dashoffset:0!important}.motion-off .scene-words{transform:none!important;opacity:1!important}.motion-off .scene-card{display:none}.motion-off .scene-sticky{position:relative}.motion-off .scene-meter{display:none}.motion-off .portrait-panel,.motion-off .project{transform:none!important}
@media(max-width:750px){.scroll-scene{height:230svh}.scene-sticky{min-height:560px}.scene-words{top:15%;padding:0 20px}.scene-words h2{font-size:clamp(50px,12vw,80px)}.scene-city{width:74%;left:-30%;bottom:4%}.scene-laptop{width:73%;right:-33%;top:57%}.scene-card{width:58%;left:21%;top:48%;border-width:3px;box-shadow:6px 6px #0005}.scene-card span{font-size:8px;padding:7px}.scene-sticky .scroll-web{width:65%}.scene-caption{font-size:9px;bottom:25px;gap:20px}.scene-caption span{max-width:45%}.toolkit{min-height:900px}.contact{padding-right:6%;padding-bottom:240px}.contact-city{width:65%;right:-13%;bottom:-5%;opacity:.9}.contact .end-mark{left:6%;right:auto;bottom:110px;font-size:21px}.scroll-web{width:65%}.portrait-panel{transform:rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.scroll-scene{height:100svh}.scene-sticky{position:relative}.scene-city{transform:rotate(-8deg)!important}.scene-laptop{transform:rotate(8deg)!important}.scene-card{display:none}.scroll-web path{stroke-dashoffset:0!important}.scene-words{transform:none!important;opacity:1!important}.scene-meter{display:none}}
.scene-art,.contact-city{height:auto}.scene-sticky .scroll-web{z-index:1}.scene-words{z-index:6}
@media(max-width:750px){.scene-sticky .scroll-web{width:44%}.scene-sticky .web-left{left:-8%}.scene-sticky .web-right{right:-8%}}

/* A small creative desk: clear headline, separated objects, scroll-led gestures. */
.scroll-scene{height:210svh;background:#101d3c}
.scene-sticky{background-image:radial-gradient(ellipse at 50% 76%,#29487466,transparent 64%),radial-gradient(#fff3d40c .7px,transparent .7px);background-size:auto,9px 9px;min-height:540px}
.scene-words{inset:17% 20px auto;opacity:1;transform:none}
.scene-words h2{font-size:clamp(52px,6.5vw,94px);letter-spacing:-.025em}
.scene-words .eyebrow{margin-bottom:18px;color:#cfdbed}
.scene-words>p:last-child{margin-top:22px;color:#cfdbed;font-size:13px}
.idea-workbench{position:absolute;left:50%;top:49%;width:min(100%,1150px);height:40%;transform:translateX(-50%);pointer-events:none}
.idea-workbench .scene-art{filter:drop-shadow(0 18px 14px #060e2344);will-change:transform;object-fit:contain}
.scene-notebook{width:33%;left:9%;top:14%;z-index:2}
.scene-pencil{width:23%;left:1%;top:0;z-index:3}
.idea-workbench .scene-laptop{width:36%;right:3%;top:10%;z-index:2;transform:rotate(8deg)}
.idea-trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible;color:#ffe14b;opacity:.5}
.idea-trail path{stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.idea-trail .idea-arrow{stroke-dasharray:none;stroke-dashoffset:0}
.idea-spark,.idea-code{position:absolute;display:block;color:#ffe14b;will-change:transform}
.spark-one{font-size:36px;left:47%;top:20%}.spark-two{font-size:22px;right:6%;top:2%}
.idea-code{font:700 25px monospace;left:47%;top:70%;color:#a9cce6}
.motion-off .idea-workbench .scene-art,.motion-off .idea-spark,.motion-off .idea-code{transform:none!important}
.motion-off .idea-trail path{stroke-dashoffset:0!important}
@media(max-width:750px){
 .scroll-scene{height:190svh}.scene-words{top:19%;padding:0 5px}.scene-words h2{font-size:clamp(44px,11vw,72px)}
 .scene-words .eyebrow{font-size:9px}.scene-words>p:last-child{font-size:11px}
 .idea-workbench{top:51%;height:34%;width:100%}.scene-notebook{width:43%;left:3%;top:14%}.scene-pencil{width:29%;left:0;top:0}
 .idea-workbench .scene-laptop{width:44%;right:1%;top:37%}.spark-one{left:50%;top:10%;font-size:25px}.spark-two{right:8%;top:29%;font-size:18px}
 .idea-code{left:32%;top:82%;font-size:18px}.idea-trail{opacity:.3}
}
@media(prefers-reduced-motion:reduce){.scroll-scene{height:100svh}.idea-workbench .scene-art,.idea-spark,.idea-code{transform:none!important}.idea-trail path{stroke-dashoffset:0!important}}
/* Skills keep their grid positions while the scroll reveals each card. */
#stack .tool {
  rotate: 0;
  translate: none !important;
  transform: none;
  opacity: 1;
  scale: calc(.94 + .06 * var(--scroll-reveal, 1));
  box-shadow: 5px 5px #10101a;
  transition: opacity .16s linear, transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
#stack .tool[aria-pressed="true"] {
  outline: 2px solid #ffda43;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  #stack .tool:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 5px 8px #10101a;
  }
}
#stack .tool:active { transform: translateY(1px); }
.motion-off #stack .tool { opacity: 1; }
@media(prefers-reduced-motion:reduce) {
  #stack .tool { opacity:1; transition:none; }
  #stack .tool:hover, #stack .tool:active { transform:none; }
}
