/* Homepage visual seams, 21 Nov. Scoped to the existing first-page/map/about
   structure. The original banners, map scrolling and demo remain untouched. */

/* The earlier 16.67vw absolutely-positioned ::before was becoming a visibly
   rectangular, saturated purple block underneath the Platform Map. It reached
   135px beyond its parent and could not blend into the demo. Remove it. */
@media (min-width:761px){
  html:not(.dd-pm-physical-mobile) #main-page #platform-map::before{
    content:none!important;
    display:none!important;
  }
  html:not(.dd-pm-physical-mobile) #main-page #platform-map{
    /* A low-opacity diffuse wash embedded IN the section, not an overlay
       poking past its edge. The bottom colour matches the About section. */
    background:
      radial-gradient(ellipse 41% 25% at 68% 36%,
        rgba(126,77,183,.055) 0%,
        rgba(108,63,157,.025) 45%,
        transparent 78%),
      linear-gradient(180deg,
        #191324 0%,
        #12101c 24%,
        #0e0b16 60%,
        #0b0913 100%)!important;
    border-bottom:0!important;
    box-shadow:none!important;
  }
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-demo{
    background:radial-gradient(ellipse 28% 53% at 68% 13%,
      rgba(118,70,169,.045),transparent 78%)!important;
    margin-bottom:0!important;
    padding-bottom:clamp(18px,2.6vw,42px);
  }
}

/* The second straight edge was a 450px tall pseudo-element protruding
   185px above the About section. Masking that rectangle merely moved its
   visible boundary, so remove it and keep the glow inside the section. */
#main-page main > .dd-home-about::before{
  content:none!important;
  display:none!important;
}
#main-page main > .dd-home-about{
  margin-top:-2px!important;
  border-top:0!important;
  box-shadow:none!important;
  /* Transparent at the joining edge: the document background shows through
     exactly as it does above, then the approved plum atmosphere develops
     inside the About section without a horizontal band. */
  background:
    radial-gradient(ellipse 47% 34% at 24% 57%,
      rgba(131,76,198,.36),transparent 88%),
    radial-gradient(ellipse 44% 34% at 77% 59%,
      rgba(94,45,148,.24),transparent 92%),
    linear-gradient(180deg,
      transparent 0%,
      rgba(18,12,27,.18) 8%,
      rgba(21,16,31,.74) 19%,
      #261635 32%,
      #39204f 48%,
      #28183b 68%,
      #100b19 86%,
      #050507 100%)!important;
}
/* The App Menu remains attached to the animated first page. Position its
   lower edge just clear of the purple hero border (~12px in owner screenshot). */
@media (min-width:769px){
  #main-page .hero-shutter-panel > #app-drawer-open-btn.app-drawer-bubble-btn{
    top:-68px!important;
  }
}


/* Hero App Menu hit target repair. The header's full-width transparent box
   sits above the hero and was swallowing clicks on the protruding bubble.
   The decorative header area passes through; the animated logo dropdown
   explicitly remains interactive. No drawer logic or placement changes. */
@media(min-width:769px){
  #main-page > .site-header{
    pointer-events:none;
  }
  #main-page > .site-header .brand-menu-wrap{
    pointer-events:auto;
  }
  #main-page .hero-shutter-panel > #app-drawer-open-btn.app-drawer-bubble-btn{
    pointer-events:auto!important;
    cursor:pointer;
  }
}


/* 22 Nov: the old section-level wash survived the pre-fog rollback.
   It paints the empty space UNDER the map cards down to "See It Actually
   Work". Remove that paint, not the hero's upward-only banner pseudo-element,
   not the purple card surfaces, and not the About section lower down. */
@media (min-width:761px) {
  html:not(.dd-pm-physical-mobile) #main-page #platform-map {
    background:transparent!important;
    background-image:none!important;
  }
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-demo {
    background:transparent!important;
    background-image:none!important;
  }
}
