
/* GEOMETRY HOTFIX — fixes hero overlap, projects gap, about contamination */

/* Universal sizing safety */
.hero *,
.projects *,
.about-section *{box-sizing:border-box}

/* HEADER: fixed centered width like reference */
.header .shell.header__inner{
  width:min(1090px,calc(100% - 48px))!important;
  max-width:1090px!important;
  margin-inline:auto!important;
}

/* HERO: explicit 2-column grid, no overlap */
.hero{
  overflow:hidden!important;
  min-height:760px!important;
  padding-bottom:58px!important;
}
.hero .shell.hero__grid{
  width:min(1180px,calc(100% - 48px))!important;
  max-width:1180px!important;
  display:grid!important;
  grid-template-columns:minmax(0,500px) minmax(0,1fr)!important;
  column-gap:34px!important;
  align-items:center!important;
  overflow:visible!important;
}
.hero__copy{
  min-width:0!important;
  max-width:500px!important;
  position:relative!important;
  z-index:8!important;
}
.hero__copy h1{
  max-width:500px!important;
  font-size:clamp(4rem,5.25vw,5.65rem)!important;
  line-height:.98!important;
  overflow:visible!important;
  white-space:normal!important;
}
.hero__lead{max-width:490px!important}
.hero__actions{max-width:490px!important}
.hero__stats{max-width:490px!important}

/* clean right visual */
.hero-device--reference{
  min-width:0!important;
  width:100%!important;
  max-width:650px!important;
  min-height:500px!important;
  justify-self:end!important;
  position:relative!important;
  overflow:visible!important;
  z-index:4!important;
}
.hero-reference-image{
  display:block!important;
  width:100%!important;
  max-width:650px!important;
  height:auto!important;
  margin:0!important;
  position:relative!important;
  z-index:5!important;
  transform:none!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
  filter:
    drop-shadow(0 34px 36px rgba(0,0,0,.48))
    drop-shadow(0 10px 18px rgba(19,80,118,.28))!important;
}
.hero-reference-shadow{
  left:8%!important;
  right:1%!important;
  bottom:9%!important;
  height:64px!important;
  filter:blur(22px)!important;
}
.hero-reference-glow{
  right:0!important;
  top:12%!important;
  width:86%!important;
  height:68%!important;
}

/* edge foliage stays behind content */
.reference-decor{z-index:0!important}
.reference-decor--top-left{opacity:.42!important}
.reference-decor--right{
  width:220px!important;
  opacity:.72!important;
  z-index:1!important;
}
.hero__grid{z-index:3!important}

/* SERVICES -> PROJECTS: no artificial giant gap */
.services{
  padding-bottom:70px!important;
}
.projects.section{
  padding-top:72px!important;
  padding-bottom:86px!important;
  min-height:0!important;
}
.projects>.shell{
  width:min(1180px,calc(100% - 48px))!important;
}
.projects__head{
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:30px!important;
  width:100%!important;
  min-height:0!important;
  margin:0 0 34px!important;
  padding:0!important;
  transform:none!important;
}
.projects__head>div{
  display:block!important;
  position:static!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
}
.projects__head .micro-label{
  display:inline-flex!important;
}
.projects__head h2{
  margin:12px 0 0!important;
  max-width:none!important;
  font-size:clamp(2.3rem,3.4vw,3.45rem)!important;
  line-height:1.04!important;
}
.projects__head .ghost-button{
  position:static!important;
  justify-self:auto!important;
  align-self:center!important;
  margin:0!important;
  flex:0 0 auto!important;
}
.project-grid{
  margin-top:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
}

/* ABOUT: remove foreign screenshot/crop, use pure light */
.about-section{
  position:relative!important;
  overflow:hidden!important;
  padding-top:90px!important;
  padding-bottom:90px!important;
}
.about-section::before{
  content:""!important;
  position:absolute!important;
  width:520px!important;
  height:520px!important;
  left:-270px!important;
  top:5%!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(78,183,255,.10),rgba(78,183,255,.025) 48%,transparent 70%)!important;
  filter:blur(10px)!important;
  pointer-events:none!important;
}
.about-ambient{
  position:absolute;
  right:-150px;
  bottom:-180px;
  width:460px;height:460px;
  border-radius:50%;
  border:1px solid rgba(110,203,255,.07);
  box-shadow:0 0 0 48px rgba(110,203,255,.018),0 0 0 96px rgba(242,93,173,.008);
  pointer-events:none;
}
.about-layout{
  position:relative!important;
  z-index:2!important;
  grid-template-columns:340px minmax(0,1fr)!important;
  gap:72px!important;
}
.about-photo__frame{
  box-shadow:0 34px 72px rgba(0,0,0,.34)!important;
}
.about-copy h2{
  font-size:clamp(2.8rem,4.2vw,4.2rem)!important;
  line-height:1.06!important;
}

/* Prevent animation states from making layout look displaced on first paint */
.projects .reveal,
.about-section .reveal{
  transform:translateY(14px)!important;
}
.projects .reveal.visible,
.about-section .reveal.visible{
  transform:none!important;
}

/* TABLET */
@media(max-width:1020px){
  .header .shell.header__inner{
    width:calc(100% - 32px)!important;
  }
  .hero .shell.hero__grid{
    width:calc(100% - 32px)!important;
    grid-template-columns:1fr!important;
    row-gap:26px!important;
  }
  .hero__copy{
    max-width:720px!important;
  }
  .hero__copy h1,
  .hero__lead,
  .hero__actions,
  .hero__stats{
    max-width:720px!important;
  }
  .hero-device--reference{
    justify-self:center!important;
    max-width:700px!important;
    min-height:390px!important;
  }
  .hero-reference-image{max-width:700px!important}
  .projects>.shell{width:calc(100% - 32px)!important}
  .about-layout{
    grid-template-columns:280px minmax(0,1fr)!important;
    gap:42px!important;
  }
}

/* MOBILE */
@media(max-width:760px){
  .header .shell.header__inner{
    width:calc(100% - 24px)!important;
  }
  .hero{
    min-height:0!important;
    padding-bottom:48px!important;
  }
  .hero .shell.hero__grid{
    width:calc(100% - 24px)!important;
    row-gap:24px!important;
  }
  .hero__copy h1{
    font-size:clamp(3.05rem,14.3vw,4.15rem)!important;
    max-width:100%!important;
  }
  .hero__lead,.hero__actions,.hero__stats{max-width:100%!important}
  .hero-device--reference{
    min-height:260px!important;
    max-width:100%!important;
  }
  .hero-reference-image{
    width:108%!important;
    max-width:none!important;
    margin-left:-4%!important;
  }
  .projects.section{
    padding-top:56px!important;
  }
  .projects>.shell{width:calc(100% - 24px)!important}
  .projects__head{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:20px!important;
  }
  .project-grid{
    grid-template-columns:1fr!important;
  }
  .about-layout{
    grid-template-columns:1fr!important;
    gap:44px!important;
  }
  .about-photo{max-width:320px!important}
  .about-copy h2{
    font-size:clamp(2.25rem,10.5vw,3.2rem)!important;
  }
}
