/* ══════════════════════════════════════
   about-panel.css
   Center About popup shared across pages
══════════════════════════════════════ */

/* hidden until About is clicked */
#about-blur-bg {
  position: fixed;
  inset: 0;
  z-index: 900;

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  background: rgba(0, 0, 0, 0.18);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;
}

#about-blur-bg.active {
  opacity: 1;
  pointer-events: all;
}

#about-panel {
  position: fixed;
  top: 50%;
  left: 50%;

  width: min(950px, 85vw);
  height: min(700px, 82vh);

  z-index: 1000;

  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  overflow: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

#about-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* p5 canvas behind text */
#about-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: transparent !important;

  overflow: hidden;
}

#about-canvas canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

/* text floats over p5 canvas */
.about-copy {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  overflow-y: auto;

  padding: 70px;

  color: white;
  background: transparent !important;

  font-family: 'Share Tech Mono', monospace;
  line-height: 1.9;

  scrollbar-width: none;
}

.about-copy::-webkit-scrollbar {
  display: none;
}

.about-copy h3 {
  font-size: 1rem;
  font-weight: 900;

  text-transform: uppercase;
  letter-spacing: 0.15em;

  margin: 2rem 0 1rem;

  color: #fff;
}

.about-copy p {
  max-width: 690px;

  font-size: 0.9rem;

  margin-bottom: 1.2rem;

  color: rgba(255, 255, 255, 0.92);
}

.about-copy a {
  color: #c1111e !important;
  text-decoration: none;

  display: inline-block;

  font-weight: 700;

  border-bottom: 1px solid rgba(193, 17, 30, .4);
}

.about-copy a:hover {
  opacity: 0.8;
}

#about-close-dot {
  position: absolute;

  top: 24px;
  right: 24px;

  width: 12px;
  height: 12px;

  border: 0;
  border-radius: 50%;

  background: #c1111e;

  cursor: pointer;

  z-index: 20;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}

#about-close-dot.visible {
  opacity: 1;
  pointer-events: all;
}

#about-close-dot:hover {
  transform: scale(1.35);
}

@media (max-width: 768px) {
  #about-panel {
    width: 92vw;
    height: 84vh;
  }

  .about-copy {
    padding: 38px 30px;
  }

  .about-copy p {
    font-size: 0.82rem;
  }
}