/* Cinematic atmosphere, designed around the existing portrait and typography. */
.depth-canvas{display:block;width:100%;height:100%;pointer-events:none}
.hero #hero-scene{position:absolute;inset:0;opacity:0}
.hero.has-depth #hero-scene{opacity:.85}
.hero .hero-field{
  inset:-5%;background-image:url('/assets/atmosphere-v2.jpg');background-position:64% 60%;
  opacity:.92;animation:atmosphere-drift 34s ease-in-out infinite alternate;
}
.hero .hero-light{
  width:90%;height:55%;top:45%;right:-22%;box-shadow:none;filter:blur(46px);
  background:radial-gradient(ellipse at 65% 65%,#6ed5e022,transparent 62%);
  mix-blend-mode:screen;animation:atmosphere-breathe 13s ease-in-out infinite alternate;
}
.hero .hero-atmosphere::after{
  background:linear-gradient(90deg,var(--bg) 0%,color-mix(in srgb,var(--bg) 90%,transparent) 25%,transparent 68%),
    linear-gradient(0deg,var(--bg),transparent 28%,transparent 80%,color-mix(in srgb,var(--bg) 35%,transparent));
}
.hero .portrait-blend{width:105%;max-width:560px}
.hero .portrait-blend>img{
  filter:drop-shadow(8px -4px 22px #68d3df14);
  mask-image:linear-gradient(to bottom,#000 58%,#000e 68%,#0007 80%,transparent 98%);
  -webkit-mask-image:linear-gradient(to bottom,#000 58%,#000e 68%,#0007 80%,transparent 98%);
}
.hero-bottom{border-image:linear-gradient(90deg,transparent,#dfbd7b50,#74c8d940,transparent) 1}
.journey-stage{position:relative;width:100%;max-width:600px;aspect-ratio:1;overflow:hidden;isolation:isolate}
.journey-stage .journey-orb{width:100%}
.journey-stage .depth-canvas{position:absolute;inset:0;opacity:0}
.journey-stage.has-depth .depth-canvas{opacity:1}
.journey-stage.has-depth .journey-orb{visibility:hidden}
.journey-stage::before{
  content:'';position:absolute;inset:-8%;z-index:-1;background:url('/assets/atmosphere-v2.jpg') 85% 70%/cover;
  opacity:.16;mask-image:radial-gradient(ellipse,#0008,transparent 68%);-webkit-mask-image:radial-gradient(ellipse,#0008,transparent 68%);
  animation:atmosphere-drift 30s ease-in-out infinite alternate;
}
.journey-stage::after{
  content:'';position:absolute;inset:10%;border-radius:50%;z-index:-1;
  background:radial-gradient(ellipse,#74c8d90b,transparent 66%);filter:blur(30px);
}
.journey-caption{letter-spacing:.17em;opacity:.8}
.project-visual{perspective:1200px}
.project-visual svg{
  transform:translate3d(0,var(--project-y,0px),12px) rotateX(var(--scene-pitch,6deg)) rotateY(var(--scene-yaw,-5deg)) scale(var(--project-scale,1));
  filter:drop-shadow(0 14px 16px #0003);
}
.project-visual::after{
  content:'';position:absolute;inset:0;z-index:-1;opacity:.14;
  background:url('/assets/atmosphere-v2.jpg') 80% 60%/cover;
  mask-image:linear-gradient(0deg,#000,transparent 85%);-webkit-mask-image:linear-gradient(0deg,#000,transparent 85%);
}
.tool-card .tool-logo{box-shadow:0 10px 26px -14px #0008,inset 0 1px 0 #fff}
@keyframes atmosphere-drift{from{transform:scale(1.02) translate3d(-.6%,.3%,0)}to{transform:scale(1.08) translate3d(1.1%,-.8%,0)}}
@keyframes atmosphere-breathe{from{opacity:.45;transform:translate3d(-1%,1%,0)}to{opacity:.9;transform:translate3d(2%,-1%,0)}}
:root[data-theme=light] .hero .hero-field{opacity:.28;mix-blend-mode:luminosity}
:root[data-theme=light] .hero .hero-atmosphere::after{
  background:linear-gradient(90deg,var(--bg) 3%,color-mix(in srgb,var(--bg) 93%,transparent) 33%,color-mix(in srgb,var(--bg) 38%,transparent)),
    linear-gradient(0deg,var(--bg),transparent 40%);
}
:root[data-theme=light] .journey-stage::before{opacity:.08;mix-blend-mode:multiply}
:root[data-theme=light] .project-visual::after{opacity:.06}
:root[data-theme=light] .project-visual svg{filter:drop-shadow(0 14px 16px #183b511c)}
@media(max-width:750px){
  .hero .hero-field{background-position:76% 75%;opacity:.95}
  .hero .hero-atmosphere::after{background:linear-gradient(0deg,var(--bg),transparent 22%,transparent 41%,var(--bg) 78%)}
  .hero .portrait-blend{width:min(112%,470px);max-width:none}
  .hero .hero-light{top:66%;height:34%}
  .journey-stage{width:110%;max-width:500px;margin-inline:-5%}
  .journey-visual{overflow:visible}
  .project-visual svg{transform:translate3d(0,var(--project-y,0px),0) rotateX(var(--scene-pitch,4deg)) scale(var(--project-scale,1))}
  :root[data-theme=light] .hero .hero-atmosphere::after{background:linear-gradient(0deg,var(--bg),color-mix(in srgb,var(--bg) 25%,transparent) 30%,var(--bg) 76%)}
}
@media(prefers-reduced-motion:reduce){
  .hero .hero-field,.hero .hero-light,.journey-stage::before{animation:none!important;transform:none}
  .project-visual svg,.hero.has-depth .hero-atmosphere{transform:none!important}
}
@media(forced-colors:active){.depth-canvas{display:none}.journey-stage.has-depth .journey-orb{visibility:visible}}
@media print{.depth-canvas{display:none}}
