/* About drawer — MONOLOG-style right sidebar overlay */

.about-drawer {
  --about-drawer-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --about-drawer-width: clamp(320px, 44vw, 720px);
  --about-drawer-bg: #080d18;
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}

.about-drawer.is-open {
  pointer-events: auto;
}

.about-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.45s var(--about-drawer-ease);
}

.about-drawer.is-open .about-drawer__backdrop {
  opacity: 1;
}

.about-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--about-drawer-width);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--about-drawer-bg);
  color: #fff;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.55s var(--about-drawer-ease);
  will-change: transform;
}

.about-drawer.is-open .about-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.about-drawer__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3.2vw, 32px) clamp(20px, 3.2vw, 36px);
  background: var(--about-drawer-bg);
  border-bottom: none;
}

.about-drawer__title {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.about-drawer__dot {
  margin-right: 0.35em;
  font-size: 0.72em;
  opacity: 0.72;
}

.about-drawer__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-family: var(--font-hero);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.about-drawer__close:hover {
  opacity: 0.92;
}

.about-drawer__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.about-drawer__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  padding: 0.2em 0.45em;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
}

.about-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.about-drawer__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--about-drawer-bg);
}

@media (max-width: 768px) {
  .about-drawer {
    --about-drawer-width: min(92vw, 420px);
  }

  .about-drawer__panel {
    border-left: 1px solid rgba(150, 195, 240, 0.22);
    box-shadow: -20px 0 72px rgba(0, 0, 0, 0.48);
  }

  .about-drawer__header {
    padding-top: max(20px, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(150, 195, 240, 0.12);
  }

  .about-drawer__kbd {
    display: none;
  }

  .about-drawer__frame {
    touch-action: pan-y;
  }

  body.is-about-open {
    overflow: hidden;
    touch-action: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-drawer__backdrop,
  .about-drawer__panel {
    transition-duration: 0.01ms;
  }
}
