/* The wallpaper stays in the viewport while ordinary page content scrolls. */
.portfolio-home{position:relative;isolation:isolate;background:var(--ink)}
.site-backdrop{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-color:var(--ink);
  background-image:linear-gradient(#06102033,#06102033),url('/assets/portfolio-background-cyberpunk.webp');
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/* Opaque-enough surfaces protect text even over the brightest screen pixels. */
.portfolio-home .site-header,
.portfolio-home .hero-panel,
.portfolio-home .section-heading,
.portfolio-home .contact-section,
.portfolio-home .site-footer{
  background:#071122eb;
  border:1px solid #638bbb66;
  border-radius:12px;
  box-shadow:0 12px 36px #0003;
}
.portfolio-home .site-header{margin-top:22px;padding:34px 26px 20px}
.portfolio-home .site-header:after{left:26px}
.portfolio-home .site-header .visit-counter{
  position:absolute;
  top:10px;
  right:26px;
  margin:0;
  max-width:calc(100% - 52px);
  font-size:11px;
  line-height:1.4;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.portfolio-home .hero{
  display:flex;
  align-items:center;
  min-height:690px;
  min-height:calc(100svh - 110px);
  margin-inline:clamp(-24px,-1.4vw,-12px);
  padding:40px 0;
}
.portfolio-home .hero-panel{
  display:grid;
  grid-template-columns:minmax(0,560px) minmax(0,576px);
  justify-content:center;
  align-items:center;
  column-gap:24px;
  width:100%;
  padding-inline:clamp(24px,3.2vw,52px);
  overflow:hidden;
  background:radial-gradient(ellipse at 79% 53%,#244c7270,transparent 48%),#071122eb;
}
.portfolio-home .hero-copy{min-width:0;padding:40px 0}
.portfolio-home .hero h1{font-size:clamp(44px,6vw,96px)}
.portfolio-home .hero-intro{max-width:550px}
.portfolio-home .hero-character{
  align-self:end;
  display:flex;
  justify-content:flex-start;
  align-items:flex-end;
  min-width:0;
  padding:22px 0 0;
  pointer-events:none;
}
.portfolio-home .hero-character img{
  display:block;
  width:100%;
  max-width:576px;
  height:auto;
  max-height:720px;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 0 26px #69d9ff1a);
}
.portfolio-home .projects-section{border-top:0;padding-top:16px}
.portfolio-home .section-heading{padding:28px 30px}
.portfolio-home .about-section{box-shadow:0 12px 36px #0003}
.portfolio-home .contact-section{padding:clamp(26px,4vw,60px);margin-bottom:60px}
.portfolio-home .site-footer{padding:20px 26px;margin-bottom:24px}

@media(max-width:1050px) and (min-width:901px){
  .portfolio-home .hero-copy{padding:32px 0}
  .portfolio-home .hero h1{font-size:clamp(44px,5.4vw,57px)}
  .portfolio-home .hero-intro{font-size:16px}
}
@media(max-width:900px){
  .portfolio-home .hero{margin-inline:0}
  .portfolio-home .hero-panel{grid-template-columns:1fr;padding-inline:0;column-gap:0;background:radial-gradient(ellipse at 50% 85%,#244c7270,transparent 50%),#071122eb}
  .portfolio-home .hero-copy{padding:32px 36px 8px}
  .portfolio-home .hero h1{font-size:clamp(44px,7.8vw,68px)}
  .portfolio-home .hero-character{padding:16px 18px 0;justify-content:center}
  .portfolio-home .hero-character img{width:min(100%,380px);max-height:440px}
}
@media(max-width:700px){
  .site-backdrop{
    background-image:linear-gradient(#06102033,#06102033),url('/assets/portfolio-background-cyberpunk-small.webp');
    background-position:60% center;
  }
  .portfolio-home .site-header{margin-top:16px;padding:40px 20px 18px;gap:14px}
  .portfolio-home .site-header .visit-counter{right:20px;max-width:calc(100% - 40px)}
  .portfolio-home .site-header nav{gap:20px}
  .portfolio-home .hero{
    min-height:580px;
    min-height:calc(100svh - 142px);
    justify-content:center;
    padding:28px 0;
  }
  .portfolio-home .hero-copy{padding:30px 24px 0}
  .portfolio-home .hero h1{font-size:clamp(36px,9.9vw,62px)}
  .portfolio-home .hero-intro{font-size:14px}
  .portfolio-home .hero-character{padding:4px 16px 0}
  .portfolio-home .hero-character img{max-height:390px}
  .portfolio-home .section-heading{padding:25px 22px}
  .portfolio-home .section-heading h2{font-size:38px}
  .portfolio-home .contact-section{padding:28px 24px;margin-bottom:36px}
  .portfolio-home .contact-section h2{font-size:42px}
  .portfolio-home .site-footer{padding:20px;margin-bottom:18px}
}
@media(max-width:360px){
  .portfolio-home .site-header{padding:38px 16px 16px}
  .portfolio-home .site-header .visit-counter{right:16px;max-width:calc(100% - 32px);font-size:10px}
  .portfolio-home .site-header nav{gap:10px}
  .portfolio-home .hero-copy{padding:26px 18px 0}
  .portfolio-home .hero h1{font-size:34px}
  .portfolio-home .section-heading{padding:23px 18px}
  .portfolio-home .section-heading h2{font-size:34px}
}
@media print{
  .site-backdrop{display:none}
}
