/* Page-2 section shell + hero→profile transition bridge.
   These rules only affect the new #profile section and the transition wash;
   page1's own stylesheet (style.css) is left untouched. */

#profile {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
#profile-root { display: block; }

/* Soft top blend so the profile background melts into the transition wash
   instead of meeting it at a hard horizontal edge. */
#profile .profile-bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13vh);
  mask-image: linear-gradient(to bottom, transparent 0, #000 13vh);
}

/* Fixed colour bridge between the fading page-1 canvas (z0) and the
   home-view content (z1). Driven by profile-transition.js. */
#profile-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(120% 70% at 22% 18%, rgba(186,176,255,0.5) 0%, rgba(186,176,255,0) 55%),
    radial-gradient(120% 70% at 80% 82%, rgba(255,205,228,0.45) 0%, rgba(255,205,228,0) 55%),
    linear-gradient(180deg, #f4eef8 0%, #e9edfb 55%, #f2f1fc 100%);
  will-change: opacity;
}
/* Abstract arch-light shapes that surface during the bridge. */
#profile-wash::before,
#profile-wash::after {
  content: '';
  position: absolute;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-bottom: none;
  filter: blur(1px);
  opacity: 0.55;
}
#profile-wash::before {
  width: 34vw; height: 46vh; left: 14vw; bottom: -6vh;
  box-shadow: 0 0 60px rgba(200,190,255,0.35) inset;
}
#profile-wash::after {
  width: 24vw; height: 34vh; right: 16vw; bottom: -4vh;
  box-shadow: 0 0 50px rgba(255,210,232,0.3) inset;
}

@media (prefers-reduced-motion: reduce) {
  #profile-wash { transition: none; }
  #profile .profile-bg {
    -webkit-mask-image: none;
    mask-image: none;
  }
}