/* Choreographed motion. All content keeps a normal, readable fallback. */
.hero::before{background:radial-gradient(ellipse at var(--ambient-x,80%) var(--ambient-y,25%),#68a8aa1c,transparent 57%);transition:opacity .5s}
.motion-ready .hero h1 .line>span{animation:none}
.motion-glyph{display:inline-block;transform-origin:50% 100%;animation:glyph-arrive 1s cubic-bezier(.16,1,.25,1) both;animation-delay:calc(110ms + var(--glyph-index,0)*24ms)}
.motion-glyph.glyph-dot{color:var(--accent)}
.motion-ready .hero-intro{animation:label-arrive 1s .08s both}
.portrait-depth{position:relative;perspective:1200px;transform-style:preserve-3d}
.motion-ready .portrait-frame{transform:translate3d(0,var(--portrait-y,0px),0) rotateX(var(--portrait-rx,0deg)) rotateY(var(--portrait-ry,0deg));transform-origin:50% 50%;will-change:transform;animation:portrait-unveil 1.5s .16s cubic-bezier(.2,.8,.2,1) both;box-shadow:0 25px 75px #0003}
.motion-ready .portrait-photo{transform:scale(var(--portrait-scale,1.18)) translateY(-4%);will-change:transform}
.motion-ready .portrait-frame figcaption{transform:translate3d(0,var(--caption-y,0px),20px)}
.motion-ready .portrait-caption-icon{box-shadow:0 0 25px #b2decc0a}
.heading-mask{display:block;overflow:hidden;padding-bottom:.12em;margin-bottom:-.12em}
.heading-move{display:block;transform:translate3d(0,108%,0) rotate(1.2deg);transform-origin:0 100%;transition:transform 1.05s cubic-bezier(.16,1,.25,1);transition-delay:calc(var(--heading-line,0)*95ms)}
.reveal.visible .heading-move{transform:translate3d(0,0,0) rotate(0)}
[data-scroll-words]{--reading-progress:0;position:relative}
.scroll-word{color:color-mix(in srgb,var(--ink) calc(var(--word-fill,0)*100%),var(--muted));transition:color .05s linear}
.reading-line{height:1px;position:absolute;left:0;bottom:-14px;width:100%;background:var(--line);transform-origin:left;overflow:hidden}
.reading-line::after{content:"";position:absolute;inset:0;background:var(--accent);transform:scaleX(var(--reading-progress));transform-origin:left}
.motion-ready .expertise-list.visible .expertise-item{animation:detail-arrive .8s var(--ease) both}
.motion-ready .expertise-list.visible .expertise-item:nth-of-type(2){animation-delay:.1s}
.motion-ready .expertise-list.visible .expertise-item:nth-of-type(3){animation-delay:.2s}
.motion-ready .code-window{transition:box-shadow .45s,border-color .45s}
.motion-ready .code-window:hover{border-color:#557784;box-shadow:0 20px 55px #0002,0 0 35px #8ec9b709}
.button-primary svg,.button-outline svg,.header-contact svg{transition:transform .35s var(--ease)}
.button-primary:hover svg,.button-outline:hover svg,.header-contact:hover svg{transform:translate(2px,-2px)}
.profile-viewport{width:100%;position:relative}
.profile-card{--card-rx:0deg;--card-ry:0deg;--card-lift:0px;transform-style:preserve-3d}
.motion-ready .profile-card.visible{transform:perspective(1000px) translateY(var(--card-lift)) rotateX(var(--card-rx)) rotateY(var(--card-ry));transition:opacity .85s var(--ease),border-color .35s,box-shadow .35s}
.motion-ready .profile-card:hover{--card-lift:-5px;border-color:color-mix(in srgb,var(--accent) 65%,var(--line));box-shadow:0 20px 55px #0002}
.profile-card::after{content:"";position:absolute;inset:0;background:radial-gradient(350px circle at var(--shine-x,50%) var(--shine-y,50%),#c3e9dc16,transparent 70%);opacity:var(--card-glow,0);pointer-events:none;transition:opacity .35s}
.motion-ready .platform-icon{transition:transform .5s var(--ease),box-shadow .4s;transform:translateZ(12px)}
.motion-ready .profile-card:hover .platform-icon{transform:translateZ(22px) rotate(-6deg);box-shadow:0 10px 25px #0002}
.gallery-controls,.gallery-progress{display:none}
.work.rail-enabled{height:var(--work-scene-height);padding:0}
.rail-enabled .work-pin{position:sticky;top:var(--header);height:calc(100svh - var(--header));padding-block:32px;display:flex;flex-direction:column;justify-content:center;overflow:hidden;isolation:isolate}
.rail-enabled .work-pin::before{content:"CONNECT.";position:absolute;right:-.04em;bottom:13%;font-size:25vw;font-weight:600;letter-spacing:-.08em;line-height:.8;color:var(--ink);opacity:.025;z-index:-1;pointer-events:none}
.rail-enabled .work-pin>.container{position:relative;z-index:1}
.rail-enabled .work-heading{margin-top:27px;margin-bottom:30px}
.rail-enabled .work-heading h2{font-size:clamp(48px,5vw,70px);line-height:1.06}
.rail-enabled .profile-viewport{overflow:hidden;padding-block:12px;flex-shrink:0}
.rail-enabled .profile-viewport::before,.rail-enabled .profile-viewport::after{content:"";position:absolute;top:0;bottom:0;width:35px;z-index:3;pointer-events:none}
.rail-enabled .profile-viewport::before{left:0;background:linear-gradient(90deg,var(--paper),transparent)}
.rail-enabled .profile-viewport::after{right:0;background:linear-gradient(270deg,var(--paper),transparent)}
.rail-enabled .profile-grid{display:flex;gap:24px;width:max-content;max-width:none;padding-inline:var(--rail-gutter,56px);margin:0;transform:translate3d(var(--rail-x,0px),0,0);will-change:transform}
.rail-enabled .profile-card{flex:0 0 clamp(350px,35vw,480px);width:clamp(350px,35vw,480px);min-height:314px;padding:28px 30px;flex-shrink:0;border-radius:13px}
.rail-enabled .profile-card h3{font-size:37px;letter-spacing:-1.3px;margin-top:31px}
.rail-enabled .profile-card>p{font-size:13px;line-height:1.8}
.rail-enabled .platform-icon{height:49px;width:49px;border-radius:12px}
.rail-enabled .platform-icon svg{height:28px;width:28px}
.rail-enabled .profile-card-index{font-size:8px;letter-spacing:1px}
.rail-enabled .profile-card .platform-arrow{height:17px;width:17px;margin-left:9px}
.rail-enabled .profile-card-bottom{font-size:8px;padding-top:18px;margin-top:25px}
.rail-enabled .profile-card.is-featured{border-color:color-mix(in srgb,var(--accent) 60%,var(--line))}
.rail-enabled .work-bottom{margin-top:14px;padding-top:16px;gap:15px;min-height:50px}
.rail-enabled .gallery-prompt{font-size:8px;letter-spacing:1.1px}
.rail-enabled #social-note{font-size:9px;text-align:right;min-width:175px}
.rail-enabled .gallery-controls{display:flex;align-items:center;gap:15px;flex-shrink:0}
.gallery-controls button{height:33px;width:33px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);color:var(--ink);transition:background .2s,border-color .2s}
.gallery-controls button:hover:not(:disabled){background:var(--card);border-color:var(--accent)}
.gallery-controls button:disabled{opacity:.25;cursor:default}
.gallery-controls button svg{height:13px;width:13px;transform:rotate(45deg)}
.gallery-controls .gallery-prev svg{transform:rotate(-135deg)}
.gallery-count{font:9px "Courier New",monospace;letter-spacing:1px;color:var(--muted);min-width:45px;text-align:center}
.rail-enabled .gallery-progress{display:block;position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--line)}
.gallery-progress>span{display:block;height:100%;width:100%;transform:scaleX(var(--rail-progress,0));transform-origin:left;background:var(--accent)}
.footer-canvas{position:relative;overflow:hidden;padding-top:68px;padding-bottom:34px}
.footer-masthead{font-size:clamp(95px,22.3vw,340px);font-weight:500;line-height:.83;letter-spacing:-.082em;padding-right:.04em;white-space:nowrap;transform:translate3d(0,var(--footer-rise,0px),0);transform-origin:50% 100%;opacity:var(--footer-opacity,1);will-change:transform}
.footer-masthead>span{color:var(--accent)}
.footer-annotation{margin-top:29px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:7px;letter-spacing:1.3px}
@keyframes glyph-arrive{from{opacity:0;transform:translate3d(0,115%,0) rotateX(32deg);filter:blur(3px)}to{opacity:1;transform:translate3d(0,0,0) rotateX(0);filter:blur(0)}}
@keyframes label-arrive{from{opacity:0;letter-spacing:3px;transform:translateY(8px)}to{opacity:1;letter-spacing:1.3px;transform:translateY(0)}}
@keyframes portrait-unveil{from{clip-path:inset(18% 0 0 round 70px);filter:brightness(.65)}to{clip-path:inset(0 0 0 round 11px);filter:brightness(1)}}
@keyframes detail-arrive{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1000px) and (max-height:820px){.rail-enabled .work-pin{padding-block:18px}.rail-enabled .section-label{padding-bottom:13px;font-size:8px}.rail-enabled .work-heading{margin-top:18px;margin-bottom:20px}.rail-enabled .work-heading h2{font-size:51px}.rail-enabled .profile-card{min-height:252px;padding:20px 27px}.rail-enabled .platform-icon{width:41px;height:41px}.rail-enabled .platform-icon svg{width:23px;height:23px}.rail-enabled .profile-card h3{font-size:29px;margin-top:21px}.rail-enabled .profile-card>p{font-size:12px}.rail-enabled .profile-card-bottom{margin-top:18px;padding-top:12px}.rail-enabled .work-bottom{margin-top:9px;padding-top:12px}}
@media(max-width:850px){.footer-canvas{padding-top:47px;padding-bottom:28px}.footer-annotation{font-size:6px;letter-spacing:.8px;margin-top:25px}}
@media(max-width:640px){.motion-glyph{animation-duration:.85s;animation-delay:calc(80ms + var(--glyph-index,0)*19ms)}.motion-ready .portrait-photo{transform:scale(var(--portrait-scale,1.15)) translateY(-4%)}.heading-move{transition-duration:.85s;transition-delay:calc(var(--heading-line,0)*65ms)}.footer-canvas{padding-top:39px;padding-bottom:27px}.footer-masthead{font-size:21vw;letter-spacing:-.08em}.footer-annotation{font-size:5px;letter-spacing:.6px;gap:15px;margin-top:19px}.footer-annotation>span:last-child{max-width:100px;text-align:right}.reading-line{bottom:-11px}}
@media(prefers-reduced-motion:reduce){.motion-glyph,.heading-move,.motion-ready .portrait-frame,.footer-masthead,.motion-ready .profile-card.visible{animation:none!important;transition:none!important;transform:none!important;filter:none!important;clip-path:none!important}.footer-masthead{opacity:1!important}.scroll-word{color:inherit!important}.reading-line{display:none}.work.rail-enabled{height:auto!important;padding-block:70px}.rail-enabled .work-pin{position:static;height:auto;overflow:visible}.rail-enabled .profile-grid{display:grid;width:min(1280px,calc(100% - 80px));transform:none;padding:0;margin-inline:auto}.rail-enabled .profile-card{width:auto}.gallery-controls,.rail-enabled .gallery-controls,.gallery-progress,.rail-enabled .gallery-progress{display:none}}
