/* A single scroll-driven environment from Home through About.
   The previous implementation had separate section backgrounds, producing a
   visible jump even though Lenis was moving the document continuously. */
#frame-content .home-flow{
  --flow-h:calc(100dvh - 98px);
  position:relative;
  isolation:isolate;
  background:#0b0e0b;
}
#frame-content .flow-backdrop{
  position:sticky;
  top:0;
  left:0;
  z-index:0;
  margin-bottom:calc(-1 * var(--flow-h));
  height:var(--flow-h);
  width:100%;
  overflow:hidden;
  pointer-events:none;
  background:
    radial-gradient(ellipse 42% 38% at 54% 50%,rgba(14,23,15,.28),transparent 80%),
    linear-gradient(135deg,#0b0d0b 5%,#0b100d 58%,#0a0c0a 100%);
  transform:translateZ(0);
  will-change:transform;
}
#frame-content .flow-light{
  position:absolute;
  border-radius:50%;
  filter:blur(clamp(48px,6vw,105px));
  mix-blend-mode:screen;
  pointer-events:none;
  will-change:transform,opacity;
}
#frame-content .flow-light-a{
  left:-31%;top:29%;width:78%;height:91%;
  opacity:.76;
  background:radial-gradient(ellipse at 50% 52%,rgba(120,246,114,.92) 0%,rgba(73,181,69,.71) 20%,rgba(49,118,51,.35) 45%,transparent 73%);
}
#frame-content .flow-light-b{
  right:-25%;top:-36%;width:76%;height:93%;
  opacity:.64;
  background:radial-gradient(ellipse at 47% 47%,rgba(96,208,99,.78) 0%,rgba(56,149,64,.50) 33%,rgba(29,94,43,.20) 58%,transparent 74%);
}
#frame-content .flow-light-c{
  left:10%;top:25%;width:82%;height:74%;
  opacity:.1;
  background:radial-gradient(ellipse at 48% 54%,rgba(87,196,85,.55),rgba(47,111,48,.17) 37%,transparent 72%);
}
#frame-content .flow-backdrop-grid{
  position:absolute;inset:0;
  opacity:.14;
  background:
    linear-gradient(90deg,rgba(111,166,113,.025) 1px,transparent 1px),
    linear-gradient(0deg,rgba(111,166,113,.017) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse at 60% 50%,black,transparent 79%);
}
#frame-content .home-flow > .scene{
  position:relative;
  z-index:1;
  background:transparent!important;
  isolation:auto;
}
#frame-content .home-flow .hero::before{display:none}
#frame-content .home-flow .hero-glow,
#frame-content .home-flow .about .section-glow{display:none!important}
#frame-content .home-flow .hero{background:transparent!important}
#frame-content .home-flow .about{
  padding-top:90px;
  background:transparent!important;
  min-height:1280px;
}
#frame-content .home-flow .about-cards{margin-top:91px}
#frame-content .home-flow .hero:after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(ellipse 30% 22% at 50% 49%,rgba(4,9,5,.18),transparent 100%);
}
#frame-content .home-flow #three-canvas{z-index:2}
#frame-content .home-flow .hero-content{z-index:3}
#frame-content .home-flow .about .window{
  box-shadow:0 22px 62px rgba(0,0,0,.31),0 2px 5px rgba(0,0,0,.18);
}
#frame-content .home-flow .about .window:hover{
  border-color:rgba(150,223,152,.55);
  box-shadow:0 25px 70px rgba(0,0,0,.4),0 0 30px rgba(104,188,118,.06);
}
#frame-content .home-flow .about .window-header{
  background:rgba(22,31,25,.33);
}
#frame-content .home-flow .about .section-heading{
  transform-style:preserve-3d;
}
@media (max-width:900px){
  #frame-content .flow-light-a{left:-67%;top:37%;width:125%;height:70%}
  #frame-content .flow-light-b{right:-70%;top:-8%;width:125%;height:75%}
}
@media (max-width:600px){
  #frame-content .home-flow{--flow-h:calc(100dvh - 98px)}
  #frame-content .flow-light-a{left:-112%;top:44%;width:215%;height:67%;filter:blur(60px);opacity:.63}
  #frame-content .flow-light-b{right:-105%;top:4%;width:205%;height:67%;filter:blur(64px);opacity:.7}
  #frame-content .flow-light-c{width:160%;left:-32%;top:32%}
  #frame-content .home-flow .about{padding-top:70px;min-height:1370px}
  #frame-content .home-flow .about-cards{margin-top:40px}
  #frame-content .home-flow .about .window{max-width:100%}
}
@media (prefers-reduced-motion:reduce){
  #frame-content .flow-backdrop,
  #frame-content .flow-light{will-change:auto}
}