/* The glass content panel on the right and the page-open animation. */

/* panel */
.panel {
  position: relative;
  background: var(--glass);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 0 30px rgba(54, 214, 239, 0.14),
    inset 0 0 60px rgba(54, 214, 239, 0.05);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 130px);
}
.phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(54, 214, 239, 0.25);
  font: 700 15px "Exo 2";
  color: var(--cy);
  letter-spacing: 0.04em;
}
.phead span {
  color: var(--dim);
  font-weight: 500;
}
.pbody {
  padding: clamp(18px, 3vw, 40px);
  flex: 1;
  overflow: clip;
  overflow-clip-margin: 24px;
}
section {
  display: none;
  animation: pageopen 0.42s cubic-bezier(0.25, 0.8, 0.3, 1) both;
  transform-origin: 0 50%;
  backface-visibility: hidden;
}
section.on {
  display: block;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pageopen {
  0% {
    opacity: 0;
    transform: perspective(1600px) rotateY(-88deg);
    filter: brightness(0.4);
  }
  70% {
    opacity: 1;
    transform: perspective(1600px) rotateY(5deg);
    filter: brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  section {
    animation: none;
  }
}
