
/* FINAL HERO FIX — use real transparent laptop asset, no screenshot crops */

/* Kill any stale decorative screenshot layers */
.reference-decor,
.edge-decor{
  display:none!important;
}

/* header */
.header .shell.header__inner{
  width:min(1100px,calc(100% - 48px))!important;
  max-width:1100px!important;
  margin-inline:auto!important;
}

/* Hero shell */
.hero{
  min-height:770px!important;
  overflow:hidden!important;
  padding-top:calc(var(--header-h) + 78px)!important;
  padding-bottom:66px!important;
  background:
    radial-gradient(circle at 77% 22%,rgba(62,176,255,.15),transparent 29%),
    radial-gradient(circle at 72% 65%,rgba(240,93,173,.09),transparent 24%),
    linear-gradient(135deg,#01111d 0%,#021a2d 52%,#052b47 100%)!important;
}

.hero .shell.hero__grid{
  width:min(1260px,calc(100% - 48px))!important;
  max-width:1260px!important;
  display:grid!important;
  grid-template-columns:minmax(0,550px) minmax(0,1fr)!important;
  column-gap:18px!important;
  align-items:center!important;
  position:relative!important;
  z-index:3!important;
}

/* Left copy — keep exact line logic */
.hero__copy{
  width:100%!important;
  max-width:550px!important;
  min-width:0!important;
  position:relative!important;
  z-index:8!important;
}

.hero__copy h1{
  max-width:550px!important;
  margin-top:22px!important;
  font-size:clamp(4.35rem,5.2vw,5.9rem)!important;
  line-height:.96!important;
  letter-spacing:-.012em!important;
  overflow:visible!important;
  white-space:normal!important;
}

.hero__copy h1 em{
  display:inline-block!important;
  white-space:nowrap!important;
}

.hero__lead,
.hero__actions,
.hero__stats{
  max-width:525px!important;
}

.hero__lead{
  font-size:1.02rem!important;
  line-height:1.66!important;
}

.hero__stats{
  margin-top:37px!important;
}

/* Right visual — real transparent laptop */
.hero-device--reference{
  width:100%!important;
  max-width:720px!important;
  min-width:0!important;
  min-height:540px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  justify-self:end!important;
  position:relative!important;
  overflow:visible!important;
  z-index:5!important;
}

.hero-device--reference::before{
  content:"";
  position:absolute;
  z-index:0;
  width:82%;
  height:56%;
  right:2%;
  bottom:8%;
  border-radius:50%;
  background:
    radial-gradient(ellipse,rgba(0,0,0,.58) 0%,rgba(0,0,0,.24) 44%,transparent 72%);
  filter:blur(26px);
  transform:scaleY(.56);
}

.hero-device--reference::after{
  content:"";
  position:absolute;
  z-index:1;
  width:78%;
  height:65%;
  right:4%;
  top:13%;
  border-radius:50%;
  background:
    radial-gradient(circle at 53% 40%,rgba(82,190,255,.22),transparent 32%),
    radial-gradient(circle at 72% 69%,rgba(242,93,173,.14),transparent 27%);
  filter:blur(50px);
}

.hero-reference-image{
  display:block!important;
  position:relative!important;
  z-index:4!important;
  width:116%!important;
  max-width:790px!important;
  height:auto!important;
  margin:0 -11% 0 0!important;
  transform:translateY(7px)!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
  filter:
    drop-shadow(0 44px 46px rgba(0,0,0,.48))
    drop-shadow(0 15px 23px rgba(13,72,112,.30))
    drop-shadow(0 0 25px rgba(128,105,255,.08))!important;
}

.hero-reference-shadow,
.hero-reference-glow{
  display:none!important;
}

/* small decorative glow only — no repeated imagery */
.hero::after{
  content:"";
  position:absolute;
  z-index:0;
  width:430px;
  height:430px;
  right:-185px;
  bottom:-170px;
  border-radius:50%;
  border:1px solid rgba(103,201,255,.06);
  box-shadow:
    0 0 0 46px rgba(103,201,255,.012),
    0 0 0 92px rgba(242,93,173,.008);
}

/* Projects geometry remains compact */
.projects.section{
  min-height:0!important;
  padding-top:74px!important;
  padding-bottom:86px!important;
}

.projects__head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:28px!important;
  min-height:0!important;
  margin:0 0 32px!important;
  padding:0!important;
}

.projects__head>div{
  width:auto!important;
  margin:0!important;
}

.projects__head h2{
  margin:11px 0 0!important;
}

.project-grid{
  margin-top:0!important;
}

/* About stays clean: no screenshot/crop decoration */
.about-decor{
  display:none!important;
}

.about-section{
  background:
    radial-gradient(circle at 12% 40%,rgba(65,174,255,.06),transparent 25%),
    linear-gradient(180deg,#031a29,#021421)!important;
}

/* tablet */
@media(max-width:1100px){
  .hero .shell.hero__grid{
    width:calc(100% - 32px)!important;
    grid-template-columns:1fr!important;
    row-gap:26px!important;
  }
  .hero__copy{
    max-width:740px!important;
  }
  .hero__copy h1{
    max-width:740px!important;
  }
  .hero__lead,
  .hero__actions,
  .hero__stats{
    max-width:700px!important;
  }
  .hero-device--reference{
    justify-self:center!important;
    max-width:760px!important;
    min-height:430px!important;
  }
  .hero-reference-image{
    width:100%!important;
    max-width:760px!important;
    margin:0!important;
  }
}

/* mobile */
@media(max-width:760px){
  .header .shell.header__inner{
    width:calc(100% - 24px)!important;
  }

  .hero{
    min-height:0!important;
    padding-top:calc(var(--header-h) + 52px)!important;
    padding-bottom:50px!important;
  }

  .hero .shell.hero__grid{
    width:calc(100% - 24px)!important;
    row-gap:24px!important;
  }

  .hero__copy h1{
    font-size:clamp(3.05rem,14.2vw,4.25rem)!important;
    line-height:1!important;
  }

  .hero__copy h1 em{
    white-space:normal!important;
  }

  .hero-device--reference{
    min-height:275px!important;
    width:100%!important;
  }

  .hero-reference-image{
    width:110%!important;
    max-width:none!important;
    margin-left:-5%!important;
    margin-right:-5%!important;
    transform:none!important;
    filter:
      drop-shadow(0 24px 26px rgba(0,0,0,.44))
      drop-shadow(0 8px 13px rgba(13,72,112,.24))!important;
  }

  .projects__head{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:18px!important;
  }
}
