/* Finite opening sequence: typography, plotted linework, and an aperture reveal. */
.site-intro{position:fixed;inset:0;z-index:2000;display:block;overflow:hidden;background:transparent;color:#f1f3e9;pointer-events:none;isolation:isolate;animation:mi-intro-shell 2.08s linear both}
.site-intro::before,.site-intro::after{content:none;display:none;animation:none}
.mi-panel{position:absolute;z-index:-1;left:0;width:100%;height:50.1%;background:#090f0b;will-change:transform;animation:mi-panel-open .84s cubic-bezier(.76,0,.2,1) 1.24s both}
.mi-panel-top{top:0;--mi-panel-shift:-102%}
.mi-panel-bottom{bottom:0;--mi-panel-shift:102%}
.mi-meta{position:absolute;left:5%;right:5%;display:flex;align-items:center;justify-content:space-between;gap:24px;font:9px/1.5 monospace;letter-spacing:.16em;color:#9bb18e;animation:mi-meta .85s ease .15s both,mi-identity-out .32s ease 1.25s forwards}
.mi-meta-top{top:5.4%}
.mi-meta-bottom{bottom:5.4%}
.mi-meta-top span:first-child{color:#c8e2b5}
.mi-progress{width:min(22vw,300px);height:1px;background:#304129;overflow:hidden}
.mi-progress i{display:block;width:100%;height:100%;background:#adff52;transform-origin:left;animation:mi-progress 1.35s cubic-bezier(.24,.8,.16,1) .12s both}
.mi-linework{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#adff52;stroke-width:.85;animation:mi-linework-out .45s ease 1.23s both}
.mi-crosshair{stroke-opacity:.11;stroke-dasharray:2 10}
.mi-orbit{stroke-dasharray:2400;stroke-dashoffset:2400;animation:mi-orbit-draw 1.55s cubic-bezier(.35,.1,.12,1) .08s both}
.mi-orbit-one{stroke-opacity:.62}
.mi-orbit-two{stroke-opacity:.2;animation-delay:.2s}
.mi-sweep{stroke-width:2.6;stroke-opacity:.85;stroke-dasharray:2500;stroke-dashoffset:2500;animation:mi-orbit-draw 1.45s cubic-bezier(.4,0,.14,1) .15s both}
.mi-ticks{stroke-opacity:.4;animation:mi-meta .8s ease .2s both}
.mi-identity{position:absolute;top:50%;left:50%;width:max-content;max-width:90%;transform:translate(-50%,-50%);animation:mi-identity-out .36s ease 1.23s both}
.mi-title{overflow:hidden;font-size:clamp(92px,15vw,245px);font-weight:750;line-height:.82;letter-spacing:-.085em;padding-right:.08em}
.mi-title>span{display:block;animation:mi-title-in .85s cubic-bezier(.16,1,.28,1) .13s both}
.mi-script{display:flex;justify-content:flex-end;align-items:center;gap:30px;overflow:hidden;margin:-.03em -.03em 0 0;color:#adff52;font:italic clamp(64px,9.8vw,160px)/.94 Georgia,'Times New Roman',serif;letter-spacing:-.07em}
.mi-script>span{display:block;animation:mi-title-in .85s cubic-bezier(.16,1,.28,1) .29s both}
.mi-script>b{font:normal clamp(36px,4.6vw,72px)/1 Arial,sans-serif;letter-spacing:0;margin:.08em .15em 0 0;animation:mi-star-in 1.15s cubic-bezier(.16,1,.28,1) .24s both}
.mi-identity>p{margin:30px 0 0 .5em;font:9px/1.5 monospace;letter-spacing:.28em;color:#b8c5b2;animation:mi-meta .8s ease .4s both}

/* Hero artwork keeps its original transform so the existing parallax can run. */
.portfolio-motion-enabled .motion-hero-item{animation:mi-content-in .85s cubic-bezier(.18,1,.25,1) var(--motion-enter-delay,0ms) both;will-change:transform,opacity}
.portfolio-motion-enabled .motion-hero-type{animation-name:mi-type-in;animation-duration:1s;transform-origin:left bottom}
.portfolio-motion-enabled .motion-hero-art{animation:mi-art-visible 1.05s ease var(--motion-enter-delay,0ms) both}
.portfolio-motion-enabled .motion-hero-art img{animation:mi-art-in 1.3s cubic-bezier(.16,1,.3,1) var(--motion-enter-delay,0ms) both}
.portfolio-motion-enabled .motion-hero-art small{animation:mi-content-in .8s cubic-bezier(.18,1,.25,1) calc(var(--motion-enter-delay,0ms) + 140ms) both}
.motion-hero-settled .motion-hero-item,.motion-hero-settled .motion-hero-art,.motion-hero-settled .motion-hero-art img,.motion-hero-settled .motion-hero-art small{animation:none!important;opacity:1;will-change:auto}
.motion-hero-settled .motion-hero-item,.motion-hero-settled .motion-hero-art img,.motion-hero-settled .motion-hero-art small{transform:none}

/* One reveal per block; sticky service cards only animate their children. */
.portfolio-motion-enabled .motion-reveal{opacity:0;transform:translate3d(0,26px,0);transition:opacity .8s cubic-bezier(.2,.75,.2,1),transform .8s cubic-bezier(.2,.75,.2,1);transition-delay:var(--motion-delay,0ms)}
.portfolio-motion-enabled .motion-reveal.motion-visible{opacity:1;transform:none}
.portfolio-motion-enabled .motion-service-pending>*{opacity:0;transform:translate3d(0,18px,0);transition:opacity .65s ease,transform .75s cubic-bezier(.2,.75,.2,1);transition-delay:var(--motion-delay,0ms)}
.portfolio-motion-enabled .motion-service-pending.motion-visible>*{opacity:1;transform:none}

@keyframes mi-intro-shell{0%,99%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
@keyframes mi-panel-open{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,var(--mi-panel-shift),0)}}
@keyframes mi-title-in{from{opacity:0;transform:translate3d(0,108%,0) rotate(4deg)}to{opacity:1;transform:translate3d(0,0,0) rotate(0)}}
@keyframes mi-star-in{from{opacity:0;transform:rotate(-110deg) scale(.45)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes mi-meta{from{opacity:0;transform:translate3d(0,10px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes mi-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes mi-orbit-draw{to{stroke-dashoffset:0}}
@keyframes mi-identity-out{from{opacity:1}to{opacity:0}}
@keyframes mi-linework-out{0%{opacity:1}100%{opacity:0}}
@keyframes mi-content-in{from{opacity:0;transform:translate3d(0,25px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes mi-type-in{from{opacity:0;transform:translate3d(0,.45em,0) rotate(2deg)}to{opacity:1;transform:translate3d(0,0,0) rotate(0)}}
@keyframes mi-art-visible{from{opacity:0}to{opacity:1}}
@keyframes mi-art-in{from{transform:translate3d(0,60px,0) scale(1.1)}to{transform:translate3d(0,0,0) scale(1)}}

@media(max-width:600px){
  .mi-meta{font-size:8px;letter-spacing:.1em;left:6%;right:6%}
  .mi-meta-top span:last-child,.mi-meta-bottom>span:last-child{display:none}
  .mi-progress{width:25vw}
  .mi-title{font-size:21vw}
  .mi-script{font-size:17vw;gap:18px}
  .mi-script>b{font-size:10vw}
  .mi-identity>p{font-size:8px;letter-spacing:.17em;margin-top:24px}
  .portfolio-motion-enabled .motion-reveal{transform:translate3d(0,20px,0)}
  .portfolio-motion-enabled .motion-reveal.motion-visible{transform:none}
}
@media(prefers-reduced-motion:reduce){
  .site-intro{display:none!important}
  .portfolio-motion-enabled .motion-hero-item,.portfolio-motion-enabled .motion-hero-art,.portfolio-motion-enabled .motion-hero-art img,.portfolio-motion-enabled .motion-hero-art small,.portfolio-motion-enabled .motion-reveal,.portfolio-motion-enabled .motion-service-pending>*{animation:none!important;transition:none!important;opacity:1!important;transform:none!important;will-change:auto}
}
